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.
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)
CLI
comicfn2dict "Series Name #01 - Title (2023).cbz"
{'ext': 'cbz',
'issue': '001',
'series': 'Series Name',
'title': 'Title',
'year': '2023'}
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
comicfn2dict-0.2.5.tar.gz
(26.8 kB
view details)
Built Distribution
File details
Details for the file comicfn2dict-0.2.5.tar.gz
.
File metadata
- Download URL: comicfn2dict-0.2.5.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
716197559a3ad77783ece68f452ab8669b473b452c638961981829677f32ec4b
|
|
MD5 |
7de26099c65e93f091b3aa9feec95c6f
|
|
BLAKE2b-256 |
bd53331345e535dfa221023889f98b27af3d529864bb53e5347bc5e147a079c3
|
File details
Details for the file comicfn2dict-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: comicfn2dict-0.2.5-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
de5083bfb4200fd5cf0acb1f0121dc4a055820dbf3c4e80f0b278032a4953a8a
|
|
MD5 |
4a04a4e5c97cc6e00e5d98c730098114
|
|
BLAKE2b-256 |
b1e8773f008294b1ab7a037fd0c15924418da798465712d2193d19aa084dae52
|