Runtime Python API Reference
The themis.runtime module provides functions and operations for
applications launched by Themis.
- themis.runtime.fetch_run()[source]
Return the
themis.CompositeRunobject for the current run.- Raises:
RuntimeError – if called outside of the Themis runtime environment.
- themis.runtime.fetch_run_id()[source]
Return the integer ID of the current run.
- Raises:
RuntimeError – if called outside of the Themis runtime environment.
- themis.runtime.parse_file(source, destination, sample=None)[source]
Parse and token-replace a text file based on the key-value pairs in
sample.- Parameters:
source – the path to the text file to parse.
destination – the destination for the resulting parsed file
sample – the key-value pairs to use for the token-replacement operation. If
None, fetch the sample by callingthemis.runtime.run().sample.