Skip to main content

A userful package to use '.' to visit value of dict

Project description


user DictWrapper to visit the value like an object


Install and update using pip:

pip install -U dict_wrapper

A Simple Example

.. code-block:: python

from dict_wrapper import DictWrapper

data = {
    "who": 'your name',
    "area": ['specify', 'china'],
    "province": {
        "city": ['shenzhen', 'guangzhou']
config, config1 = DW(data), DictWrapper(data)
assert config.who == 'your name'
assert == ['shenzhen', 'guangzhou']

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

dict_wrapper-0.0.4.tar.gz (6.1 kB view hashes)

Uploaded source

Built Distributions

dict_wrapper-0.0.4-py3.8.egg (3.5 kB view hashes)

Uploaded 3 8

dict_wrapper-0.0.4-py3-none-any.whl (6.6 kB view hashes)

Uploaded py3

Supported by

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