hashtree package
hashtree.cli module
hashtree command
-
hashtree.cli.copy_stream(in_stream, out_stream)[source]
-
hashtree.cli.create_tempfile()[source]
-
hashtree.cli.find_files(base, filename)[source]
-
hashtree.cli.generate_hash_digests(base, infile, outfile, hash, progress_kwargs)[source]
-
hashtree.cli.hashtree(base_dir, infile, outfile, *, ascii=False, find=True, hash=None, sort_files=True, sort_output=False, sort_args=None, progress=False, width=None)[source]
-
hashtree.cli.is_stdio(filename)[source]
-
hashtree.cli.reaper(filename)[source]
delete a file
-
hashtree.cli.sort_file(filename, sort_args)[source]
-
hashtree.cli.spool_stdin()[source]
-
hashtree.cli.write_sorted_output(spool, outfile, sort_args)[source]
hashtree.clio module
CLIO command line infile/outfile handler
-
class hashtree.clio.CLIO(infile=None, outfile=None, binary=False)[source]
Bases: object
hashtree.exception_handler module
ehandler
well-behaved exception handler for python cli commands
-
class hashtree.exception_handler.ExceptionHandler(debug=False, logger=False)[source]
Bases: object
-
debug = None
-
installed = False
-
logger = None
-
hashtree.exception_handler.exception_handler(exception_type, exception, traceback, debug_hook=<built-in function excepthook>)[source]
hashtree.hash module
-
class hashtree.hash.HashDigest(base_path=None, hash=None)[source]
Bases: object
-
file_digest(filename)[source]
-
set_base_path(path=None)[source]
-
set_hash(hash=None)[source]
hashtree.progress module
-
class hashtree.progress.ProgressReader(in_stream, **kwargs)[source]
Bases: object
-
readlines()[source]
Module contents
Top-level package for hashtree.
-
hashtree.hashtree(base_dir, infile, outfile, *, ascii=False, find=True, hash=None, sort_files=True, sort_output=False, sort_args=None, progress=False, width=None)[source]