Auxiliaries & Utilities

File location:
  • Bundled implementation: source/client/python/

  • Cluster implementation: cluster/app/source/python/


A decorator that suppresses all exceptions.

utils.file_lock(file: str)

A context lock for file modification with a file system lock.


file (str) – Filename to be locked in the context.

utils.temp_env(env: Dict[str, Any])

A context for temporarily change the current os.environ.


env (Dict[str, Any]) – Environment variables.

utils.print_file(s: Any, file: str)

Wrapper function to process-safely print s into file.

  • s (str) – Content to be printed.

  • file (str) – Filename of output stream.