Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

access_dict_by_dot-0.0.3.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

access_dict_by_dot-0.0.3-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

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