janus.plugins package

Submodules

janus.plugins.numpy module

janus.plugins.pandas module

janus.plugins.utils module

janus.plugins.utils.log_pre_mutation(obj)[source]

Generic pre-mutation hook for Janus plugins.

Creates a shadow snapshot of the root object if an engine is found and the system is not currently in a restoration state.

Parameters:

obj (Any) – The object about to be mutated.

Return type:

None

janus.plugins.utils.log_post_mutation(obj, adapter_name=None)[source]

Generic post-mutation hook for Janus plugins.

Calculates the delta between the current state and the shadow snapshot, then logs the operation to the Janus engine.

Parameters:
  • obj (Any) – The object that was mutated.

  • adapter_name (str | None) – Optional override for the adapter name. If None, it defaults to the object’s _janus_adapter_name or the adapter’s class name.

Return type:

None

Module contents