Go to file
2024-02-28 13:14:49 -08:00
.circleci circleci build scripts 2024-02-23 18:29:45 -08:00
bin add publish script 2024-02-23 19:20:36 -08:00
comicfn2dict exclude captain marvel from pulisher dectector 2024-02-25 01:56:28 -08:00
tests lint and add type notations 2024-02-24 19:40:33 -08:00
.dockerignore initial commit 2023-12-21 13:04:52 -08:00
.eslintignore update to flat eslint config 2024-02-16 18:27:29 -08:00
.gitignore initial commit 2023-12-21 13:04:52 -08:00
.prettierignore initial commit 2023-12-21 13:04:52 -08:00
.remarkignore initial commit 2023-12-21 13:04:52 -08:00
.shellcheckrc initial commit 2023-12-21 13:04:52 -08:00
builder-requirements.txt initial commit 2023-12-21 13:04:52 -08:00
comicfn2dict.py initial commit 2023-12-21 13:04:52 -08:00
comicfn2dict.sh initial commit 2023-12-21 13:04:52 -08:00
debian.sources circleci build scripts 2024-02-23 18:29:45 -08:00
docker-compose.yaml circleci build scripts 2024-02-23 18:29:45 -08:00
Dockerfile revert dockerfile to just use install-all" 2024-02-23 19:07:10 -08:00
eslint.config.js update to flat eslint config 2024-02-16 18:27:29 -08:00
LICENSE resolve LICENSE conflict 2023-12-21 13:06:58 -08:00
Makefile fix install-deps in makefile 2024-02-23 19:06:35 -08:00
NEWS.md enforce title position limits. reduce parse_series_and_title complexity. add type hints. 2024-02-24 18:21:07 -08:00
package-lock.json update deps. bump version 2024-02-28 13:10:57 -08:00
package.json update to flat eslint config 2024-02-16 18:27:29 -08:00
poetry.lock update deps. bump version 2024-02-28 13:10:57 -08:00
pyproject.toml update deps. bump version 2024-02-28 13:10:57 -08:00
README.md update docs 2024-02-23 18:23:08 -08:00

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'}