Library for api.botstat.io
Project description
aiobotstat
Mini library for BotStat API.
Current API version: 0.1
Install: pip install aiobotstat
Example:
import asyncio
from aiobotstat import BotStatAPI
BOT_TOKEN = ''
FILE_PATH = ''
BOT_USERNAME = ''
api = BotStatAPI(BOT_TOKEN)
async def main():
bot_info = await api.get_bot_info(username=BOT_USERNAME)
print(bot_info)
task = await api.create_task(file=FILE_PATH)
print(task)
status = await api.get_task_status(task_id=task.id)
print(status)
cancel_result = await api.cancel_task(task_id=task.id)
print(f'Cancel result is {cancel_result}')
asyncio.run(main())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiobotstat-0.1.tar.gz
(5.6 kB
view details)
File details
Details for the file aiobotstat-0.1.tar.gz
.
File metadata
- Download URL: aiobotstat-0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dec42aeca29de0ee5cbe12594a577302697f73780e22a6eef09d64648710453 |
|
MD5 | e3e00865d65fa54baedbed38f119a386 |
|
BLAKE2b-256 | c712de599f885252ce4363d5dda581841074ab3eef5dd1f0b4cfbbdd7875eda9 |