Results#
- exception yaflux._results.FlagError[source]#
Bases:
ExceptionRaised when attempting to modify a flag that has already been set.
- class yaflux._results.FlagLock[source]#
Bases:
objectContext manager for controlling flag mutation.
Methods
Context manager for allowing mutation.
Check if the current thread is allowed to mutate.
- class yaflux._results.Results[source]#
Bases:
objectDynamic container for analysis results.
- _data#
The results data. Indexed by the creates items in the step definition.
- Type:
dict[str, Any]
Methods
get_step_metadata(step_name)Get the metadata for a result.
get_step_results(step_name)Get the results for a step.
set_metadata(step_name, metadata)Set the metadata for a result.
- class yaflux._results.ResultsLock[source]#
Bases:
objectContext manager for controlling results mutation with granular key control.
Methods
allow_mutation(cls[, keys])Context manager for allowing results mutation.
Check if the current thread is allowed to mutate any results.
can_mutate_key(key)Check if a specific key can be mutated.
Get the set of keys that can currently be mutated.
- classmethod allow_mutation(cls, keys=None)[source]#
Context manager for allowing results mutation.
- Parameters:
keys (Optional[set[str]]) – Set of specific keys that can be mutated. If None, all keys can be mutated.