Metadata-Version: 2.5
Name: librebots-hub
Version: 0.1.0
Summary: Client for the Libre Bots hub
Project-URL: Source, https://github.com/libre-bots/hub
Author: Libre Bots
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: googleapis-common-protos
Requires-Dist: grpcio>=1.85.3
Requires-Dist: protobuf>=7.35.1
Description-Content-Type: text/markdown

# librebots-hub

The Python client for the Libre Bots hub.

```sh
pip install librebots-hub
```

```python
import asyncio

from librebots.hub import connect
from librebots.hub.v1 import stats_pb2, stats_pb2_grpc


async def main() -> None:
    async with connect("localhost:50051", "dev-token", tls=False) as channel:
        stats = await stats_pb2_grpc.StatsServiceStub(channel).GetStats(stats_pb2.GetStatsRequest())
        print(stats.total.guild_count)


asyncio.run(main())
```
