Skip to main content

cnaas-nms-api-client

A typed Python client library for the CNaaS NMS API, auto-generated from the OpenAPI specification using openapi-python-client.

Installation

pip install cnaas-nms-api-client

Or install directly from GitHub:

pip install git+https://github.com/acidjunk/cnaas-nms-api-client.git

Usage

from cnaas_nms_api_client import AuthenticatedClient
from cnaas_nms_api_client.api.devices import get_devices_api

client = AuthenticatedClient(
    base_url="https://your-cnaas-instance/api/v1.0",
    token="your-api-token",
)

# Example: list devices
response = get_devices_api.sync_detailed(client=client)
print(response.status_code)

Every endpoint has both sync_detailed and asyncio_detailed variants for synchronous and async usage.

Development

This project uses uv for dependency management.

# Clone and install
git clone https://github.com/acidjunk/cnaas-nms-api-client.git
cd cnaas-nms-api-client
uv sync

# Regenerate client from OpenAPI spec
make generate

# Build package
make build

# Lint
make lint

Regenerating the Client

If the upstream CNaaS NMS API changes:

  1. Place the updated Swagger 2.0 spec in swagger_files/swagger.json
  2. Run make convert to produce the OpenAPI 3.1 spec
  3. Run make generate to regenerate the Python client

License

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cnaas_nms_api_client-0.2.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

cnaas_nms_api_client-0.2.0-py3-none-any.whl (108.5 kB view details)

Uploaded Python 3

File details

Details for the file cnaas_nms_api_client-0.2.0.tar.gz.

File metadata

  • Download URL: cnaas_nms_api_client-0.2.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for cnaas_nms_api_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 39c52b1d8c4e694449d0bde12f793e3fc87185d3854995db0206b28e4fd481af
MD5 0de234ee588693b76e4557532e4d7ffd
BLAKE2b-256 a1cc127e62ee90588e81e3ceb2e84191ac059f87b9631867dd8de381a3a1773b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cnaas_nms_api_client-0.2.0.tar.gz:

Publisher: publish.yml on acidjunk/cnaas-nms-api-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cnaas_nms_api_client-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cnaas_nms_api_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d7e7a3b6ccb484a95cd226663ffe914b687997b72b3b63128191dcbdacb0e11
MD5 8d62379ab763f90ed2080c5f2b3a8e57
BLAKE2b-256 41cfee062027daab5232ba9f1cc470e783d520e5cc496a1f92f4340002199595

See more details on using hashes here.

Provenance

The following attestation bundles were made for cnaas_nms_api_client-0.2.0-py3-none-any.whl:

Publisher: publish.yml on acidjunk/cnaas-nms-api-client

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page