system package

Subpackages

Submodules

system.logmessaged module

system.logmessaged.main() NoReturn[source]

system.swaglog module

class system.swaglog.SwaglogRotatingFileHandler(base_filename, interval=60, max_bytes=262144, backup_count=2500, encoding=None)[source]

Bases: BaseRotatingHandler

doRollover()[source]
get_existing_logfiles()[source]
shouldRollover(record)[source]
class system.swaglog.UnixDomainSocketHandler(formatter)[source]

Bases: Handler

connect()[source]
emit(record)[source]

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

system.swaglog.add_file_handler(log)[source]

Function to add the file log handler to swaglog. This can be used to store logs when logmessaged is not running.

system.swaglog.get_file_handler()[source]

system.timezoned module

system.timezoned.main() NoReturn[source]
system.timezoned.set_timezone(valid_timezones, timezone)[source]

system.version module

system.version.cache(user_function, /)[source]
system.version.get_branch(default: Optional[str] = None) Optional[str][source]
system.version.get_commit(branch: str = 'HEAD', default: Optional[str] = None) Optional[str][source]
system.version.get_normalized_origin(default: Optional[str] = None) Optional[str][source]
system.version.get_origin(default: Optional[str] = None) Optional[str][source]
system.version.get_short_branch(default: Optional[str] = None) Optional[str][source]
system.version.get_short_version() str[source]
system.version.get_version() str[source]
system.version.is_comma_remote() bool[source]
system.version.is_dirty() bool[source]
system.version.is_prebuilt() bool[source]
system.version.is_tested_branch() bool[source]
system.version.run_cmd(cmd: List[str]) str[source]
system.version.run_cmd_default(cmd: List[str], default: Optional[str] = None) Optional[str][source]

Module contents