Various utilities for LMI Scripts.
- class lmi.scripts.common.util.FilteredDict(key_filter, original=None)¶
Dictionary-like collection that wraps some other dictionary and provides limited access to its keys and values. It permits to get, delete and set items specified in advance.
Please use only the methods overriden. This class does not guarantee 100% API compliance. Not overriden methods won’t work properly.
- key_filter (list) – Set of keys that can be get, set or deleted. For other keys, KeyError will be raised.
- original (dictionary) – Original dictionary containing not only keys in key_filter but others as well. All modifying operations operate also on this dictionary. But only those keys in key_filter can be affected by them.