Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hg2_item_parser-0.5.2.tar.gz (14.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hg2_item_parser-0.5.2-py3-none-any.whl (15.0 MB view details)

Uploaded Python 3

File details

Details for the file hg2_item_parser-0.5.2.tar.gz.

File metadata

  • Download URL: hg2_item_parser-0.5.2.tar.gz
  • Upload date:
  • Size: 14.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.24

File hashes

Hashes for hg2_item_parser-0.5.2.tar.gz
Algorithm Hash digest
SHA256 15fa6d479f1246b7c21ff43f7b6f0cd9ff85b4a687fafd8b3a21c2516a430605
MD5 e9e5a797ae58232c20b16023c739e9ba
BLAKE2b-256 2e0f55519c61c310b8096a3e40a6cb20591eaef8a799d68c72a38d085aaee24b

See more details on using hashes here.

File details

Details for the file hg2_item_parser-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hg2_item_parser-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6c74729d1fded8b70a47a74c616680298226d62179d6df9d47ecfed8e865d57
MD5 85becd4e9a18d72789ea6f1845593d7f
BLAKE2b-256 01fc920dec50c1f52cf00f2232a70c07fda2e67423ca0ed8e22f93e21a668ff1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page