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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd3beb6abd8c381b655b53a9f91e72633259694caf3ba47525e4d3ff33bbe620 |
|
MD5 | 61480313b43b0089ed86e0220798f4c5 |
|
BLAKE2b-256 | b0fff187882ce3ed11ec76aebf1657d72702d166b46dbeddf89581fc52ab0eea |
Close
Hashes for skasip_docker_swarm-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9f2eb50b2cff69ce73263260f7a128fd63e3d5f490ff01976bda8808be3002a |
|
MD5 | 7698f2a9062b7b47099740a459a00634 |
|
BLAKE2b-256 | 32df74e8bdc6c72cea922b943563cbc8cc61e0f8bc2d42aafafb452103d8d045 |