copyxnat.pyreporter.pyreporter module

Logging and user I/O

exception copyxnat.pyreporter.pyreporter.ProjectFailure[source]

Bases: copyxnat.pyreporter.pyreporter.PyReporterError

An error which is non-recoverable for a project but which allows other project processing to continue

class copyxnat.pyreporter.pyreporter.PyReporter(data_dir, verbose=False)[source]

Bases: object

Class for custom reporting actions

complete_progress()[source]

Complete progress bar

debug(message)[source]

Message which can be ignored unless in verbose mode

error(message)[source]

Error message to report to end user

get_password(message)[source]

Obtain a password

info(message)[source]

Informational message which should be shown to the user

log(message)[source]

Message which should always be written to the log but not shown to the end user unless debugging

next_progress()[source]

Update existing progress bar to next step

output(message)[source]

Print text to the console without a message prefix

start_progress(message, max_iter)[source]

Display a progress bar

warning(message)[source]

Warning message to report to end user

exception copyxnat.pyreporter.pyreporter.PyReporterError[source]

Bases: RuntimeError

Non-recoverable error