Skip to main content

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

Project description

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)

  2. update

    update(target, path, value)

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

dictop-0.1.1.tar.gz (2.5 kB view hashes)

Uploaded Source

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