6.0.0 - New major version
Changes:
- Renamed
vaultertomanualsince "vaulter" isn't a real word and "manual" describes it better since it's called manually. - Renamed
input_keystoinput, and renamedreturn_keystooutput. - Added a big new feature which is a new form of decorator:
automatic. This decorator works pretty much the same asmanualdoes, 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 asautomatic. 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_keyand it works as you might expect. Amanualorautomaticdecorated 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 useautomaticand trigger on this structure once it's created. With this key you can have intermediate keys before the final one.