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.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file py_docker_gadgets-0.1.2.tar.gz.

File metadata

  • Download URL: py_docker_gadgets-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.12 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for py_docker_gadgets-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cbce55da68883ceb3a8e860750709c47315b24bbc618b8a35b6c1f33839e921f
MD5 c3c4c3121dc6baa28900ad223a2b34c5
BLAKE2b-256 49211285fd81c6993a62ed124b607d1ff7078a7152f6273efd48d20224fd74cd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for py_docker_gadgets-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c946fa0034c466233b2db2ce21511b64d12230a4d137e7fca73d008bda2555d5
MD5 4c4387be9d7ea5c3daf3ef668bfaf74f
BLAKE2b-256 b41d40ad53afb0e6405fe153b2d4da12407749c85dc5dd4f20500948754979ce

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