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 = 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.

Files for dict-wrapper, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size dict_wrapper-0.0.3-py3-none-any.whl (6.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size dict_wrapper-0.0.3.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page