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.1.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file starrailres-1.1.1.tar.gz
.
File metadata
- Download URL: starrailres-1.1.1.tar.gz
- Upload date:
- Size: 8.9 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 | 7cb00633dc42082652e7cde7acd10113aa00df7303e723f3955ae09790092679 |
|
MD5 | 5777866b829c9ef040c3e8afdcd90c12 |
|
BLAKE2b-256 | cd18c9b2122018b52140b725b843076bf35092a69d422e82537f2a073eea4e7f |
Provenance
File details
Details for the file starrailres-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: starrailres-1.1.1-py3-none-any.whl
- Upload date:
- Size: 12.0 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 | 4708e7a96118e6f3550ccabd2a4fd6c72130ca5ddec554bfd60f7eecb0f43c72 |
|
MD5 | cf9b7397e7a9f164ac20a00c545ec39a |
|
BLAKE2b-256 | ad64cdd3325c203f22cc114dcd938a87c1083397cd0c27dc4c7b0180016123fc |