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.3.tar.gz
(26.5 kB
view details)
Built Distribution
File details
Details for the file comicfn2dict-0.2.3.tar.gz
.
File metadata
- Download URL: comicfn2dict-0.2.3.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/5.15.0-1057-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4556851f973a38aa4bdeaa484cc5d51f450f2e6170861a1ea433a063dcd676 |
|
MD5 | 63666bdad550ed694be1b9de26b08a87 |
|
BLAKE2b-256 | 87e5a1c10d5d77e236319e4829dd0dafbe549c3e945fcc3d2628fb46426020fd |
File details
Details for the file comicfn2dict-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: comicfn2dict-0.2.3-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/5.15.0-1057-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6850e6a2bafe63f674767812c7a95bc3aaaaa3e23da3183335b9c517a53c43 |
|
MD5 | 1a6662661e78471cbfb3a25c8fc00faa |
|
BLAKE2b-256 | 0c6c049bb19ab96ccace3faea02a7c34152ab048e0581e66f4c5844af36681b5 |