Skip to main content

Python client library for Central Dogma

Project description

Central Dogma client in Python

Package version

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

  1. Run local Central Dogma server with docker-compose
$ docker-compose up -d
  1. Run integration tests
$ INTEGRATION_TEST=true pytest
  1. Stop the server
$ docker-compose down

Lint

$ 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.3.0.tar.gz (19.2 kB view hashes)

Uploaded Source

Built Distribution

centraldogma_python-0.3.0-py2.py3-none-any.whl (33.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page