comicfn2dict
An API and CLI for extracting structured comic metadata from filenames.
📜 News
comicfn2dict has a NEWS file to summarize changes that affect users.
🕸️ HTML Docs
HTML formatted docs are available here
📦 Install
pip install comicfn2dict
🛠️ API
from comicfn2dict import comicfn2dict, dict2comicfn
path = "Comic Series #001 Title (2024).cbz"
metadata: dict[str, str | tuple[str, ...]] = comicfn2dict(path, verbose=0)
filename: str = dict2comicfn(metadata, bool=True, verbose=0)
There is also some autogenerated api docs attached to this documentation, but the codebase is small and probably easy to read.
⌨️ CLI
comicfn2dict "Series Name #01 - Title (2023).cbz"
{'ext': 'cbz',
'issue': '001',
'series': 'Series Name',
'title': 'Title',
'year': '2023'}
🛠 Development
comicfn2dict code is hosted at Github
Metadata
Release files for comicfn2dict 1.0.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 | |
|---|---|---|---|
| comicfn2dict-1.0.0.tar.gz | 195.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| comicfn2dict-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 210.0 kB
Release files / comicfn2dict-1.0.0.tar.gz
| Download URL | comicfn2dict-1.0.0.tar.gz |
|---|---|
| Size | 195.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d55c4fbe7613c992940763a55a28e1ba12a8698869eb1e9ff4ba1d099b27f450
|
|
BLAKE2b-256 checksum How to use checksums |
a3cb009fd905fa52da4a4685248d758a1a8bda168ac08e310a1c52c5d0a1e789
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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 / comicfn2dict-1.0.0-py3-none-any.whl
| Download URL | comicfn2dict-1.0.0-py3-none-any.whl |
|---|---|
| Size | 14.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a61b45c8de022802d2c594e65407103c2ffb7583953b1bc0e1d2a60ce212417d
|
|
BLAKE2b-256 checksum How to use checksums |
9959d84e3854d029ed69c76058be0350d938c84e9bf681f34eed7e8920d16adb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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}
|