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
-
Install uv. It manages the Python version and dependencies for you.
-
Install the required packages.
uv pip install h2hdb
-
Run the script.
uv run python -m h2hdb --config [json-path]
Config
{
"h2h": {
"download_path": "download",
"cbz_path": "",
"cbz_max_size": 768,
"cbz_grouping": "flat",
"cbz_sort": "no"
},
"database": {
"sql_type": "mariadb",
"host": "localhost",
"port": 3306,
"user": "root",
"password": "password",
"database": "h2h"
},
"logger": {
"level": "INFO"
}
}
h2h.download_path: H@H download path. The default isdownload.h2h.cbz_path: directory for CBZ output. The default is empty.h2h.cbz_max_size: maximum image size. The default is768.h2h.cbz_grouping:flat,date-yyyy,date-yyyy-mm, ordate-yyyy-mm-dd. The default isflat.h2h.cbz_sort:no,upload_time,download_time,gid,title,pages, orpages+[num]. The default isno.database.sql_type:mariadborsqlite. The default ismariadb. Existing config files that still usemysqlmust update this field.database.host,database.port,database.user, anddatabase.passwordare only used formariadb.database.database: formariadb, this is the database name. Forsqlite, this is the path to the database file.logger.level: one ofNOTSET,DEBUG,INFO,WARNING,ERROR, orCRITICAL.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h2hdb-0.10.7.2.tar.gz.
File metadata
- Download URL: h2hdb-0.10.7.2.tar.gz
- Upload date:
- Size: 63.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2c32897a1b87c80b8e3fc971bf5754e9f88d2f4fa9f751c3aa620e21b0a93f1
|
|
| MD5 |
63d28431b6dc5c69dd3a1d1ebe85fb7a
|
|
| BLAKE2b-256 |
3181bbed59114dded9c37633d94c1e50fb0593ff64017acb7959377fdb00c592
|
Provenance
The following attestation bundles were made for h2hdb-0.10.7.2.tar.gz:
Publisher:
publish.yml on Kuan-Lun/h2hdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
h2hdb-0.10.7.2.tar.gz -
Subject digest:
a2c32897a1b87c80b8e3fc971bf5754e9f88d2f4fa9f751c3aa620e21b0a93f1 - Sigstore transparency entry: 2034686936
- Sigstore integration time:
-
Permalink:
Kuan-Lun/h2hdb@42a76e08d61d8f3c4774803c1e6c8dcc2ea19280 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Kuan-Lun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@42a76e08d61d8f3c4774803c1e6c8dcc2ea19280 -
Trigger Event:
push
-
Statement type:
File details
Details for the file h2hdb-0.10.7.2-py3-none-any.whl.
File metadata
- Download URL: h2hdb-0.10.7.2-py3-none-any.whl
- Upload date:
- Size: 60.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06c4e5210d0404d4e24f2aa9295f88e197d7964700559d5263520d41b7ee081f
|
|
| MD5 |
9b8a0cda7d12f1c196f65bd816a831c7
|
|
| BLAKE2b-256 |
b692a8286df187e8b9703e23ccd4fbb394dd708d6330e4877bbbb74b89ed6818
|
Provenance
The following attestation bundles were made for h2hdb-0.10.7.2-py3-none-any.whl:
Publisher:
publish.yml on Kuan-Lun/h2hdb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
h2hdb-0.10.7.2-py3-none-any.whl -
Subject digest:
06c4e5210d0404d4e24f2aa9295f88e197d7964700559d5263520d41b7ee081f - Sigstore transparency entry: 2034687097
- Sigstore integration time:
-
Permalink:
Kuan-Lun/h2hdb@42a76e08d61d8f3c4774803c1e6c8dcc2ea19280 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Kuan-Lun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@42a76e08d61d8f3c4774803c1e6c8dcc2ea19280 -
Trigger Event:
push
-
Statement type: