Utility Functions
The Python Policy SDK provides several utility functions that help with policy development, testing, and debugging.
get_results
Retrieves the results of all checks that have been executed in the current process.
Returns: A
Results
object containing information about all executed checks
The Results
object has the following properties:
passed
(bool): Whether all checks passedchecks
(list): A list of all checks that were executed
get_last_check
Retrieves the most recently executed check in the current process.
Returns: The last
Check
object that was executed orNone
if no checks have been executed
Last updated