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

Uploaded Source

Built Distribution

comicfn2dict-0.2.4-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: comicfn2dict-0.2.4.tar.gz
  • Upload date:
  • Size: 26.6 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

Hashes for comicfn2dict-0.2.4.tar.gz
Algorithm Hash digest
SHA256 a154d6405824b0323b81471f0977f5b884987012a7904ca135761000511d8835
MD5 c602f6ce24b5de8bdd41040986de0966
BLAKE2b-256 0097f2416a3726044eee5924f76b4c229e24d92678925b2a4cc308540097259d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: comicfn2dict-0.2.4-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

Hashes for comicfn2dict-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 666afa89129cbee1fd14414aa7054e4774b2b3e9c516692e4377e1dd39ec3e19
MD5 76d8bc699a59f8b61c8bc4ac8910d299
BLAKE2b-256 a4e85137f336f8b92a8b57b8b6269c1bf23a9aa2be3bef9d2f91df751025a5b4

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