Skip to main content

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)

Source distribution for hg2-item-parser 0.7.2
File Size Uploaded
hg2_item_parser-0.7.2.tar.gz 14.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for hg2-item-parser 0.7.2
File Interpreter ABI Platform
hg2_item_parser-0.7.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.13

2 release files

0.5.12

2 release files

0.5.11

2 release files

0.5.10

2 release files

0.5.9

2 release files

0.5.8

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page