Skip to main content

Some convenience tools for managing docker containers in python

Project description

Latest Version

py-docker-tools

Some convenience tools for managing docker containers in python

py-docker-gadgets is a very compact set of tools for working with docker containers in python. Its API exposes a very simple command to spin up a container and then shut it down.

Super Quick Start

  • requirements: python3

  • install through pip: $ pip install py-docker-tools

Example Usage

Here’s a very basic example of how this could be used:

from docker_gadgets import start_service, stop_service

start_service(
    "test-postgres",
    image="postgres",
    env=dict(
        POSTGRES_PASSWORD="test-password",
        POSTGRES_USER="test-user",
        POSTGRES_DB="test-db",
    ),
    ports={"5432/tcp": 8432},
)
stop_service("test-postgres")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-docker-gadgets-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

py_docker_gadgets-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file py-docker-gadgets-0.1.1.tar.gz.

File metadata

  • Download URL: py-docker-gadgets-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for py-docker-gadgets-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e1232a2b558915f46774f56ab7005b7fa8d53a713b1e37e62f150875c4b5954
MD5 4971e2545f46515bb78eb27c133da2a0
BLAKE2b-256 86fde7cb0c76252948aa2b5b9de7baacb4213c1159f7cae5b1e175212c4fb830

See more details on using hashes here.

File details

Details for the file py_docker_gadgets-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_docker_gadgets-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for py_docker_gadgets-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 199ced9284d25628e699b435bac61431aeef4aa20533a16e0f711ee748a25105
MD5 94c279eaf5e8709f021a51a8ffb3c0bd
BLAKE2b-256 46f56e15f88dc5ea95617616124c40e03bfc7fed5a904ecc3ffa999291732631

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page