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.
Commands Overview
The CLI offers several commands for processing data. Below is a quick summary:
| Command | Description |
|---|---|
check |
Parses a single item by ID and prints to the console. |
parse |
Parses a single item or a range of items by ID(s) and writes to a file. |
Usage
The CLI is invoked through a main entry point (e.g., hg2-item-parser or python -m <module-name>). Below are detailed examples for each command.
1. Check item
Parses and displays details about a single in-game item by its ID.
hg2-item-parser check <item_id> --data-dir path/to/data/
| Option | Description | Default Value |
|---|---|---|
<item_id> |
The in-game ID of a single item to parse. | None |
--data-dir, -d |
Path to the directory where data files are located. | extracted |
2. Parse item(s)
Parses and writes a single item or a range of items by their in-game IDs to a file.
hg2-item-parser parse <item_id> --range from to
| Option | Description | Default Value |
|---|---|---|
<item_id> |
The in-game ID of a single item to parse. | None |
--range, -r |
Specify a range of item IDs to parse. Provide two integers: the start and end IDs (inclusive). | None |
Examples
1. Check item
Display item with ID=200:
hg2-item-parser check 200 --data-dir extracted
2. Parse a single item
Parse item with ID=200:
hg2-item-parser parse 200 --output items.txt --data-dir extracted
3. Parse a range of items
Parse items with IDs from 1 to 200:
hg2-item-parser parse --range 1 200 --output items.txt --data-dir extracted
Metadata
Release files for hg2-item-parser 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hg2_item_parser-0.7.2.tar.gz | 14.9 MB | Without provenance | Details for hg2_item_parser-0.7.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hg2_item_parser-0.7.2-py3-none-any.whl | Python 3 | none | any | Details for hg2_item_parser-0.7.2-py3-none-any.whl |
Total release size: 29.9 MB
Release files / hg2_item_parser-0.7.2.tar.gz
| Download URL | hg2_item_parser-0.7.2.tar.gz |
|---|---|
| Size | 14.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0debafddae8cec8a46d090c885e7bb7c9e9de7e8d1a0bb7f91528327bb40b54b
|
|
BLAKE2b-256 checksum How to use checksums |
699e884cd1cd1c076d9c45f4cbeb7a15f6608904e97b51606ae4447dc201e7d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.7
|
Release files / hg2_item_parser-0.7.2-py3-none-any.whl
| Download URL | hg2_item_parser-0.7.2-py3-none-any.whl |
|---|---|
| Size | 15.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1c15113a0416bd0644d4738c89cc101bb35de904a93b7ac8a40da8d1cfa7624
|
|
BLAKE2b-256 checksum How to use checksums |
6423efbe9e3c59894fb1016b52689e3fdd1d9597d62d6fc15e10c53470e388a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.7
|
Security for hg2-item-parser 0.7.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.