tcmpr package

Submodules

tcmpr.application module

Main module for tcmpr application used to run program and parse arguments.

tcmpr.application.compress(file_name, algorithm)[source]

Pick proper algorithm chosen by the user and compress input file

tcmpr.application.decompress(file_name)[source]

Pick proper algorithm to decompress file based on coding extension attached to compressed file like:

.huffman .lzw .lzss .shannon
tcmpr.application.main(args)[source]

Main entry point allowing external calls

Parameters:args ([str]) – command line parameter list
tcmpr.application.run()[source]

Entry point for console_scripts

tcmpr.application.setup_logging(loglevel)[source]

Setup basic logging

Parameters:loglevel (int) – minimum loglevel for emitting messages

tcmpr.argument_parser module

tcmpr.argument_parser.create_parser()[source]

Function that create parser, helpful in writing test cases

tcmpr.argument_parser.parse_args(args)[source]

Parse command line parameters

Parameters:args ([str]) – command line parameters as list of strings
Returns:command line parameters namespace
Return type:argparse.Namespace

Module contents