SIP Docker Swarm client library.
Project description
# Docker Swarm Client API
## Introduction
The SIP Execution Framework provides a Docker Client Python API to run
docker services by various Execution Control Service components.
The client library is written as a of Python modules which are structured as a
set of higher level modules use by various Execution Control Services.
The client lets you run docker commands from within Python - create services,
delete services, manage nodes etc
## Quick-start
Install with:
```bash
pip3 install -U skasip-docker-swarm
```
Example usage:
```python
from docker_swarm import DockerClient
DC = DockerClient()
```
## 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:
```bash
pytest --pylint --docstyle --codestyle -s -v --pylint-rcfile=../../../.pylintrc .
```
## 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
## Introduction
The SIP Execution Framework provides a Docker Client Python API to run
docker services by various Execution Control Service components.
The client library is written as a of Python modules which are structured as a
set of higher level modules use by various Execution Control Services.
The client lets you run docker commands from within Python - create services,
delete services, manage nodes etc
## Quick-start
Install with:
```bash
pip3 install -U skasip-docker-swarm
```
Example usage:
```python
from docker_swarm import DockerClient
DC = DockerClient()
```
## 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:
```bash
pytest --pylint --docstyle --codestyle -s -v --pylint-rcfile=../../../.pylintrc .
```
## 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for skasip-docker_swarm-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e6dbd72cd110dfc4e0b094f6abca1683bb40ff8786a60c40655fd10abd3c9a9 |
|
MD5 | 4e26f7cbb7487ec4fcb0fdec7c7ee29a |
|
BLAKE2b-256 | c61e4b25b3f36cc7447dbcc0ac748d8a77248bb1f086fc73e60b0609dffa38e7 |
Close
Hashes for skasip_docker_swarm-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a0325fb4c51a16bff683e3e8122b92140cf5253147166afee6e628ce30e3438 |
|
MD5 | 46a126025aa053fcb3253912c3f61f71 |
|
BLAKE2b-256 | 6aa63c8af53c799ea2e0918136d52ac6dd997a0c0173e249e354f5622ca23b5b |