processfiles package

Submodules

processfiles.files module

class processfiles.files.FileProcessTracker(folder=None, restart=False, file_types=('csv', ))[source]

Bases: object

__init__(folder=None, restart=False, file_types=('csv', ))[source]

Initialize self. See help(type(self)) for accurate signature.

add_file_to_completed(file)[source]
delete_completed_files()[source]
file_generator()[source]
load_completed_files()[source]
load_process_files(file_types)[source]

processfiles.filetools module

processfiles.filetools.open_file_with_retries(filepath, retries_remaining=10)[source]
Return type

str

processfiles.filetools.write_to_file_with_retries(filepath, content, retries_remaining=10)[source]

processfiles.timing module

class processfiles.timing.TimeTracker(folder, restart=False)[source]

Bases: object

Tracks progress and displays estimated finish time.

Usage: >>> timer = TimeTracker(‘outfolder’) >>> items = [1, 2, 3] >>> for item in items: >>> timer.time_estimate(len(items))

__init__(folder, restart=False)[source]

Initialize self. See help(type(self)) for accurate signature.

delete_previous_time()[source]
load_time()[source]
save_time()[source]
start_timer()[source]
time_estimate(total_num_items)[source]

Module contents