Skip to main content

StarRailRes index package.

Project description

StarRailRes-Python

A python library for StarRailRes.

Installation

pip install starrailres

Usage

from pathlib import Path
from starrailres import CharacterBasicInfo, Index, LevelInfo

# replace with index folder
index = Index(Path("index") / "en")

basic = CharacterBasicInfo(
    id="1102",
    rank=0,
    level=70,
    promotion=5,
    skill_tree_levels=[
        LevelInfo(id="1102001", level=2),
        LevelInfo(id="1102002", level=5),
        LevelInfo(id="1102003", level=6),
        LevelInfo(id="1102004", level=5),
        LevelInfo(id="1102007", level=1),
        LevelInfo(id="1102101", level=1),
        LevelInfo(id="1102102", level=1),
        LevelInfo(id="1102201", level=1),
        LevelInfo(id="1102202", level=1),
    ],
)

character = index.get_character_info(basic)
print(character)

For more examples, see examples.

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

starrailres-1.1.2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

starrailres-1.1.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file starrailres-1.1.2.tar.gz.

File metadata

  • Download URL: starrailres-1.1.2.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Windows/10

File hashes

Hashes for starrailres-1.1.2.tar.gz
Algorithm Hash digest
SHA256 baab40fe800269f488d40c1dd0ecad4510a7f9bb1ee7d9e26de1dacbaff4032c
MD5 b34e421c01f21e04cc71548f01389e8f
BLAKE2b-256 9f0a8fca1e84c94449e8884d6887d64bdedfda046f7a4420db27042fe9ec14ee

See more details on using hashes here.

Provenance

File details

Details for the file starrailres-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: starrailres-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Windows/10

File hashes

Hashes for starrailres-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8555012da1d8836daf5095ae0ee5ca78cff19e35e3efcfa6a37fe9e363e9a1e
MD5 3b8e8acf719cfc60cb2094a0f22d1437
BLAKE2b-256 42527cfab6a816f5d3f712098efa440bb79e7d1f029532083c16bd42831e08f6

See more details on using hashes here.

Provenance

Supported by

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