Skip to main content

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, LazyDict

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)

for each_key in item[Map.Keys]:
    print(each_key)

for each_key in item[Map.Values]:
    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_as_dict = item[Map.Dict]

item.f.g.h += 1
print('will print out 1:', item.f.g.h)

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

super_map-1.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

super_map-1.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file super_map-1.1.1.tar.gz.

File metadata

  • Download URL: super_map-1.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.6

File hashes

Hashes for super_map-1.1.1.tar.gz
Algorithm Hash digest
SHA256 2955b2408d1fe2f31ecfc80a851910910b7bfde2cdc667a4e6e5b4b53968b7ea
MD5 f45ef53e4bebf92d5ac79845081ddf91
BLAKE2b-256 1fdee770113f6452a9f901b02cf68cacdcd9f2e86021e6a68d910b26ed4a74cf

See more details on using hashes here.

File details

Details for the file super_map-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: super_map-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.6

File hashes

Hashes for super_map-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66796b870f4d070c4e876cf81ca51e5c9e2c8771c8e4a3c5f5a554c13f12206f
MD5 f66e89c258ca936c8dafd262b7f39aaf
BLAKE2b-256 129d8f3632b44e9c8f8f9807ade2fc460b62c663ed6ed7a4f1e4d4db1248c6ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page