Docker-cli
A straight forward tool to get information from docker command line and try to parse into json format as far as possible.
Why not docker api?
- The api schema might change and response data might change so often.
- Docker-cli uses docker cli to get response and try to format them into json format
Installation
pip install docker-cli
Main methods
is_docker_set()to verify docker installation and availability
docker_cli.is_docker_set()
- To run docker commands
Request: docker_cli.docker("ps")
Response Structure:
DockerResponse(command='docker ps', status='SUCCESS', type='JSON', data=[<JSON Data>])
- To run docker commands
Request: docker_cli.docker_compose("up -d")
Response Structure:
Similar as that of docker commands
Metadata
Release files for docker-cli 1.0.2
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 |
|---|---|---|---|---|
| docker-cli-1.0.2.tar.gz | 2.7 kB | Without provenance | Details for docker-cli-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docker_cli-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for docker_cli-1.0.2-py3-none-any.whl |
Total release size: 5.3 kB
Release files / docker-cli-1.0.2.tar.gz
| Download URL | docker-cli-1.0.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d67718574f4cde543192aeddcc7e23cf143daae17b4dc3862335090ea26556ec
|
|
BLAKE2b-256 checksum How to use checksums |
ce88d0b6e3b2a57b4f74e608c9509333b96fe1d1bae067ff7b7c37ba04263ef6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.5 Linux/5.8.0-55-generic
|
Release files / docker_cli-1.0.2-py3-none-any.whl
| Download URL | docker_cli-1.0.2-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de43229f4d565773bfa52ef566bd76145a57da12650eedd406b34b1620e72228
|
|
BLAKE2b-256 checksum How to use checksums |
303e5f7a34ee9c35e7bbe366371237234b92a53c3537ce04bb16ede8b0b17c7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.5 Linux/5.8.0-55-generic
|
Security for docker-cli 1.0.2
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.