wattameter.cli package

wattameter.cli.main module

wattameter.cli.main.main(timestamp_fmt='%Y-%m-%d_%H:%M:%S.%f')

wattameter.cli.utils module

exception wattameter.cli.utils.ForcedExit

Bases: BaseException

Exception raised for forced exit signals.

wattameter.cli.utils.default_cli_arguments(parser: ArgumentParser)

Add common command line arguments to the parser.

wattameter.cli.utils.handle_signal(signum, frame)

Handle termination signals.

wattameter.cli.utils.parse_tracker_spec(spec_string)

Parse a tracker specification string like ‘dt,metric1,metric2,…’ Returns a tuple of (dt_read, [reader1, reader2, …]) where each reader is initialized with the requested metrics.

wattameter.cli.utils.powerlog_filename(suffix=None)

Generate a log filename based on the ID.

wattameter.cli.utils.print_powerlog_filename(id=None)

Print the power log filename based on the ID.