StarRailRes index 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.1.3.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file starrailres-1.1.3.tar.gz
.
File metadata
- Download URL: starrailres-1.1.3.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.10.10 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24203d0a6bf8e9a7a7c1bc8d0496bed1791adf5e71c6c26c6e8bcded1c9ba08f |
|
MD5 | 1cca6486f01db716c20030656c222362 |
|
BLAKE2b-256 | 219eb50c8e5afda7f3d06fdf2a1c34749f4079dcb0677d3e0cd1846254ec8854 |
Provenance
File details
Details for the file starrailres-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: starrailres-1.1.3-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.10.10 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e105c957d6ebfb0acd343689707024242452ee7b942086448c2b42755d8e4e1 |
|
MD5 | fa31bfefe79e8f5d842bfa245d42b110 |
|
BLAKE2b-256 | c79ef25f60811704f5a51e84f133f5af5f7a8897b1f3b06ff0c4ce56ccecef2c |