centraldogma-python
centraldogma-python copied to clipboard
Python client library for Central Dogma
Central Dogma client in Python
Python client library for Central Dogma.
Install
$ pip install centraldogma-python
Getting started
>>> from centraldogma.dogma import Dogma
>>> dogma = Dogma("https://dogma.yourdomain.com", "token")
>>> dogma.list_projects()
[]
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