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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dogehouse-3.0.0.tar.gz
  • Upload date:
  • Size: 8.1 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.0.tar.gz
Algorithm Hash digest
SHA256 649da43eab4180052bcd34d723685563742030084dd1f2b9b0e5969f2c338b9d
MD5 a67c165578af725c95c6688bc5967b38
BLAKE2b-256 d17214aaf9735f5f03e7155c56f1986acba0e8533866769a50f9f53afb4a38ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dogehouse-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aedf9c3e6e3631425bdb6f3292ef480f49b159ba5a957a30981a81e04d14f494
MD5 38bfb0fcf5645f79b4b3c0435f4e51bd
BLAKE2b-256 9b088b972d4f2cf87b463f73b763f387f613429b62bc7e7f6ae8cf5307b0f122

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