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.
Required Python Version
python 2.7
python 3.6
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.2.tar.gz
(2.6 kB
view details)
File details
Details for the file dictop-0.1.2.tar.gz
.
File metadata
- Download URL: dictop-0.1.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b039c7c1b18c0c0d7a4fd70d787224b608c0de494d36e7eb8c545a51a5b2d1 |
|
MD5 | c50c8c22fd3e0102012c078b14c9fd11 |
|
BLAKE2b-256 | e32ccd7df747123a67528e53efd4244d3a8a16aca22f28379257ea35f69e604b |