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 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
nekosbest-0.1.1-py3-none-any.whl
(18.0 kB
view details)
File details
Details for the file nekosbest-0.1.1.tar.gz.
File metadata
- Download URL: nekosbest-0.1.1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5769de0b18dbee403d92e50ae72c3f502b8eff25e9fb931293e656a71d701ca3
|
|
| MD5 |
dcb46aa61feb97e68f663ece57593c69
|
|
| BLAKE2b-256 |
1e61c4d16fab2c3a72510759a979da42a3b292391d9fbc8104da3ed56e2bc783
|
File details
Details for the file nekosbest-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nekosbest-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6103e125b3118a6b6b482b5f2feccf2104737f8325937ea32151a203bd323d0
|
|
| MD5 |
7e5aa02480433832b98d7005f1dfeedf
|
|
| BLAKE2b-256 |
3b221f1ee7fef616a016738fb26b357bf5e71aee5bba79e3e2a69f51a6c53267
|