aiobotstat
Mini library for BotStat API.
Current API version: 0.1
Install
-
Git:
pip install git+https://github.com/viuipan/aiobotstat.git -
PyPi:
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())
Release files for aiobotstat 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiobotstat-0.1.3.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiobotstat-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / aiobotstat-0.1.3.tar.gz
| Download URL | aiobotstat-0.1.3.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
330bd316b134c15988cc7d802dbda697af9ee162594832efc4ed853dbf257edb
|
|
BLAKE2b-256 checksum How to use checksums |
f248aee4041a3239e1880a7b9b091f52ff09fa160daafa3c9d4e9e975faf9055
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|
Release files / aiobotstat-0.1.3-py3-none-any.whl
| Download URL | aiobotstat-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ae0bd582aa1fadf7af1a3a64463099503bb60ca4739de5f1f32447ffea48462
|
|
BLAKE2b-256 checksum How to use checksums |
ebd6ea2db41534f132f15ee02b03e78ece420de8a9b37608608ed24d1a5c7a86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.0
|