Like dict, but easier
Project description
What is this?
A python package that provides an alternative to dict
that is much easier for lazy people to use.
How do I use this?
pip install super_map
from super_map import Map
item = Map()
# no error
item["value"]["subvalue"] = True
# prints true
print(item.value.subvalue == item["value"]["subvalue"]) # prints true
# dont need .items()
for each_key, each_value in item:
print(each_key)
value = item.a.b.c.d.e
if not value:
# this prints out
print("item.a.b.c.d.e doesn't exist")
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
super_map-0.1.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for super_map-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79bc265832308e3c39826a016bb88b529ee87f2f4aedc192aafd6df4f6772c8f |
|
MD5 | 7d1e0ced1c12de154d308cb49f6a67d4 |
|
BLAKE2b-256 | e48c94c85bf571314cf43afd329abc1171e29a0e634e64353069efa2090d9b2c |