tcmpr package¶
Subpackages¶
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.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