Coder Social home page Coder Social logo

comic-list's Introduction

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 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

Options

You can view the arguments by running 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.

View the examples folder for example output for each argument type

comic-list's People

Contributors

nateify avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.