semvec/pypi-packages huggingface dataset:
botrix 1.0.0
An API wrapper for the botrix API, in Python
Requires Python: >=3.6

# botrix

An API Wrapper that supports asynchronous requests for the [Botrix API](https://docs.botrix.cc/)
This is a *Major* Work-in-progress! 


# Installation
> Using PyPI
`pip install botrix`


# Usage

> Using BotrixClient as a context manager

```py
import asyncio
from botrix import BotrixClient

async def main():
    async with BotrixClient() as client:
        bot = await client.get_bot(751100444188737617)
        print(bot.votes)

asyncio.get_event_loop().run_until_complete(main())
```

> Closing the session manually
```py
import asyncio
from botrix import BotrixClient

async def main():
    client = BotrixClient()
    bot = await client.get_bot(751100444188737617)
    print(bot.votes)
    await client.close()

asyncio.get_event_loop().run_until_complete(main())
```