Skip to main content
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")

Metadata

Release files for py-docker-gadgets 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-docker-gadgets 0.1.3
File Size Uploaded
py_docker_gadgets-0.1.3.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-docker-gadgets 0.1.3
File Interpreter ABI Platform
py_docker_gadgets-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / py_docker_gadgets-0.1.3.tar.gz

Download URL py_docker_gadgets-0.1.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5d360c9f057387c2ff19c6e1a7859a112254a4002b00c220f8693064292e716b
BLAKE2b-256 checksum
How to use checksums
d3879b9083300b3820c4b25df9e3cb7ed08b5a3958920f209c09bf1cd9b1d704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.8.12 Linux/5.15.90.1-microsoft-standard-WSL2

Release files / py_docker_gadgets-0.1.3-py3-none-any.whl

Download URL py_docker_gadgets-0.1.3-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37cffcd451fb49096fe0687f85824b757319bdb7ad773eb8527e7a01b06b3f46
BLAKE2b-256 checksum
How to use checksums
cf39d43d9ddfb34c00acfed25eab6cb71e5921dc7295c32078835329fa94c7e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.8.12 Linux/5.15.90.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page