Skip to main content

Python library for interacting with Tokyo API (https://api.miduwu.ga/)

Project description

tokyo.py

Python library for interacting with Tokyo API (https://api.miduwu.ga/)

Installation

pip install tokyo.py

Usage

import tokyo
import asyncio
from tokyo.properties import Api

api = Api()
print(api.endpoints)

async def main():
    json = await tokyo.Json.get(endpoint = ..., builders = {
    ...
    })
    bytes = await tokyo.Buffer.get(endpoint = ..., builders = {
    ...
    })
    anime = await tokyo.Anime.get(endpoint = ..., builders = [
    ...
    ])
    print(json, bytes, anime)

    # Parameter "endpoint" is the request endpoint string.
    # Parameter "builders" is the request parameters/route. {} for parameters, [] for route.
    # await tokyo.Json.get(endpoint = '8ball', builders = {'text': 'Hi'})
    # await tokyo.Anime.get(endpoint = 'gifs', builders = ['angry'])

asyncio.run(main())

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

tokyo.py-0.0.4.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

tokyo.py-0.0.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file tokyo.py-0.0.4.tar.gz.

File metadata

  • Download URL: tokyo.py-0.0.4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for tokyo.py-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4762d5c66326582e8ef8265817e7533bf7283ab73918bbb73f24629572fcfc3e
MD5 9cc26193e0ae3f046b59cf88dfde73e7
BLAKE2b-256 de886e5f0cdec1b90b08c9b8767c9fc1dbd84cb1e48d59125209544f28300c3d

See more details on using hashes here.

File details

Details for the file tokyo.py-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: tokyo.py-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for tokyo.py-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3842ef3b15cbede1d7249d49f352c1bb29993fbd02d97351197e920827aefe2a
MD5 89556f0c35d580e4691f1a80963b6658
BLAKE2b-256 9594432861441a9ab3259bce3cdc6bab49bceb8523bf4e68d2f020ab7757272b

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