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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file nekosbest-0.1.0.tar.gz.

File metadata

  • Download URL: nekosbest-0.1.0.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

Hashes for nekosbest-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5cbb18de4da2ecc31f1d1bb745a10d0808279fb23f35f0487a3424cb3cb3bff7
MD5 5d74a97c175effd51b734fc08567921c
BLAKE2b-256 5a010093dcbc6e211cdad7b6297c0016e5157ac0516e19062774ce460a2c771e

See more details on using hashes here.

File details

Details for the file nekosbest-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nekosbest-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 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

Hashes for nekosbest-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e3e433550339359f609e867dbd1c02adf68965f0c5d3aae125ddadcc24efb5e
MD5 15cc958e663038a4993c74d6eeb4dcdf
BLAKE2b-256 3dab868a763a48a7e384b72d3c198915061ec7bbdc35361034f277f41d7d9e27

See more details on using hashes here.

Supported by

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