Skip to main content

Python wrapper for the dogehouse API

Project description

dogehouse.py

Python wrapper for the dogehouse API.

pypi

Documentation

You can find the documentation at The DogeGarden Wiki

Installation

pip install dogehouse

Example

from dogehouse import DogeClient
from dogehouse.entities 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 World!")


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

Tokens

  • Go to dogehouse.tv
  • Open Developer options (F12 or Ctrl+Shift+I)
  • Go to Application > Local Storage > dogehouse.tv
  • There lies your TOKEN and REFRESH_TOKEN

Project details


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.0a3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

dogehouse-3.0.0a3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file dogehouse-3.0.0a3.tar.gz.

File metadata

  • Download URL: dogehouse-3.0.0a3.tar.gz
  • Upload date:
  • Size: 7.9 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

Hashes for dogehouse-3.0.0a3.tar.gz
Algorithm Hash digest
SHA256 58ace30991966a04c753e48f0579215502d87a5cf7d30153fd170d8281de9e97
MD5 6223b53339787d159e353c340edc513e
BLAKE2b-256 9f4c1bb95a7450711eb2dba1222236f3e1be13470d93994310c88a484bbf22eb

See more details on using hashes here.

File details

Details for the file dogehouse-3.0.0a3-py3-none-any.whl.

File metadata

  • Download URL: dogehouse-3.0.0a3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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

Hashes for dogehouse-3.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 d339f9c6a9670525e34ce0412089c7511ca7810baf4f7f360a20709b7ec703ae
MD5 3e2626b648ab55adfe0570b301b4b8e0
BLAKE2b-256 23840d8aa7d172d032427956f6d2c220214437d4e10992abd9acce069e6252c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page