dictop

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


Keywords
dictop
License
MIT
Install
pip install dictop==0.2.2

Documentation

dictop

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

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)
  1. update
update(target, path, value)