Darkseid
A Python library to interact with comic archives.
Installation
pip install darkseid
There are optional dependencies which can be installed by specifying one or more of them in braces e.g. darkseid[7zip]
The optional dependencies are:
-
7zip: Provides support for reading/writing to CB7 files.
-
pillow: Provides support for getting page information that is used with ComicInfo.xml metadata.
-
pdf: Provides support for reading/writing metadata in PDF comics and exporting them to CBZ format.
The pymupdf dependency includes pre-built wheels for most platforms. On some platforms (e.g., Linux ARM, Windows), installation may require libstdc++ and C/C++ build tools to compile libmupdf. See the pymupdf documentation for details.
Example
from pathlib import Path
from darkseid.comic import Comic, MetadataFormat
comic = Comic(Path("my_comic.cbz"))
# Check if it's a valid comic
if comic.is_valid_comic():
print(f"Comic '{comic.name}' has {comic.get_number_of_pages()} pages")
# Read metadata
if comic.has_metadata(MetadataFormat.COMIC_INFO):
metadata = comic.read_metadata(MetadataFormat.COMIC_INFO)
print(f"Series: {metadata.series.name}")
# Get a page
page_data = comic.get_page(0) # First page
if page_data:
with open("cover.jpg", "wb") as f:
f.write(page_data)
Documentation
Read the project documentation
Bugs/Requests
Please use the GitHub issue tracker to submit bugs or request features.
Metadata
Release files for darkseid 8.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| darkseid-8.4.1.tar.gz | 118.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| darkseid-8.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 214.4 kB
Release files / darkseid-8.4.1.tar.gz
| Download URL | darkseid-8.4.1.tar.gz |
|---|---|
| Size | 118.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
819c6d333a7d4d9f2c4047eb88b6521469924378d7f4f6ffe7e4270f9240a6d6
|
|
BLAKE2b-256 checksum How to use checksums |
4134e4e65294bb579a4b3e030309c47d5fcb8921067efa7671b19418a5585989
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / darkseid-8.4.1-py3-none-any.whl
| Download URL | darkseid-8.4.1-py3-none-any.whl |
|---|---|
| Size | 96.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
376ec325b391e281c258aafc3de15c5ea46b74df709d650f384506d30a5cef89
|
|
BLAKE2b-256 checksum How to use checksums |
8b174285a6ee90b0c64c1cb35fd5ffe4016676d83e1be8a4148c0c42dfcf9c48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|