Python package for parsing Houkai Gakuen 2 items data
Project description
About
hg2-item-parser is a Python package for parsing Houkai Gakuen 2 items data.
Installation
From PyPi
pip install hg2-item-parser
Preparations
To use this package, you will need a folder containing all item data, which can be downloaded and extracted using another package hg2-data-extractor. It is recommended to use both packages in the same directory to avoid manually specifying folder paths, as they are designed to create and use directories with compatible names by default.
Usage
To get help, type --help with any command or even package
Check
To print any item to the console, use:
hg2-item-parser check item_id # Prints item using ./extracted/ as data
hg2-item-parser check item_id path/to/data # Prints item using path/to/data as data
Parse
To parse any item to the file, use:
hg2-item-parser parse item_id # Parses item to ./parsed/items.txt using ./extracted/ as data
hg2-item-parser parse item_id path/to/dir # Parses item to path/to/dir/items.txt using ./extracted/ as data
hg2-item-parser parse item_id path/to/dir path/to/data # Parses item to path/to/dir/items.txt using path/to/data as data
Multiple parse
To parse multiple items to the file, use:
hg2-item-parser parse-from-to item_id1 item_id2 # Parses items in range to ./parsed/items.txt using ./extracted/ as data
hg2-item-parser parse-from-to item_id1 item_id2 path/to/dir # Parses items in range to path/to/dir/items.txt using ./extracted/ as data
hg2-item-parser parse-from-to item_id1 item_id2 path/to/dir path/to/data # Parses items in range to path/to/dir/items.txt using path/to/data as data
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
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 hg2_item_parser-0.5.10.tar.gz.
File metadata
- Download URL: hg2_item_parser-0.5.10.tar.gz
- Upload date:
- Size: 14.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f23dead41c7f36193e435e4818282e365f8631e0746d9cf393e5e87ac7d2c08
|
|
| MD5 |
fdf3fa4602c31b9e7fca22432e251f64
|
|
| BLAKE2b-256 |
5fc172c4d3919dd50e74079c8e79d0cf0f611a1905d638cb25b96ad84535305e
|
File details
Details for the file hg2_item_parser-0.5.10-py3-none-any.whl.
File metadata
- Download URL: hg2_item_parser-0.5.10-py3-none-any.whl
- Upload date:
- Size: 15.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
272e76c2211bec2110dde00d417e8a760d1bdfa53b33568e59a0909611ba2b09
|
|
| MD5 |
5ccc3fe4dc4aff8751a156bc61312115
|
|
| BLAKE2b-256 |
0e63adc2cf3650da07e16a3662820680e6a6cd2f46068f9cb313abe9d429dd3e
|