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-2.1.0.tar.gz
(9.6 kB
view details)
Built Distribution
File details
Details for the file starrailres-2.1.0.tar.gz
.
File metadata
- Download URL: starrailres-2.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 | e3a9f2efbc4eca6cbc29592651f2746bf1f9657f17cae8cb6a715a75a043efde |
|
MD5 | 29bb2178273ad2488c48532e29979f62 |
|
BLAKE2b-256 | e639eff431edc32b58f85840888720cadf5a3f3f2b72817a2c8a1b0b274f844e |
Provenance
File details
Details for the file starrailres-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: starrailres-2.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 | 8f9ef7cfcc09fb423ab4bf70a587e845da3945efac912cf44d4fd7ef2fae2c4d |
|
MD5 | ae1f0cb54740128ed50db8895d4af28e |
|
BLAKE2b-256 | 2d6c713fae60a797fbd27b60eff1d84c968e1c2bef8f10452d15594236eff9f8 |