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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dogehouse-3.0.0a4.tar.gz
  • Upload date:
  • Size: 8.4 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.0a4.tar.gz
Algorithm Hash digest
SHA256 bb8ff4c1174b990914c66a2e4e9ec87e99ecc7e48210fc936adc1338a06d8e26
MD5 9a5ca6b1dd749358d045e776f6b6d618
BLAKE2b-256 44e363f877efc3dd279b414b07cc60d03ab36d99d62a85d71ff1ecce2523f0a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dogehouse-3.0.0a4-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 b51ce0bc03054fb8e90dad8b1b14491fb5d785917d68074f684006c20f8cb8e6
MD5 af05063443c724262284a10f933530d9
BLAKE2b-256 ff41b468923de49bace917c3fc76a8c1d9d3768e842da346bbeaf2d1b7aa4c4d

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