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-3.1.0.tar.gz
(9.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file starrailres-3.1.0.tar.gz.
File metadata
- Download URL: starrailres-3.1.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.10 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1b12cea92702fd5c0438ef42b899d36492d66c2bc511d9dda80b79d582aff6f
|
|
| MD5 |
87eefec5b300ebd216ade0fbcb7a699c
|
|
| BLAKE2b-256 |
bcdb2876a82752092c4f39edcf02d1ecbd1a84ea743181d8befb11c76173473f
|
File details
Details for the file starrailres-3.1.0-py3-none-any.whl.
File metadata
- Download URL: starrailres-3.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.10 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ea1447602397a424744d682f61f25955c2416f1f31f220f5c3e99845055aca7
|
|
| MD5 |
5e3c9dd75279c6c84edba37b15bdcd22
|
|
| BLAKE2b-256 |
418c894f770fc03866e79f7b25629fcc5243e0536dcc48dc97405d100203d42c
|