Python client library for Central Dogma
Project description
Central Dogma client in Python
Python client library for Central Dogma.
Install
$ pip install centraldogma-python
Getting started
Only URL indicating CentralDogma server and access token are required.
>>> from centraldogma.dogma import Dogma
>>> dogma = Dogma("https://dogma.yourdomain.com", "token")
>>> dogma.list_projects()
[]
It supports client configurations.
>>> retries, max_connections = 5, 10
>>> dogma = Dogma("https://dogma.yourdomain.com", "token", retries=retries, max_connections=max_connections)
Please see examples
folder for more detail.
Development
Tests
Unit test
$ pytest
Integration test
-
Run local Central Dogma server with docker-compose
$ docker-compose up -d
-
Run integration tests
$ INTEGRATION_TEST=true pytest
-
Stop the server
$ docker-compose down
Lint
- PEP 8
$ black .
Documentation
To build sphinx at local
$ pip install sphinx sphinx_rtd_theme
$ cd docs && make html
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
centraldogma_python-0.4.0.tar.gz
(24.6 kB
view details)
Built Distribution
File details
Details for the file centraldogma_python-0.4.0.tar.gz
.
File metadata
- Download URL: centraldogma_python-0.4.0.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecf4ea284a67c834bf7b50b89bb2c4f6e58b30d9fde23210283b0268774f9487 |
|
MD5 | 5cfca36bdbbfd6340d21571d6c255693 |
|
BLAKE2b-256 | bac32ae50ef335b03cb59e7dcdb57b30c7d6d00778cc3c561afe0a45367f4eae |
File details
Details for the file centraldogma_python-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: centraldogma_python-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 33.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46bc026de26fc03884d9295af25f04b3e11cc2c01e11533baa065684cf20569 |
|
MD5 | 4442ad70aae38a61353b7954689f9381 |
|
BLAKE2b-256 | 41a475b577798112f69dbf86377c328337e3ff1efae8f4b29c80e50b230b7555 |