1>>> from types import SimpleNamespace
2>>> d = {'key1': 'value1', 'key2': 'value2'}
3>>> n = SimpleNamespace(**d)
4>>> print(n)
5namespace(key1='value1', key2='value2')
6>>> n.key2
7'value2'
8
1>>> from types import SimpleNamespace
2>>> d = {'key1': 'value1', 'key2': 'value2'}
3>>> n = SimpleNamespace(**d)
4>>> print(n)
5namespace(key1='value1', key2='value2')
6>>> n.key2
7'value2'