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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepops-1.6.1.tar.gz.
File metadata
- Download URL: deepops-1.6.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a37c37d2394afdd9719ed5f89bc8b27e70718f28e7504a51d19038d66a1d98f8
|
|
| MD5 |
1b8fe4f60b82e7c04a807a39624a2ea3
|
|
| BLAKE2b-256 |
6e9a1fd2154fd05fdac8707782e5f3dcdd5e7cae8faf9307b14cf815d07c6f19
|
File details
Details for the file deepops-1.6.1-py2.py3-none-any.whl.
File metadata
- Download URL: deepops-1.6.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50bf0c2dc5ebd0784ca09e45ea2aa0ca6d55aae1e6bfeb116b9b7bff6b4af000
|
|
| MD5 |
8515859dc05fd98bc972c9b68dbc1ada
|
|
| BLAKE2b-256 |
739e140a245d644768e022c2c199fca3abc4b52d165e5a34d80848936132ba93
|