Skip to main content

A simple Python wrapper for the Toontown Rewritten API

Project description

toontown.py

A simple Python API wrapper for the Toontown Rewritten API (https://github.com/ToontownRewritten/api-doc/)

Features

  • Asynchronous and synchronous
  • API complete

Installing

Python 3.8 or higher is required

# Linux/macOS
python3 -m pip install -U toontown.py

# Windows
py -3 -m pip install -U toontown.py

About

All methods return a tuple-like wrapper class with all the response data wrapped in objects

e.g. This will print all the current doodles in Toontown Rewritten

async with toontown.AsyncToontownClient() as client:
    doodles = await client.doodles()

    for doodle in doodles:
        print(doodle.district, doodle.playground, doodle.dna, doodle.rendition, doodle.traits, doodle.cost)

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

toontown.py-1.1.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toontown.py-1.1.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file toontown.py-1.1.0.tar.gz.

File metadata

  • Download URL: toontown.py-1.1.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for toontown.py-1.1.0.tar.gz
Algorithm Hash digest
SHA256 04f2750fc74459b5186d364e17c2e84df902a4dc902cc1a6a7dbb8350d2b0ee9
MD5 04e67b150732573b17bf3109041af33f
BLAKE2b-256 e76ff86698b08229eb9ffa5e4102271452f55de845992aa34f8bb77996391b40

See more details on using hashes here.

File details

Details for the file toontown.py-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: toontown.py-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for toontown.py-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5833904d001e9511844b5edda2d424f16b8f0730131d5103f098b20503ad6002
MD5 8abde693d289c02c5769794308a58f40
BLAKE2b-256 ee1250a5efb70e54d43d92b3c50a97f3cbe4b01005ffe68cdbaec817ffc36fcf

See more details on using hashes here.

Supported by

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