DICT-OPERATION allow you select data value from a dict-instance with dot separated path, and update.
Project description
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
select
select(target, path, default=None, slient=True)
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.4.tar.gz
(2.1 kB
view details)
File details
Details for the file dictop-0.1.4.tar.gz
.
File metadata
- Download URL: dictop-0.1.4.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9062c3151eba9dcabb3ce709533259b217f2384b5e6ed2474925f3c65d0040bc |
|
MD5 | cb00a104fabb97812b9423d284b83af6 |
|
BLAKE2b-256 | 0d5788f5202f606aa8048473e2d788c8a4cd899db5ec1f63bef492af8328327c |