Skip to main content

StarRailRes parse 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-2.0.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

starrailres-2.0.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for starrailres-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8934174741a4d16ff713cd9e8de4f9d5b1ba1bda4d9ebd2575aba97981761bbb
MD5 45b04c8c75eef321743b598642b39237
BLAKE2b-256 a6ef6d4eb5ba5fb4c2a2e5501b89cae2d381d208b522957f7683228d936af5b4

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for starrailres-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 443b24d82042de2e4e791626ab9ccb65b1040e75e659a4d63c1fe90afe9d625a
MD5 2c82a835c161fb608d6f997ddb17f03a
BLAKE2b-256 d65a0773817487d61aecb4dc4ff22168d253fa9836f3f9f240566e4e3d953f64

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