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")
item.f.g.h += 1
print('will print out 1:', item.f.g.h)
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-1.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for super_map-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 878dc336d6d8e1ccb0beaef081df716cbe075d651784a304f5662b055aad3736 |
|
MD5 | c9654c4db6fc24943255d8768b44c49d |
|
BLAKE2b-256 | 8502325ef48d22ef915cf67d273c0df1fc9bb38e8b118711bda153bff5265338 |