Python deepops module
Project description
PYTHON DEEPOPS MODULE
This module contains some functions for performing "deep" operations on standard Python "compound" data structures - lists/sets/dictionaries:
deepmerge()
- merges two compound structures, including all sub-items, e.g. items to lists and sets, missing keys/items to dictionaries, optionally replacing clashing simple types.deepremoveitems()
- removes items (simple types, or whole compound structures) from within another compound data structure.deepdiff()
- compares two compound structures and returns a tuple of items to be removed and items to be updated: these could be passed todeepremoveitems()
anddeepmerge()
, respectively, to transform one into the other (although note that they would need to bedeepcopy()
ed first).
The module was developed and used under Python 3.4-3.7 but seems to work OK in basic testing under 2.7.
Author
Robert Franklin, UK rcf@mince.net
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deepops-1.7.tar.gz
(11.6 kB
view hashes)
Built Distribution
deepops-1.7-py2.py3-none-any.whl
(10.5 kB
view hashes)
Close
Hashes for deepops-1.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8898bd6d26c6485a3649bf773b3750839f0c35dd5cab16425a562aa98371036 |
|
MD5 | 0b65aed1bcb1d656a5fcfe7680d99646 |
|
BLAKE2b-256 | 67bcc6c2b96c4d666c5d6d0e3b8041bccff1b15d6b67320f56e6a1d08672d584 |