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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_docker_gadgets-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 5d360c9f057387c2ff19c6e1a7859a112254a4002b00c220f8693064292e716b
MD5 667d259e10ec1fdcb92d642dfdd15e40
BLAKE2b-256 d3879b9083300b3820c4b25df9e3cb7ed08b5a3958920f209c09bf1cd9b1d704

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_docker_gadgets-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 37cffcd451fb49096fe0687f85824b757319bdb7ad773eb8527e7a01b06b3f46
MD5 48be24414b1e5df79988da5e32e670a2
BLAKE2b-256 cf39d43d9ddfb34c00acfed25eab6cb71e5921dc7295c32078835329fa94c7e7

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