simple class that merge dictionary and object API
Project description
simple class that merges dictionary and object API
This Namespace objects work in a similar way as javascript objects.
usage:
from dictns import Namespace
n = Namespace(dict(a=1, b=3, c=dict(d=4)))
assert(n['a'] == n.a)
assert(n['c']['c] == n.c.d)
This Namespace objects work in a similar way as javascript objects.
usage:
from dictns import Namespace
n = Namespace(dict(a=1, b=3, c=dict(d=4)))
assert(n['a'] == n.a)
assert(n['c']['c] == n.c.d)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dictns-1.0.tar.gz
(2.8 kB
view hashes)