Consider using the Docker/Podman API instead of subprocess?

Aperta
#774 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Refactoring
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker, python

Direzione di ricerca

No files, tests, or entry points are named. Start by reviewing the current subprocess-based Docker/Podman integration and the linked Docker SDK examples, then compare API options including request, httpx, and native Python. Done criteria are not specified and would need maintainer agreement.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi! Docker has a REST API which is Podman also supports.
Using the API would remove an unnecessary dependency on the CLI.

Here are some examples of the official SDK.
https://docs.docker.com/engine/api/sdk/examples/

Its also possible to use request/httpx/native python is that is preferred?

Would a PR with this improvement we of interest? :)

Lingua principale
Python
Stelle
2.5k
Fork
358
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pytest-dev/pytest-testinfra

Tutte le issue di pytest-dev/pytest-testinfra

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.