SKA SDP SIP Docker Swarm Client API
Introduction
This package contains a client library for interfacing with the Docker engine for creating, deleting and inspecting Docker Swarm services as well as managing Docker Swarm nodes.
This library is intended to be used by other SKA SDP SIP Execution Control services, in particular the Processing Block Controller.
Quick-start
Install with:
pip3 install -U skasip-docker-swarm
Example usage:
from sip_docker_swarm import DockerSwarmClient
DOCKER_SWARM = DockerSwarmClient()
DOCKER_SWARM.get_service_list()
Testing
Linting and unit test are run automatically by SIP CI/CD system but can also be run manually from the docker_api code directory with:
pytest --pylint --docstyle --codestyle -s -v --pylint-rcfile=../../../.pylintrc .
or run the following command from the top level directory
./tools/run_tests.sh sip/execution_control/docker_api/sip_docker_swarm
TODO
- Need to add exception into the functions
- Add Log to the script
- depends_on is not enabled -> Need to look into this
- Need to setup the environment variables
- Unit test for update_node function
- Figure out how to validate compose files
- While it is useful to test that service exists, it mighe be even better to test that the service is running as well
Metadata
Release files for skasip-docker-swarm 1.0.14
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 |
|---|---|---|---|---|
| skasip-docker_swarm-1.0.14.tar.gz | 5.9 kB | Without provenance | Details for skasip-docker_swarm-1.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skasip_docker_swarm-1.0.14-py3-none-any.whl | Python 3 | none | any | Details for skasip_docker_swarm-1.0.14-py3-none-any.whl |
Total release size: 13.4 kB
Release files / skasip-docker_swarm-1.0.14.tar.gz
| Download URL | skasip-docker_swarm-1.0.14.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b14fe77e1d4cba490291fe862dd9f2272a79714342622204097e25c35ce1085
|
|
BLAKE2b-256 checksum How to use checksums |
54d25a2e9dfe0502748ecc39cfb08f351f77b954cbb6b10472b4190af9d1c3e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / skasip_docker_swarm-1.0.14-py3-none-any.whl
| Download URL | skasip_docker_swarm-1.0.14-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a871f4c28ecc8ae4e5b935a7490092d55ed6574752ec8205ac12036066a80f4
|
|
BLAKE2b-256 checksum How to use checksums |
18fc84c82af7be2d05dff6ff3ed9a2e50400df952dc880f1b4b2061fc9c97614
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for skasip-docker-swarm 1.0.14
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.