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.8.tar.gz (21.8 kB 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.8-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novelai-api-0.8.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for novelai-api-0.8.tar.gz
Algorithm Hash digest
SHA256 9331bf9c94dac73d7a42755afa16a9ec6b8e695756eaa1dc9677d1e54ac0ed63
MD5 8fbc6818299a81c5734ac7022c54e4f6
BLAKE2b-256 fc5f4521adcc080f088c499ad70d5ea4d991b23f72661d4aa68a9112d0b3283e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novelai_api-0.8-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for novelai_api-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a4c5666deda833b4832eb34e8dcd10aa41fdab18f801f5cfc804ee182bd5bb66
MD5 e023e17c06768625430e9811ec7e04ed
BLAKE2b-256 14470e657759b5443f818eb7b8827cc8b374e34a54163be0ece1fcc7392bfb69

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