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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chirpstack_rest_api_client-0.0.1a1.tar.gz
.
File metadata
- Download URL: chirpstack_rest_api_client-0.0.1a1.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5fb3b4796da82d5eda48e7e2aec42d1d293e95c65c1668da531730a81ed8d8b |
|
MD5 | 1264917d2c501cc6b3b202c88e1b4e45 |
|
BLAKE2b-256 | b0c78133bc7cf3a19bbe4ae8997a3ae02c6d4aac4b855985f9fd328d4efda8a4 |
File details
Details for the file chirpstack_rest_api_client-0.0.1a1-py3-none-any.whl
.
File metadata
- Download URL: chirpstack_rest_api_client-0.0.1a1-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dcc3af0bc6a0772788044e026fa9b0c982a93724ff90f74743b6f860d1738a8 |
|
MD5 | cc240aa489500eeb5341eacf46a38c7d |
|
BLAKE2b-256 | f46bc52aa33f3a4c2dccffaa5ee7722f825f823537e77eedc89e42aa09057b30 |