Skip to main content

comicfn2dict

An API and CLI for extracting structured comic metadata from filenames.

📜 News

comicfn2dict has a NEWS file to summarize changes that affect users.

🕸️ HTML Docs

HTML formatted docs are available here

📦 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, ext=True, verbose=0)

There is also some autogenerated api docs attached to this documentation, but the codebase is small and probably easy to read.

⌨️ CLI

comicfn2dict "Series Name #01 - Title (2023).cbz"
{'ext': 'cbz',
'issue': '01',
'series': 'Series Name',
'title': 'Title',
'year': '2023'}

📐 Filename Format

The filename format page defines the filenames that dict2comicfn() writes as an EBNF grammar, and lists the conventions that comicfn2dict() reads. The metadata schema defines the dict that both functions use. The package ships it as a JSON Schema at comicfn2dict/schemas/comicfn2dict.schema.json.

🛠 Development

comicfn2dict code is hosted at Github

Metadata

Release files for comicfn2dict 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for comicfn2dict 1.1.2
File Size Uploaded Provenance Actions
comicfn2dict-1.1.2.tar.gz 267.9 kB Without provenance Details for comicfn2dict-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for comicfn2dict 1.1.2
File Interpreter ABI Platform Actions
comicfn2dict-1.1.2-py3-none-any.whl Python 3 none any Details for comicfn2dict-1.1.2-py3-none-any.whl

Total release size: 288.1 kB

Release files / comicfn2dict-1.1.2.tar.gz

Download URL comicfn2dict-1.1.2.tar.gz
Size 267.9 kB
Tags Source
SHA-256 checksum
How to use checksums
90aeb1efacf100ec758eaef04677a33bd1dd7cedd3c999467e13b9bc66bb4db3
BLAKE2b-256 checksum
How to use checksums
fbdd87c7b03c88a22b92d5fa8a8fe571c93699bd4377609b87144f67b42c403d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / comicfn2dict-1.1.2-py3-none-any.whl

Download URL comicfn2dict-1.1.2-py3-none-any.whl
Size 20.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1482bd72d4cd78554b24a3b7b2cf9568682a276731e2eddabc92a4824a72601d
BLAKE2b-256 checksum
How to use checksums
79ea37e83b5376084331610c8e710fb9aa7a2866d7a3b8b3aee4dabc129e3b47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for comicfn2dict 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page