Just some small helpers for nested attributes.
from nested_attrs import ngetattr as getattr
from nested_attrs import nsetattr as setattr
setattr(x, 'y.z', 'Hello, World!')
getattr(x, 'y.z') # 'Hello, World!
Just some small helpers for nested attributes
Just some small helpers for nested attributes.
from nested_attrs import ngetattr as getattr
from nested_attrs import nsetattr as setattr
setattr(x, 'y.z', 'Hello, World!')
getattr(x, 'y.z') # 'Hello, World!