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

Uploaded Source

Built Distribution

dogehouse-3.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dogehouse-3.0.1.tar.gz
  • Upload date:
  • Size: 9.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

Hashes for dogehouse-3.0.1.tar.gz
Algorithm Hash digest
SHA256 8c056c44a63c26b9bee326021366fb08f07674a2f5575368fe5ff422e4b20438
MD5 c8c2dc6d1bf82537855fd7c21c2cced4
BLAKE2b-256 7591c139fe3b8a4c0a2261afc512dc00d9ecf9f5753a83cb3969a59ea2aaff56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dogehouse-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae291dfa424da30b5c0cbdbcae921326f1c1573cbb2c3e6b0cca437a8d3d1b4a
MD5 c6eb36af358a7f4311eafadc51bf5799
BLAKE2b-256 334c2f7669781eb1a0e6a389bfeeb8e388cc0bc46d6bdbc3ac8b428e0acdf2ef

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