VaultScrubber#
- class scikitplot.cleanprompt.VaultScrubber(owner=None)[source]#
Keep a vault’s values out of every log record for as long as it holds them.
Notes
User notes. You do not create one:
Cleaner,GuardandSessiondo, and it lives exactly as long as they hold values. While it lives, any record from this submodule that would contain a removed value carries<redacted>instead.Developer notes. Surfaces go into one shared, counted filter. They are released by
closeand, if the owner is dropped without being closed, by aweakref.finalizeon the owner — a surface left in the filter would otherwise keep the secrets of every cleaner the process ever made, which is the leak it exists to prevent.- Parameters:
owner (object | None)