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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4762d5c66326582e8ef8265817e7533bf7283ab73918bbb73f24629572fcfc3e
|
|
| MD5 |
9cc26193e0ae3f046b59cf88dfde73e7
|
|
| BLAKE2b-256 |
de886e5f0cdec1b90b08c9b8767c9fc1dbd84cb1e48d59125209544f28300c3d
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3842ef3b15cbede1d7249d49f352c1bb29993fbd02d97351197e920827aefe2a
|
|
| MD5 |
89556f0c35d580e4691f1a80963b6658
|
|
| BLAKE2b-256 |
9594432861441a9ab3259bce3cdc6bab49bceb8523bf4e68d2f020ab7757272b
|