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, 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.2.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

h2h_galleryinfo_parser-0.2.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: h2h_galleryinfo_parser-0.2.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for h2h_galleryinfo_parser-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f463cb6748dad6ee3791d313adf0d82e963bf3dfd4f8da79af154f5f101244cd
MD5 dd3bebfd7c205d1aa4cfd81095fc93b3
BLAKE2b-256 f4e50b9612c4327b28e9f55fb11b40cbe19254d43c02b2a05745a2dca35f8757

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for h2h_galleryinfo_parser-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7709aa9bc326f80344379cc1fb70c83a7a902890fa9b4d120955d6a31afe12e9
MD5 aba969201c6514a7a34d487bd7fdf71e
BLAKE2b-256 927c8f7b2f2f6ea25d2afda49778f0c42c9c0395bd1a6bd20e63541305369058

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