Metadata-Version: 2.1
Name: chirpstack_rest_api_client
Version: 0.0.1a1
Summary: A client for interacting with the Chirpstack REST API
Author: Alexandr Korochkin
Author-email: ka1ll1cit@gmail.com
License: Apache License, Version 2.0
Project-URL: Source, https://github.com/AlKorochkin/chirpstack-rest-api-client
Project-URL: Bug Tracker, https://github.com/AlKorochkin/chirpstack-rest-api-client/issues
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx==0.27.2
Requires-Dist: pydantic==2.9

# 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:

```python
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](https://github.com/AlKorochkin/chirpstack-rest-api-client/blob/main/LICENSE)
