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.0.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.0.0.tar.gz.
File metadata
- Download URL: starrailres-3.0.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 |
6cfe61be2c0323973044c338acdb0a5b0edcfd912708b743186f028d3e1ebfad
|
|
| MD5 |
ae50511d4132cad35259b7205569fd11
|
|
| BLAKE2b-256 |
df86294b7a2125b5705483efda52230015e63ebea1751978c107648f891af1f9
|
File details
Details for the file starrailres-3.0.0-py3-none-any.whl.
File metadata
- Download URL: starrailres-3.0.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 |
d4683bd1fce1be3966d7035cf2855374d06f96bf0de7b31b588ed0de731b7a18
|
|
| MD5 |
9f74ca6adf71e85d1343dc500735b053
|
|
| BLAKE2b-256 |
69437f3cdc1e582d2ec3a9897e1fa8633946d4f710837607455c97774ccd6aa6
|