Skip to main content

A client for interacting with the Chirpstack REST API

Project description

Chirpstack REST API client

The client for the Chirpstack REST API based on httpx and pydantic.

It contains ready-made clients with implemented methods and pydantic schemes for the following services:

  • TenantService
  • GatewayService
  • DeviceService
  • DeviceProfileService
  • ApplicationService

Installing:

pip install chirpstack-rest-api-client

Usage example:

from chirpstack_rest_api_client.services.tenants import TenantClient


api_key = "chirpstack_global_api_key"
base_url = "http://localhost:8090"

async def run():
    async with TenantClient(base_url, api_key) as cli:
        tenants_list = await cli.get_tenants(limit=10)
        if tenants_list.totalCount > 0:
            print(f"Tenants: {tenants_list.result}")

if __name__ == "__main__":
    import asyncio

    asyncio.run(run())        

License

Apache License, Version 2.0

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

chirpstack_rest_api_client-0.0.1a2.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file chirpstack_rest_api_client-0.0.1a2.tar.gz.

File metadata

File hashes

Hashes for chirpstack_rest_api_client-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 879b2ef3dc988a5da591f8d07b4dd14fedc7b710fb14347b8db983aba0b5e4e0
MD5 2ea1ac171811a19752d53032abfd88d7
BLAKE2b-256 dbd99a3455360fcaf671e9b6b7f0eeda962e8b0f8192fca05084cfc372549705

See more details on using hashes here.

File details

Details for the file chirpstack_rest_api_client-0.0.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for chirpstack_rest_api_client-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 dbf4811387146782af5b336624cf764337c469af3afb9bb043db2acef991a4a1
MD5 c6a731e50ed9a07de80929b21710af17
BLAKE2b-256 9e03a3bd666325e69941f63d47c664f7794d61afcab54070237c1c3a3c5b9a75

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