Skip to main content

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


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)

Uploaded Source

Built Distribution

nekosbest-0.1.0-py3-none-any.whl (18.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page