Skip to main content

VNDB api client implementation and dumps helper

Project description

VNDB Thigh-highs

This module provides a VNDB client api implementation. It aims to provide some high level features to easily use VNDB api. It also includes some helper functions and classes to easily use database dumps.

API Quick start

from vndb_thigh_highs import VNDB
from vndb_thigh_highs.models import VN

vndb = VNDB()
vns = vndb.get_vn(VN.id == 17)
vn = vns[0]
print(vn.title)

Check the documentation for more details

Dumps Quick start

from vndb_thigh_highs.dumps import TraitDatabaseBuilder

builder = TraitDatabaseBuilder()
trait_db = builder.build_with_archive("path/to/traits.json.gz")
trait_id = 186
trait = trait_db.get_trait(trait_id)
print(trait.name)

Check the documentation for more details

Testing

Run test/main.py.

By default tests are run using predefined responses. It is possible to run them with vndb by editing use_mock_socket = True in test/test_case.py, though logged in tests require valid credentials in data/login.json. A few troublesome tests are also skipped when using vndb.

Database dumps tests will need dumps, compressed and decompressed, in data/.

License

This module is licensed under the AGPLv3.

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

vndb_thigh_highs-0.1.8.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

vndb_thigh_highs-0.1.8-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file vndb_thigh_highs-0.1.8.tar.gz.

File metadata

  • Download URL: vndb_thigh_highs-0.1.8.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for vndb_thigh_highs-0.1.8.tar.gz
Algorithm Hash digest
SHA256 9787d992c4c776e8b9c1b2ef840a29faf67a48262a913b70441f07a6b82887b9
MD5 fbea68b3bb15e15ab4f435f4acbd5b15
BLAKE2b-256 5f1fa7c4d9b96eb8ce3c6d52148f0a24532368e86b18d0e4886a4ebbe51ea0a6

See more details on using hashes here.

File details

Details for the file vndb_thigh_highs-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for vndb_thigh_highs-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6c1fd39dbbedf6086f64a3c40c0fc4cc9b4a03795eec66374a3145f7bf0a4ddd
MD5 6c4da61a2a87a1d2548dc000d27eb8af
BLAKE2b-256 a90b0fb40e50c6830990dcd325700e85e598b6570290fa450590fe24ccaa623f

See more details on using hashes here.

Supported by

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