Skip to main content

A simple H@H database

Project description

H2HDB

Description

The H2HDB is a comprehensive database for organising and managing H@H comic collections. It offers a streamlined way to catalogue your comics, providing key information such as GID (Gallery ID), title, tags and more, ensuring your collection is always organised and accessible.


Features

  • Add new galleries to the database
  • Comporess H@H's galleries to a folder
  • Record the removed GIDs in a separate list
  • Write document (need?)

Installation and Usage

  1. Install Python 3.13 or higher from python.org.

  2. Install the required packages.

    pip install h2hdb
    
  3. Run the script.

    python -m h2hdb --config [json-path]
    

Config

{
    "h2h": {
        "download_path": "[str]", // The download path of H@H. The default is `download`.
        "cbz_path": "[str]", // The cbz in this path.
        "cbz_max_size": "[int]", // The maxinum of the mininum of width and height height. The default is `768`.
        "cbz_grouping": "[str]", // `flat`, `date-yyyy`, `date-yyyy-mm`, or `date-yyyy-mm-dd`. The default is `flat`.
        "cbz_sort": "[str]" // `upload_time`, `download_time`, `pages`, or `pages+[num]`. The default is `no`.
    },
    "database": {
        "sql_type": "[str]", // Now only supports `mysql`. The default is `mysql`.
        "host": "[str]", // The default is `localhost`.
        "port": "[str]", // String, not Integer. The default is `3306`.
        "user": "[str]", // The default is `root`.
        "password": "[str]" // The default is `password`.
    },
    "logger": {
        "level": "[str]" // One of NOTSET, DEBUG, INFO, WARNING, ERROR, CRITICAL.
    }
}

Q & A

  • Why are some images missing from the CBZ-files? H2HDB does not compress images that are considered spam according to certain rules. If you encounter any images that you believe should have been included, please report the issue.

  • Why are some images in some CBZ files and not in other CBZ-files? H2HDB learns the spam rule from the previous CBZ files. If you kill the CBZ files containing these images, the new CBZ files will not contain these images.


Credits

The project was created by Kuan-Lun Wang.


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

h2hdb-0.9.1.2.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

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

h2hdb-0.9.1.2-py3-none-any.whl (49.6 kB view details)

Uploaded Python 3

File details

Details for the file h2hdb-0.9.1.2.tar.gz.

File metadata

  • Download URL: h2hdb-0.9.1.2.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for h2hdb-0.9.1.2.tar.gz
Algorithm Hash digest
SHA256 14642f0cf7d026fd82283f184c38ce4e73cd898b43dfe9c3da060f98cf80f335
MD5 006877f48b091fc6511f646db6ecb2d0
BLAKE2b-256 34d2e1073634012110fbd9362a4415b855603f53adfafed268a8cdc291760d71

See more details on using hashes here.

File details

Details for the file h2hdb-0.9.1.2-py3-none-any.whl.

File metadata

  • Download URL: h2hdb-0.9.1.2-py3-none-any.whl
  • Upload date:
  • Size: 49.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for h2hdb-0.9.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03d2fecfe301a8c33c52de4422b6e4e11297ad2b88971e7d04310cb966c5e963
MD5 5209b426c6fe4eb381ca9a541c7a3985
BLAKE2b-256 6ef53f8e8c344d6d089d7e66265420692cd0dbb405e1203353df2b51f9df2fb5

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