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.

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


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.0a1.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

comicfn2dict-0.2.0a1-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file comicfn2dict-0.2.0a1.tar.gz.

File metadata

  • Download URL: comicfn2dict-0.2.0a1.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/5.15.0-1053-aws

File hashes

Hashes for comicfn2dict-0.2.0a1.tar.gz
Algorithm Hash digest
SHA256 73445bd12495d47e9c6ade3ab4c6c87e4adaf536785ec4c92f665977468a099a
MD5 a9bf1183d530bd221c992842aa0453db
BLAKE2b-256 566dd053439803fd8ce3e4967499149db1c23e724d7f94ce71aa627444acce99

See more details on using hashes here.

File details

Details for the file comicfn2dict-0.2.0a1-py3-none-any.whl.

File metadata

  • Download URL: comicfn2dict-0.2.0a1-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/5.15.0-1053-aws

File hashes

Hashes for comicfn2dict-0.2.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 b25d1bbd86d7a40bf20ba2c7eaaa269a763c7bf38dfd4e6e9191a321e648326f
MD5 4cadf0fa2fca38fb1e0c627e4f79641c
BLAKE2b-256 c07c368d8ba4ada224259fca499be5057dd0fb7437f2e6ab843bea7eb62f34a9

See more details on using hashes here.

Supported by

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