A simple async Python wrapper for nekos.best API.
Project description
nekos-best.py
A simple async Python wrapper for nekos.best API.
Join the official Discord server here.
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")) # https://nekos.best/nekos/0001.png
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.1.tar.gz
(15.3 kB
view hashes)
Built Distribution
nekosbest-0.1.1-py3-none-any.whl
(18.0 kB
view hashes)
Close
Hashes for nekosbest-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6103e125b3118a6b6b482b5f2feccf2104737f8325937ea32151a203bd323d0 |
|
MD5 | 7e5aa02480433832b98d7005f1dfeedf |
|
BLAKE2b-256 | 3b221f1ee7fef616a016738fb26b357bf5e71aee5bba79e3e2a69f51a6c53267 |