Python & asyncio wrapper for the QueUp API
Project description
backtracked
A python wrapper for the QueUp API.
You can find the docs here.
Example
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")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
backtracked-0.1.1.tar.gz
(17.6 kB
view details)
Built Distribution
File details
Details for the file backtracked-0.1.1.tar.gz
.
File metadata
- Download URL: backtracked-0.1.1.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c57e653d8d634d57d85e490eb297feea27b2c9658c9e0af090b1f5c77de559 |
|
MD5 | 962e09b8a1c5019bf9fe40d8d3f24fc3 |
|
BLAKE2b-256 | eba947d1cab80319457954f535e91e01c95c9e8260c7efb9bc9d962dc8893a46 |
File details
Details for the file backtracked-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: backtracked-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040c59e41af5913aabb507d3a0fbe8f3ef2adb23d1f7d28aef75247cd4f42ccf |
|
MD5 | eea6ebf6a70ed9d7813d8ea2e5ad9ff3 |
|
BLAKE2b-256 | d574cf58f4ad9f556e3f6f409d1df04e8a5cd200efbd5be018375274cc66a00d |