Python wrapper for the dogehouse API
Project description
dogehouse.py
Python wrapper for the dogehouse API.
Documentation
You can find the documentation at The DogeGarden Wiki
Installation
pip install dogehouse
Example
from dogehouse import DogeClient
from dogehouse.entities import ReadyEvent, RoomJoinEvent, UserJoinEvent
doge = DogeClient("token", "refresh_token")
@doge.on_ready
async def make_my_room(event: ReadyEvent) -> None:
print(f"Successfully connected as @{event.user.username}!")
await doge.create_room("Hello World!")
@doge.on_user_join
async def greet_user(event: UserJoinEvent) -> None:
await doge.send_message(f"Hello @{event.user.username}")
doge.run()
Tokens
- Go to dogehouse.tv
- Open Developer options (F12 or Ctrl+Shift+I)
- Go to Application > Local Storage > dogehouse.tv
- There lies your
TOKEN
andREFRESH_TOKEN
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
dogehouse-3.0.0a2.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file dogehouse-3.0.0a2.tar.gz
.
File metadata
- Download URL: dogehouse-3.0.0a2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71286cc26bdd5da0b2f49cab0a1e6f34cafef98aa3c6e6534a37615a22701c35 |
|
MD5 | 4b4d70929a09f025c04b4f1f6ba218da |
|
BLAKE2b-256 | ea7d37abffd7d79e9ec417010eb7efbd84fa418e3f2fb22cdbd64afdbb16b04a |
File details
Details for the file dogehouse-3.0.0a2-py3-none-any.whl
.
File metadata
- Download URL: dogehouse-3.0.0a2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e5708bbe6e1e92a2818cd37a8f786938e77d50e49583eaf3a5ed3b24406dba9 |
|
MD5 | 4c49f449fcafac0e7aac0fce48cd5e93 |
|
BLAKE2b-256 | e372a84a17814deb0efef3b30995daec2d06e2558226b626175ad6e6fcb98e75 |