Skip to main content

H@H Gallery Parser (h2h-galleryinfo-parser)

H@H Gallery Parser is a Python package designed to parse downloaded gallery files from H@H, a gallery download tool. When H@H downloads a gallery, it creates a folder named after the gallery, containing image files and a galleryinfo.txt file. This package helps extract useful information from the galleryinfo.txt file for further use.

Features

The package provides three core functionalities:

  1. Parse Gallery ID: Extract the gallery ID from a given gallery folder.

  2. Gallery Information Parsing: The GalleryInfoParser class represents a parser for extracting detailed gallery information, including the gallery name, ID, modification time, title, upload and download times, comments, uploader account, tags, and the number of pages. File paths are not retained; the page count is computed lazily with a constant-memory directory pass.

  3. Parse Gallery Information: Extracts all relevant details from the given folder and returns an instance of GalleryInfoParser containing the parsed information.

Installation

You can install this package using pip:

pip install h2h-galleryinfo-parser

Usage

Here's a quick example of how to use H@H Gallery Parser:

from pathlib import Path

from h2h_galleryinfo_parser import parse_gid, parse_galleryinfo

# Parse gallery ID from folder path
gallery_id = parse_gid(Path("/path/to/gallery/folder"))
print(f"Gallery ID: {gallery_id}")

# Parse gallery information
gallery_info = parse_galleryinfo(Path("/path/to/gallery/folder"))
print(f"Gallery Title: {gallery_info.title}")
print(f"Tags: {gallery_info.tags}")

License

This project is distributed under the terms of the GNU General Public Licence (GPL). For detailed licence terms, see the LICENSE file included in this distribution.

Metadata

Release files for h2h-galleryinfo-parser 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for h2h-galleryinfo-parser 0.5.3
File Size Uploaded Provenance
h2h_galleryinfo_parser-0.5.3.tar.gz 23.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for h2h-galleryinfo-parser 0.5.3
File Interpreter ABI Platform
h2h_galleryinfo_parser-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / h2h_galleryinfo_parser-0.5.3.tar.gz

Download URL h2h_galleryinfo_parser-0.5.3.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e55cc4c60a830727f4ac3c6b8604ee8ba85e3500998182af1854c75af5bd5841
BLAKE2b-256 checksum
How to use checksums
817aaacbdcfe3fba125ff125beb4fdaed611d0c104eaa6bb310989c562b5166c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 22, 2026.

Transparency log

Release files / h2h_galleryinfo_parser-0.5.3-py3-none-any.whl

Download URL h2h_galleryinfo_parser-0.5.3-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b9b0177009e5c56d7ebd70570f670458fe11a10526dc5da4604e12cbf95935c
BLAKE2b-256 checksum
How to use checksums
6f9f2389bfd474b174210d9b6181844c6d191d42616bdb9bc0b8b71e600e9df5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 22, 2026.

Transparency log

Security for h2h-galleryinfo-parser 0.5.3

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for h2h_galleryinfo_parser-0.5.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 22, 2026.

Transparency log

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.

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