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
Release history Release notifications | RSS feed
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.3.2.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for starrailres-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22e3c49079709dd5d543a2304b9042313e1ad48ed914b42ab8a1486ebd0cf16f |
|
MD5 | c6cb86f0f7d8456c7952e61f80237341 |
|
BLAKE2b-256 | eb8945d636628038550380dd4ff654c5431cac7be3aa2d8dc0620dd7d35004ed |