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.0.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file starrailres-1.1.0.tar.gz
.
File metadata
- Download URL: starrailres-1.1.0.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 | 84721e7e9148709f276f41cbcebbcd15f315b43fbbb574b7acc83d05fbdd59e1 |
|
MD5 | 7c6e0454bcd214d10ddd8efb4a47db56 |
|
BLAKE2b-256 | 82741bd8c5f99736626aaf24bc48f1eec3799e89109dac25e517b1a62d001f0b |
Provenance
File details
Details for the file starrailres-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: starrailres-1.1.0-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 | 482149b9b4b754eef3737e17e0ed2c9bef54255c9f4341e83ea12d4b56cfdc08 |
|
MD5 | a50d91380ab7e10d7d44910c9435f65f |
|
BLAKE2b-256 | 8ebd305827208f44d48f3bd3bc185ec46e81dfb123e5335ee180600745bf4b1a |