Metadata-Version: 2.4
Name: dictop
Version: 0.1.4
Summary: DICT-OPERATION allow you select data value from a dict-instance with dot separated path, and update.
Home-page: https://github.com/appstore-zencore/dictop
Author: zencore
Author-email: dobetter@zencore.cn
License: MIT
Keywords: dictop
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: summary

dictop
======

.. image:: https://travis-ci.org/appstore-zencore/dictop.svg?branch=master
    :target: https://travis-ci.org/appstore-zencore/dictop

DICT-OPERATION allow you select data value from a dict-instance with dot separated path, and update.


Install
-------

::

    pip install dictop


Usage
-----

::

    from dictop import update
    from dictop import select

    data = {}
    update(data, "a.b.c", 2)
    assert select(data, "a.b.c") == 2

Core Functions
--------------

1. select

::

    select(target, path, default=None, slient=True)

2. update

::

    update(target, path, value)

