Skip to main content

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.

📜 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, bool=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': '001',
'series': 'Series Name',
'title': 'Title',
'year': '2023'}

🛠 Development

comicfn2dict code is hosted at Github

Project details


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.3.1.tar.gz (198.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comicfn2dict-0.3.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file comicfn2dict-0.3.1.tar.gz.

File metadata

  • Download URL: comicfn2dict-0.3.1.tar.gz
  • Upload date:
  • Size: 198.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for comicfn2dict-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b51a2fcdedbb0ef859d58331d6214c2067de2332bc719acd89ca840e847055b1
MD5 95cfd926050e3e4bb2ad952f8ada5370
BLAKE2b-256 3015925312daa828d180fbe9fed8c03bf43b15f4cc9d888b1a0c04b37c66e8f9

See more details on using hashes here.

File details

Details for the file comicfn2dict-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: comicfn2dict-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for comicfn2dict-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86e6faa64323d41964059e76f5fcdcde32d16689b8a15c71f1d170c31e3eaf8c
MD5 34c60adb842ef5bf082db0cee487023d
BLAKE2b-256 958b723c9cefa0be98564fcda3117cd61fab94c152a3e981739c65bc6d747a2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page