An easy to use and easy to read dict
Project description
AttribDict
Introduction
AttribDict is an easy to use and easy to read dict, it is more flexible and human readable.
Examples
>>> from attribdict import AttribDict as Dict
>>> _d = {"attr"+str(i): i for i in range(4)}
>>> d = Dict(_d)
>>> d.attr4.subattr1.subsubattr1 = 123
>>> d.attr5 = {"subattr"+str(i): i for i in range(3)}
>>> print(d)
attr0: 0
attr1: 1
attr2: 2
attr3: 3
attr4:
- subattr1:
- subsubattr1: 123
attr5:
- subattr0: 0
- subattr1: 1
- subattr2: 2
Installation
pip install attribdict
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
attribdict-0.0.2.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for attribdict-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | babaea7d95344ea9057d33e25f35049d1d94dc029227cc7482a1e36444c9bcc0 |
|
MD5 | de452b0c973c83ea59e1385823ba1a1a |
|
BLAKE2b-256 | e4243f97f6e18cb0da3da375c15457a2b3c0573113f15578913a1735865f3e9a |