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.2.tar.gz
(26.5 kB
view hashes)
Built Distribution
Close
Hashes for comicfn2dict-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d75858d0a29f69fb995063a04fb4e3deb3ccafe3ffb0b444478431f4dff96ae7 |
|
MD5 | 087c83306bdc846a59afd390b7d1f006 |
|
BLAKE2b-256 | 4d06b2969e0d755ce60e441d4d08c307f5ae3dcc21a12e6628a936eb0087c3ac |