A robust asynchronous framework for interacting with the Kozumikku API
Project description
kozumikku.py
An asynchronous library for interacting with the Kozumikku API.
Read the docs.
Key Features
- Modern Pythonic API using
async
andawait
- Sane Error handling
- Correct authentication
Installing
Python 3.8 or higher is required
Installing the library without HTTP speedups:
# Linux/MacOS
python3 -m pip install -U kozumikku.py
# Windows
py -3 -m pip install -U kozumikku.py
Otherwise, to get the HTTP speedups, run the following command:
# Linux/MacOS
python3 -m pip install -U kozumikku.py[speedups]
# Windows
py-3 -m pip install -U kozumikku.py[speedups]
Examples
from kozumikku import KozumikkuClient
client = KozumikkuClient("API-TOKEN-HERE")
# get an api token here: https://www.kozumikku.tech/api/
# Requesting endpoints
## Say we have an endpoint in the /image/ category, and we need to
## request the /flip/ endpoint for it. We can simply run this:
image: bytes = await client.image("flip", url="image-url")
# Read the docs for more information
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kozumikku.py-1.0.0a0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for kozumikku.py-1.0.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552b64a40ecb19d81476e14e7c693b64a5522489df9c13a4d5fedcd1444586fe |
|
MD5 | 742f0f89bda3d6b4f2f8ede2db487ac0 |
|
BLAKE2b-256 | f751a72eaf6cacfc2f9de0cccb67279ced3b6cdc401961057eeebed82b55c65c |