backtracked-0.1.1
توضیحات
Python & asyncio wrapper for the QueUp API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | backtracked-0.1.1 |
| نام | backtracked |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | offbeatwitch |
| ایمیل نویسنده | obw@generalprogramming.org |
| آدرس صفحه اصلی | https://github.com/hedgehog1029/backtracked |
| آدرس اینترنتی | https://pypi.org/project/backtracked/ |
| مجوز | - |
# backtracked
A python wrapper for the QueUp API.
You can find the docs [here](https://backtracked.readthedocs.io/).
### Example
```python
from backtracked import Client, Presence, Message
import logging
c = Client()
logging.basicConfig(level=logging.DEBUG, format="%(levelname)s - %(name)s: %(message)s")
@c.event
async def on_ready():
print("Logged in as {0.username}".format(c.user))
await c.join_room("my-awesome-room")
@c.event
async def on_chat(message: Message):
if message.content == "~online":
await message.room.change_presence(Presence.enter)
elif message.content == "~ping":
await message.room.send_message("Pong!")
c.run(email="bot@example.com", password="my_bot_password")
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl backtracked-0.1.1:
pip install backtracked-0.1.1.whl
نصب پکیج tar.gz backtracked-0.1.1:
pip install backtracked-0.1.1.tar.gz