Catalog PyPI
Back to packageRELEASE DETAILS

0.1.3

PyPI

aiobotstat

Library for api.botstat.io

Published1 Feb 2023
Direct dependencies4
Transitive dependenciesNot calculated

README

Version 0.1.3 documentation

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())

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
aiohttp
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
aiohttpruntime
pydantic
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
pydanticruntime
certifi
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
certifiruntime
ujson
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
ujsonruntime

Distribution files

2 collected
aiobotstat-0.1.3-py3-none-any.whl

bdist_wheel · 7.18 KB · Python py3

Source file
aiobotstat-0.1.3.tar.gz

sdist · 5.71 KB · Python source

Source file

Repository

PENDING
viuipan/aiobotstat

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:41 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:e0e63b15ea33733a0ea78e3bf1819fee56a491fe0c5b4990d3f4b2ced1b7ccae

Other collected versions

View all collected versions →