Skip to main content

Python API for the NovelAI REST API

Project description

Python package

novelai-api

Python API for the NovelAI REST API

The module is intended to be used by developers as a help for using NovelAI's REST API.

Prerequisites:

For loging in, credentials are needed (NAI_USERNAME and NAI_PASSWORD). They should be passed from the environment variables.

Examples:

The examples are in the example folder. Each example is working and can be used as a test. Each example can be called with python <name>.py.

Tests:

The tests can be called with pytest -n auto --tb=short tests. Note that running npm install fflate and having node.js installed is required for test_decrypt_encrypt_integrity_check to run properly

Module:

The actual module is in the novelai-api folder. This module is asynchronous, and, as such, must be run with asyncio. An example can be found in any file of the example directory. The module is registered as package under Pypi.

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

novelai-api-0.9.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

novelai_api-0.9-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file novelai-api-0.9.tar.gz.

File metadata

  • Download URL: novelai-api-0.9.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for novelai-api-0.9.tar.gz
Algorithm Hash digest
SHA256 c7a227f1d00c84451ee73a70beea87385c680e3ea4bf5e436e145a5574cd9db0
MD5 0ade195a33a8c9a805a412380245e3d8
BLAKE2b-256 69ed74960ad9154e8dc49c4d6c47cbc174dc97461bb9e5e113a548c167b72455

See more details on using hashes here.

File details

Details for the file novelai_api-0.9-py3-none-any.whl.

File metadata

  • Download URL: novelai_api-0.9-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for novelai_api-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2fdeabc0d09d048f6092bb5ff39e511346be14fef6073cec1cb27f91160ad253
MD5 096ffd4d5b24b4b8be5a4fbac862a578
BLAKE2b-256 eb748f66d00ea6811b3e0470f493e4642669dce2d4044102aed27fdecc0c3747

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