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.6.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.6.0-py2.py3-none-any.whl (34.0 kB view details)

Uploaded Python 2Python 3

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

Hashes for centraldogma_python-0.6.0.tar.gz
Algorithm Hash digest
SHA256 ec13e93e855cc4cccc20fdabf33b85b243326fba105d3e4e3fa86ba9263d2b49
MD5 48d996058cbf7bff730720ec1d74f8a4
BLAKE2b-256 b5a3c52faf70bde98905b166cf5f65d0ed1b424f82cffb636206bed95d0f4a54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for centraldogma_python-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b84e4b1b96df9e3d76785348a980fabf00be3e76af5183510ad69e1b4fe25d2
MD5 811d3834648a9f7327a8f0bc1402de36
BLAKE2b-256 b19d27c6413011988c6ee7d3b03f6f2a86889bb812aeeee6e48b60729ad3b7ea

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