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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file centraldogma_python-0.6.0.tar.gz.
File metadata
- Download URL: centraldogma_python-0.6.0.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec13e93e855cc4cccc20fdabf33b85b243326fba105d3e4e3fa86ba9263d2b49
|
|
| MD5 |
48d996058cbf7bff730720ec1d74f8a4
|
|
| BLAKE2b-256 |
b5a3c52faf70bde98905b166cf5f65d0ed1b424f82cffb636206bed95d0f4a54
|
File details
Details for the file centraldogma_python-0.6.0-py2.py3-none-any.whl.
File metadata
- Download URL: centraldogma_python-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b84e4b1b96df9e3d76785348a980fabf00be3e76af5183510ad69e1b4fe25d2
|
|
| MD5 |
811d3834648a9f7327a8f0bc1402de36
|
|
| BLAKE2b-256 |
b19d27c6413011988c6ee7d3b03f6f2a86889bb812aeeee6e48b60729ad3b7ea
|