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

Uploaded Source

Built Distribution

centraldogma_python-0.4.0-py2.py3-none-any.whl (33.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: centraldogma_python-0.4.0.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for centraldogma_python-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ecf4ea284a67c834bf7b50b89bb2c4f6e58b30d9fde23210283b0268774f9487
MD5 5cfca36bdbbfd6340d21571d6c255693
BLAKE2b-256 bac32ae50ef335b03cb59e7dcdb57b30c7d6d00778cc3c561afe0a45367f4eae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for centraldogma_python-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a46bc026de26fc03884d9295af25f04b3e11cc2c01e11533baa065684cf20569
MD5 4442ad70aae38a61353b7954689f9381
BLAKE2b-256 41a475b577798112f69dbf86377c328337e3ff1efae8f4b29c80e50b230b7555

See more details on using hashes here.

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