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.0.tar.gz
(26.2 kB
view details)
Built Distribution
File details
Details for the file comicfn2dict-0.2.0.tar.gz
.
File metadata
- Download URL: comicfn2dict-0.2.0.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.12.1 Linux/5.15.0-1053-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0635f8216a2c871ffd099927511957c7a75968c20f4a6fe0bf280e4d28b98452 |
|
MD5 | e153d921b1afe3fc50bafc9c743fdb20 |
|
BLAKE2b-256 | 0f68e1fe63d5e267fefd26fc703e42b08358c22aa2d800dc5b1330f3f1469f82 |
File details
Details for the file comicfn2dict-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: comicfn2dict-0.2.0-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.1 CPython/3.12.1 Linux/5.15.0-1053-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf2e47c6c6d3e95e59236d9b06ca7fc65844db2ec16bd68b0eecbcc5f13096ed |
|
MD5 | 0c2f47c07ed96a659e3215e4e1243343 |
|
BLAKE2b-256 | de8115ae35b97524d8a4501c50f4bc726f056ad4b5970ffd6c0a2a90456c2e93 |