Registry / serialization / update

update

JSON →
library0.0.1pypypiunverified

A Python utility library for updating nested data structures (dicts, lists) with dot-notation path support. Current version: 0.0.1, pre-1.0, early stage.

pip install update
INSTALL
IMPORT
SIG · UPDATE
U
update
serializationpythonv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

update
✓ from update import update
✗ import update

Update nested dict value using dot-separated path.

from update import update data = {'a': {'b': 1}} update(data, 'a.b', 2) print(data) # {'a': {'b': 2}}
Debug
Known issues
gotchaLibrary is pre-1.0 (0.0.1), API may change without notice.
fix
Pin exact version in requirements.
affects: < 1.0.0
gotchaThe update function mutates the input dict in-place; no deep copy is made.
fix
Use copy.deepcopy() if you need to preserve original.
affects: all
Upgrade
Version history
0.0.1latest on PyPI · released Nov 13, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
OpenAI (training)
1
Resources
update — pip install update · libregistry