Skip to main content

Outputs list of missing comic book issue files in a folder given a range

Project description

comic-list.py - Output a list of owned/missing issues of a comic book series in a single folder

Installation

pip install comic-list

Description

comic-list.py will print a list of owned and missing issue numbers given a folder which contains comic book files with issue number in the file name.

Default supported extensions are: CBZ, CBR, CB7, CBA, CBT

When run no arguments it will use the following defaults:

  • Get file names from current directory matching supported extensions

  • Get the issue number immediately succeeding the # symbol

  • Use the first and last issue numbers in the directory as the total range

    python comic-list

Options

You can view the arguments by running python comic-list --help

positional arguments:
  dir                   Input folder

optional arguments:
  -h, --help            show this help message and exit
  --start START, -s START
                        Starting number
  --end END, -e END     Ending number
  --digit-group [DIGIT_GROUP], -d [DIGIT_GROUP]
                        Nth digit group in file name that contains issue
                        number
  --filetype FILETYPE, -f FILETYPE
                        Custom file extension to check for

Starting and ending number

By default the script will use the lowest and highest issue number from the files in the folder as the starting and ending points for the range. If the folder is missing the first and last issue in a series, manually specify these numbers.

Digit group

By default the script will use regex to get the issue number from a file name immediately succeeding the # symbol.

If your file names do not contain the # symbol, you can call --digit-group with no arguments to grab the first set of digits in the file name as the issue number.

If the first set of digits in the file name is not the issue number, for example if the year preceeds the issue number in the file name, you can supply a number to --digit-group to specify which Nth group of digits in the file name is the issue number.

Examples

View the examples folder for example output for each argument type

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comic-list-0.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

comic_list-0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file comic-list-0.2.tar.gz.

File metadata

  • Download URL: comic-list-0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for comic-list-0.2.tar.gz
Algorithm Hash digest
SHA256 3b71541644738f36dca82106e3066e9e27e2536bf3a3d3734fb27b17a19aa13a
MD5 47f1ebb5d2bca81b543687fe99525df9
BLAKE2b-256 7463a557db8f0657b2ddbdc0bfe1c9c04d1684049e85291a5ce6b18b61858a6f

See more details on using hashes here.

File details

Details for the file comic_list-0.2-py3-none-any.whl.

File metadata

  • Download URL: comic_list-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for comic_list-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 445ee8bf24b099dbcc7e2de1560ba3d9011307df11daeea6e512876b2951903e
MD5 5b33101fd499bddfb13f301ea658bf8a
BLAKE2b-256 11ed6b6fc49f0f83c7fcb294a96ffedf08b36105982482560448d9b467ce4722

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