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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py_docker_gadgets-0.1.3.tar.gz | 3.1 kB | Without provenance | Details for py_docker_gadgets-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_docker_gadgets-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for py_docker_gadgets-0.1.3-py3-none-any.whl |
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
|
Security for py-docker-gadgets 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.