Skip to main content

A simple H@H GalleryInfo Parser

Project description

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

H@H Gallery Parser is a Python package designed to parse downloaded gallery files from H@H (Hentai@Home), 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, paths of files, modification time, title, upload and download times, comments, uploader account, tags, and the number of pages.

  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 h2h_galleryinfo_parser import parse_gid, parse_galleryinfo

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

# Parse gallery information
gallery_info = parse_galleryinfo('/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.

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

h2h_galleryinfo_parser-0.1.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

h2h_galleryinfo_parser-0.1.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file h2h_galleryinfo_parser-0.1.0.tar.gz.

File metadata

File hashes

Hashes for h2h_galleryinfo_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1d4ed6c9ae4b9ae9bf632e60a55d890787ddc81a64e3ecae6cd1a8390458984
MD5 bc44dca4a63bd116372fa0ccbe5ff577
BLAKE2b-256 5c1ac678409dd7f33a63f16c054f7c1ff87bc3ab782c57cab4ead9809072cd1d

See more details on using hashes here.

File details

Details for the file h2h_galleryinfo_parser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for h2h_galleryinfo_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee6ad1d5d7d1822ada7f969f137fd83aa5dfdbeb6961fb0cde6e4281c959063
MD5 4b646acfd08ab4e06d31522120d6c184
BLAKE2b-256 43532b64555f0c3cbc6e229bb72bbee9f3fbd9c47030aba102bdd0090af10c14

See more details on using hashes here.

Supported by

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