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.1a1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for chirpstack_rest_api_client-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 b5fb3b4796da82d5eda48e7e2aec42d1d293e95c65c1668da531730a81ed8d8b
MD5 1264917d2c501cc6b3b202c88e1b4e45
BLAKE2b-256 b0c78133bc7cf3a19bbe4ae8997a3ae02c6d4aac4b855985f9fd328d4efda8a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for chirpstack_rest_api_client-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 1dcc3af0bc6a0772788044e026fa9b0c982a93724ff90f74743b6f860d1738a8
MD5 cc240aa489500eeb5341eacf46a38c7d
BLAKE2b-256 f46bc52aa33f3a4c2dccffaa5ee7722f825f823537e77eedc89e42aa09057b30

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