SDK reference · Python SDK
prov.trace.guard_tool
prov.trace.guard_tool in Python SDK. Assess action and run fn only on allow; when Provenance can't answer, pay, send and delete never run, write is blocked and read runs unchecked (on_unavailable changes the last two).
Signature
prov.trace.guard_tool(action: dict, fn: Any, **opts: Any = …) -> AnyParameters
actiondictRequiredfnAnyRequired**optsAny
Returns
Any
HTTP operation
Runs locally, with no request to the API.