A simple async Python wrapper for nekos.best API.
Project description
nekos-best.py
A simple async Python wrapper for nekos.best API.
Supported categories are: cuddle, feed, hug, kiss, nekos, pat, poke, slap and tickle.
See https://nekos.best/endpoints for all endpoints.
Requirements
- aiohttp (>=3.6.2)
Installation
Make sure to have pip installed in your environement. It will also install all requirements.
pip install nekosbest
Example
import asyncio
from nekosbest import Client
client = Client()
async def main(category: str):
result = await client.get_image(category)
print(result)
print(result.url)
await client.teardown() # Cleanup http client.
loop = asyncio.get_event_loop()
loop.run_until_complete(main("nekos"))
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
nekosbest-0.1.0.tar.gz
(15.3 kB
view hashes)
Built Distribution
nekosbest-0.1.0-py3-none-any.whl
(18.1 kB
view hashes)
Close
Hashes for nekosbest-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e3e433550339359f609e867dbd1c02adf68965f0c5d3aae125ddadcc24efb5e |
|
MD5 | 15cc958e663038a4993c74d6eeb4dcdf |
|
BLAKE2b-256 | 3dab868a763a48a7e384b72d3c198915061ec7bbdc35361034f277f41d7d9e27 |