This PR introduces a refactoring of the implementation of InProcessParamStore. A reduction in number of lines of code is achieved through inheriting from Munch instead of from MutableMapping. This includes switching the mutex lock from Lock to RLock.
There are no functional changes to the implementation of InProcessParamStore with only 3 minor exceptions:
InProcessParamStore can now be used as a context manager. When it exits the tinydb file is closed.
Trying to set a param with a key starting with underscore (_) is now allowed. This previously raised a KeyError.
Keys that start with duner (__) are not considered params and are not persisted to the DB because they might hide private attributes.
This PR introduces a refactoring of the implementation of
InProcessParamStore
. A reduction in number of lines of code is achieved through inheriting from Munch instead of fromMutableMapping
. This includes switching the mutex lock fromLock
toRLock
.There are no functional changes to the implementation of
InProcessParamStore
with only 3 minor exceptions:InProcessParamStore
can now be used as a context manager. When it exits the tinydb file is closed._
) is now allowed. This previously raised aKeyError
.__
) are not considered params and are not persisted to the DB because they might hide private attributes.