Skip to main content

Asynchronous HTTP Client for ADCM (Arenadata Cluster Manager)

Project description

ADCM AIO Client

Asynchronous Client for ADCM (Arenadata Cluster Manager).

The client supports the minimum version of ADCM 2.5.0.

Introduction

Install adcm-aio-client using pip.

adcm-aio-client requires Python 3.12+.

pip install adcm-aio-client

QuickStarts

To work with clusters, you need to connect to the backend of an existing ADCM.

First, set up your credentials:

from adcm_aio_client import ADCMSession, Credentials

credentials = Credentials(username="admin", password="admin")

Second, you need to get session with ADCM backend:

async with ADCMSession(url="http://127.0.0.1:8000", credentials=credentials) as client:
    clusters = await client.clusters.all()

The full list of available APIs can be found in the Guides section.

Guides

  • Examples of the available API for the Bundle entity can be found here
  • Examples of the available API for the Cluster entity can be found here
  • Examples of the available API for the Service entity can be found here
  • Examples of the available API for the Hostprovider entity can be found here
  • Examples of the available API for the Host entity can be found here
  • Examples of the available API for the Host Group entity can be found here

Contributing

Development

To start developing ADCM AIO Client create a fork of the ADCM AIO Client repository on GitHub.

Then clone your fork with the following command replacing YOUR-USERNAME with your GitHub username:

git clone https://github.com/<YOUR-USERNAME>/adcm-aio-client.git

We use Poetry to automate testing and linting. You need installed Poetry version at least 2.0.0.

You can now install the project and its dependencies using:

poetry install

Linting

The project uses the ruff formatter to preserve the source code style. Pyright is used for static type checking.

To install the dependencies, run:

poetry install --with dev

To check the code style, run:

poetry run ruff check

To check the types, run:

poetry run pyright

To run the code auto-formatting:

poetry run ruff format
poetry run ruff check --fix

Testing

For testing, we use pytest.

To install the dependencies, run:

poetry install --with test

To run the unit tests:

poetry run pytest tests/unit

To run the integration tests:

poetry run pytest/integration

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

adcm_aio_client-0.1.0.tar.gz (34.0 kB view details)

Uploaded Source

Built Distribution

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

adcm_aio_client-0.1.0-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file adcm_aio_client-0.1.0.tar.gz.

File metadata

  • Download URL: adcm_aio_client-0.1.0.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.7 Linux/5.4.0-165-generic

File hashes

Hashes for adcm_aio_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2cc0be8fd5b1c11ca406466eef20a4f9bc8ebfddcd778237a31b86f0a9ad1f01
MD5 adff892ca54b80883ea9e89c749e55ac
BLAKE2b-256 76406f39000b9bef33dda6ba57b3add5e5cae6939f8bee4d5d4692869fc0aa5e

See more details on using hashes here.

File details

Details for the file adcm_aio_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: adcm_aio_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 53.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.7 Linux/5.4.0-165-generic

File hashes

Hashes for adcm_aio_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c4c7c7e08aa9ca042f5ad2c47915ef29de5fe0e5e6b826366f2c943d3422fe7
MD5 683ea010c0c33ca5b8f9410d74159c55
BLAKE2b-256 2d1fa128bbaa94ccf52151a07bb6233500e8f5e4f31e397b125e0b7bf0ad8d49

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