Using this packages we can access dictionary values using dot operator
Project description
access_dict_by_dot
Using this package, we can access the items in a dictionary using dot operator instead of writiting dict_name["key"].
for example
from access_dict_by_dot import AccessDictByDot
dictionary = { 'key1':'value1', 'key2':'value2', 'key3':{ 'subkey1':'subvalue1', 'subkey2':'subvalue2' } }
d = AccessDictByDot.load(dictionary) print(d.key1) print(d.key3.subkey1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for access_dict_by_dot-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e949c1f5bcd78d45f0340f867152caeddf84fc593e2a35af76b6ee0fae7dfe9a |
|
MD5 | 6ecfadbb2d8b4882b22799d1b7459a2b |
|
BLAKE2b-256 | e31fd15cb4efe1cc76cba993dab5978d6a0c89e35f07b676c656ecbc73053c2e |