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 9.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| darkseid-9.1.0.tar.gz | 129.8 kB | Without provenance | Details for darkseid-9.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| darkseid-9.1.0-py3-none-any.whl | Python 3 | none | any | Details for darkseid-9.1.0-py3-none-any.whl |
Total release size: 234.5 kB
Release files / darkseid-9.1.0.tar.gz
| Download URL | darkseid-9.1.0.tar.gz |
|---|---|
| Size | 129.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
420c70b2f67e08fa2c64d7d2983149fd1f0b45f51f8b1ee54fb770b4322d4374
|
|
BLAKE2b-256 checksum How to use checksums |
55c4a4c2e23558d30b608f77dcb1c280ec1fef4d3e0f6c9c55e5b64c06c6e834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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-9.1.0-py3-none-any.whl
| Download URL | darkseid-9.1.0-py3-none-any.whl |
|---|---|
| Size | 104.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7f89b6cf4e83fc76b6b11e5ca21d14c1961dcc0e959ce4b67dbf3148c12bee03
|
|
BLAKE2b-256 checksum How to use checksums |
fdadbc18442ac996c00986afaaa517512ec4e90d74527f0c9a18d62703f16b73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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}
|
Security for darkseid 9.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.