Parse common comic filenames and return a dict of metadata attributes. Includes a cli.
Project description
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
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 comicfn2dict-0.3.0.tar.gz.
File metadata
- Download URL: comicfn2dict-0.3.0.tar.gz
- Upload date:
- Size: 178.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70a4baafc5212726f2958da5e7c52720a4c137d1ba04ad9cfaf5bcb607d3a21c
|
|
| MD5 |
711be50caab7802a164505c3d6835c6e
|
|
| BLAKE2b-256 |
9bc5aa0847cc74cbc71e698ead39c21ddba730299d4e678e207aa21eb8ee98d2
|
File details
Details for the file comicfn2dict-0.3.0-py3-none-any.whl.
File metadata
- Download URL: comicfn2dict-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f696dbe79adf5ff562c3cbe1b1e1efdf5101fd5cf577abc175ecbd92bb003d18
|
|
| MD5 |
866577957a9b8c85260ebde3710c8516
|
|
| BLAKE2b-256 |
6f716881199468f949835c31c568f1a33c74211090366a547bcce3c649108f58
|