Skip to main content

Python client library for Central Dogma

Project description

Central Dogma client in Python

PyPI version PyPI Supported Python Versions check Downloads

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

  1. Run local Central Dogma server with docker-compose

    $ docker-compose up -d
    
  2. Run integration tests

    $ INTEGRATION_TEST=true pytest
    
  3. Stop the server

    $ docker-compose down
    

Lint

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.5.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

centraldogma_python-0.5.0-py2.py3-none-any.whl (33.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file centraldogma_python-0.5.0.tar.gz.

File metadata

  • Download URL: centraldogma_python-0.5.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.8

File hashes

Hashes for centraldogma_python-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d7e19cef1cd72bab91d913ad3c57aef234c5f48b938c1069f95ffb8606906985
MD5 a2f16eeb2824a56222e240704c60c2ad
BLAKE2b-256 2c0606f167d4827bdcbf5ce2da0d2fdee1162d0425c419a0a640c7f14120e4a0

See more details on using hashes here.

File details

Details for the file centraldogma_python-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for centraldogma_python-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8ada22b314fa396c57714abed415577f0c0c382a4bb4203644400b57f98989fd
MD5 14cb17bae713c0be793ef63afd0a3513
BLAKE2b-256 a2997b80d36a464bfb9123caaa6c0c67a961ccf77b9b997a8802c830965e51a6

See more details on using hashes here.

Supported by

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