Skip to main content

Python client for the https://nekos.moe/ API

Project description

PyNekosOO: a Python wrapper for the Nekos.moe API

PyNekosOO provides a simple and pythonic way to use the [Nekos.moe API](https://docs.nekos.moe/). Fork of [ChoiYun’s wrapper](https://github.com/ChoiYun/PyNekos) focused on allowing the user not to work with raw json data.

The full documentation for PyNekosOO can be found [here](https://github.com/MinekPo1/PyNekos/blob/main/docs/doc.md).

Setup

Some functionalities of the API require authentication, for example posting images, regenerating the token adding likes and favorites. If you want to use these functionalities you have to have an account. Create one [here](https://nekos.moe/register). Note that this is optional as you can use most of the wrapper with out an account.

Installation

PyNekosOO requires Python 3.8 or above.

Use pip to install the package from PyPI:

`bash pip install PyNekosOO `

Authorisation

If you want to use to use functionalities of the API requiring authorisation, you’ll need the token. To get the token, you’ll need your credentials:

`python from PyNekosOO import * nyan = Neko(username='myuser', password='iwillnotshowyouthis') nyan.get_token() `

Afterwards the Neko instance is authorised.

Examples

You can see the usage of all endpoints of the API in the [example files](https://github.com/MinekPo1/PyNekos/tree/main/examples).

Contributing

Please contribute! If you want to fix a bug, suggest improvements, or add new features to the project, just [open an issue](https://github.com/MinekPo1/PyNekos/issues) or fork the project.

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

PyNekosOO-2.0.3.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file PyNekosOO-2.0.3.tar.gz.

File metadata

  • Download URL: PyNekosOO-2.0.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for PyNekosOO-2.0.3.tar.gz
Algorithm Hash digest
SHA256 12eec4336203afb4ed15ba3b9a43325ec6904aa2a34ab2c35b6c92a6cecf7cbb
MD5 e56fd748d2f0e72aa9276fb597a37600
BLAKE2b-256 f6ecc2d10718c3155b309a1fc07212d6b6f249a0f3c8c34ae0dd33a967bf9b25

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