Skip to content

6.0.0 - New major version

Choose a tag to compare

@Evixy Evixy released this 26 Apr 14:11
· 4 commits to main since this release
1c65acc

Changes:

  • Renamed vaulter to manual since "vaulter" isn't a real word and "manual" describes it better since it's called manually.
  • Renamed input_keys to input, and renamed return_keys to output.
  • Added a big new feature which is a new form of decorator: automatic. This decorator works pretty much the same as manual does, but will trigger automatically when all input keys exist in the vault and can be viewed as a subscriber. This means that no manual execution of the decorated function is necessary. A subscriber can also run in a thread if you want, meaning you can easily run things in parallel when the conditions are met and just let things happen when they can happen. You can define a conditional for functions defined as automatic. A conditional is meant to be a lambda that takes 0 arguments that checks something that evaluates to True. You can use this to, for example, check if a string value in the vault matches something.
  • Added a new flag called output_key_replaces_input_key and it works as you might expect. A manual or automatic decorated function with 1 input key and 1 output key with this flag will delete the input key from the vault and insert the output key, meaning the input key will be gone from the vault and effectively replaced by the new key (or at least that's the idea). This can be useful when creating a datastructure that isn't final, but you still want to use automatic and trigger on this structure once it's created. With this key you can have intermediate keys before the final one.