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.0.1.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file starrailres-1.0.1.tar.gz
.
File metadata
- Download URL: starrailres-1.0.1.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 | ba01328581a69a2ccaf69102d681c54cd936881c232d64075ae76f44d5d43f7a |
|
MD5 | 1421e4bb4e0cc663c0711e314c4d5797 |
|
BLAKE2b-256 | f25e854acee5493b3e17794c67d680c3b48d0c2d2bf88d9e1d3e168e437aa917 |
Provenance
File details
Details for the file starrailres-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: starrailres-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.2 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 | 36e54b98052c40c47583fa3ab15c6dc62b34f774e2bebdf4663545e03eae6381 |
|
MD5 | 0951bf4f964d87b5f340715b7fd32477 |
|
BLAKE2b-256 | ffafead2656e1294443aae20e2b5f9c86319b120b576afd60444b47986eb67a3 |