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.6.0.tar.gz
(9.8 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.6.0.tar.gz.
File metadata
- Download URL: starrailres-3.6.0.tar.gz
- Upload date:
- Size: 9.8 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 |
5f58352a891a9c647ab9a3778eab5ffc8492e474612cbfcafc2c49087d180cf8
|
|
| MD5 |
5c325d543367b2fe94bb2271ab9517e7
|
|
| BLAKE2b-256 |
a2f847e9e43d0db04e5beb5a9fc06c564c7e05a936ccc042f001952d02b12e41
|
File details
Details for the file starrailres-3.6.0-py3-none-any.whl.
File metadata
- Download URL: starrailres-3.6.0-py3-none-any.whl
- Upload date:
- Size: 12.8 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 |
356e123a983c8eddcdf82daaf646b8e1a820d410fb963da5bc4d7ee0a2bb761d
|
|
| MD5 |
dc1f26353332ff7d4ea9bfb6fcab575c
|
|
| BLAKE2b-256 |
006771d1a558b99fbef5dfa08b4c3366ccc8a295cca22343c8a9fc0e37984f9b
|