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.events import ReadyEvent, UserJoinEvent, MessageEvent
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 dogehouse.py!")
@doge.on_user_join
async def greet_user(event: UserJoinEvent) -> None:
await doge.send_message(f"Hello @{event.user.username}")
@doge.command
async def echo(event: MessageEvent) -> None:
msg = event.message
await doge.send_message(f'@{msg.author.username} said {msg.content}')
doge.run()
Check examples for more feature usage.
Tokens
- Go to dogehouse.tv
- Open Developer options (F12 or Ctrl+Shift+I)
- Go to Application > Local Storage > dogehouse.tv
- There lies your
TOKENandREFRESH_TOKEN
Release files for dogehouse 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dogehouse-3.0.1.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dogehouse-3.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / dogehouse-3.0.1.tar.gz
| Download URL | dogehouse-3.0.1.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c056c44a63c26b9bee326021366fb08f07674a2f5575368fe5ff422e4b20438
|
|
BLAKE2b-256 checksum How to use checksums |
7591c139fe3b8a4c0a2261afc512dc00d9ecf9f5753a83cb3969a59ea2aaff56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / dogehouse-3.0.1-py3-none-any.whl
| Download URL | dogehouse-3.0.1-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae291dfa424da30b5c0cbdbcae921326f1c1573cbb2c3e6b0cca437a8d3d1b4a
|
|
BLAKE2b-256 checksum How to use checksums |
334c2f7669781eb1a0e6a389bfeeb8e388cc0bc46d6bdbc3ac8b428e0acdf2ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|