Skip to main content

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.
  • deepfilter() - returns the part of one compound structure that is matched by the other: essentially the opposite of deepremoveitems().
  • deepdiff() - compares two compound structures and returns a tuple of items to be removed and items to be updated: these could be passed to deepremoveitems() and deepmerge(), respectively, to transform one into the other (although note that they would need to be deepcopy()ed first).
  • deepsetdefault() - similar to dict.setdefault() except that it can set the default at arbitrarily deep paths into a dictionary.
  • deepget() - similar to dict.get() but can copy with arbitrarily deep paths into an indexable structure.

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 rcf@mince.net, UK

Metadata

Release files for deepops 1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepops 1.8
File Size Uploaded Provenance Actions
deepops-1.8.tar.gz 16.8 kB Without provenance Details for deepops-1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deepops 1.8
File Interpreter ABI Platform Actions
deepops-1.8-py2.py3-none-any.whl Python 2, Python 3 none any Details for deepops-1.8-py2.py3-none-any.whl

Total release size: 35.8 kB

Release files / deepops-1.8.tar.gz

Download URL deepops-1.8.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
240d9f7bcab3f0745ef0da3c5691f3b742e1ce8a9d33b15b4d1f474585bec0eb
BLAKE2b-256 checksum
How to use checksums
ef04026843ae21d4896593d8376e3d1d6342e200a4ba5a133f02d57505f9941c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / deepops-1.8-py2.py3-none-any.whl

Download URL deepops-1.8-py2.py3-none-any.whl
Size 19.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
51bd1898d262c96b2e2c5fd26d1ebafac84647910024b7090670ae0467209d5d
BLAKE2b-256 checksum
How to use checksums
26f230f0e17d6cf77f5f54dc0145d0b6f9872a4ddde4309454dcc20f9e087241
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for deepops 1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page