use_attrs

PlasmaCalcs.tools.oop_tools.manage_attrs.use_attrs(attrs_as_dict={}, **attrs_and_values)

return decorator which sets attrs of object before running function then restores them after.

It is assumed that obj is the first arg of function.