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.1a2.tar.gz
.
File metadata
- Download URL: chirpstack_rest_api_client-0.0.1a2.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 879b2ef3dc988a5da591f8d07b4dd14fedc7b710fb14347b8db983aba0b5e4e0 |
|
MD5 | 2ea1ac171811a19752d53032abfd88d7 |
|
BLAKE2b-256 | dbd99a3455360fcaf671e9b6b7f0eeda962e8b0f8192fca05084cfc372549705 |
File details
Details for the file chirpstack_rest_api_client-0.0.1a2-py3-none-any.whl
.
File metadata
- Download URL: chirpstack_rest_api_client-0.0.1a2-py3-none-any.whl
- Upload date:
- Size: 20.7 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 | dbf4811387146782af5b336624cf764337c469af3afb9bb043db2acef991a4a1 |
|
MD5 | c6a731e50ed9a07de80929b21710af17 |
|
BLAKE2b-256 | 9e03a3bd666325e69941f63d47c664f7794d61afcab54070237c1c3a3c5b9a75 |