--- id: hydraters version: "0.1.4" license: unclear license_treatment: unclear maintenance: active --- # hydraters — Hydrate Python dictionaries with Rust. License: unclear · Maintenance: active · Downloads: 217.0K/mo ## What it is and what it does Hydraters is a Python package that merges nested dictionaries by delegating the merge operation to Rust code, trading a compiled dependency for speed. It takes a base dictionary and an item dictionary, recursively combines them (with nested dicts merged rather than replaced), and returns the result. The package also provides a DO_NOT_MERGE_MARKER constant and a strip_unmatched_markers function to clean up keys marked for exclusion—useful for workflows where certain fields should be removed before or after hydration. The package was extracted from the pgstac project, where benchmarking showed that Rust-based dictionary merging significantly outperforms pure Python. It has no runtime dependencies beyond the compiled extension itself, and supports modern Python versions (3.10–3.14) across CPython and PyPy implementations on Linux, macOS, Windows, and musl systems. Use it for: - Merge large nested JSON or dictionary structures in data pipelines where performance matters, such as in geospatial or catalog systems. - Combine base configurations with overrides or patches while preserving nested structure and avoiding key replacement. - Clean up dictionary entries marked with DO_NOT_MERGE_MARKER before serialization or storage. - Accelerate dictionary operations in applications that process many merge operations per second. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Merges nested Python dictionaries efficiently by delegating the merge logic to Rust, with support for marking keys that should not be merged. Yes, if you need fast nested dictionary merging and are comfortable with a young package (first release November 2024, version 0.1.4). The compiled wheels install without friction on common platforms, there are no runtime dependencies, and the code is actively maintained. However, verify the license status (metadata shows unclear treatment despite the description claiming MIT) and assess whether the early version number and small user base suit your stability requirements. ## Install pip install hydraters uv add hydraters poetry add hydraters ## Installing hydraters Before you install: Medium install friction due to compiled wheels; the package provides prebuilt binaries for Python 3.10–3.14 across Linux (multiple architectures), macOS, Windows, and musl-based systems, so installation should succeed without compilation on most platforms. Repository is active with a recent commit. License in practice: License treatment is unclear—the description states MIT, but the metadata fields license_raw and license_spdx are both null. Verify the actual license terms before relying on this package in a commercial or restricted-license context. Quickstart: import hydraters base = {"a": "first", "b": "second", "c": {"d": "third"}} item = {"c": {"e": "fourth", "f": "fifth"}} result = hydraters.hydrate(base, item) # result == {"a": "first", "b": "second", "c": {"d": "third", "e": "fourth", "f": "fifth"}} Requires Python 3.10 or later; no runtime dependencies, but installation requires prebuilt wheels or a Rust toolchain to compile. Verify before relying: - Whether the package is suitable for production use given its early version (0.1.4) and small repository footprint (8 stars). - Performance characteristics compared to pure-Python alternatives in typical use cases. - Stability and API compatibility guarantees across minor versions. ## Package facts - License: not declared (unclear) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 217.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags dictionary merging, nested dict merge, rust-accelerated dict operations, hydrate dictionaries, fast dict combining, merge nested objects, dictionary hydration, rust-accelerated, dict-operations, performance [View on SkillFed](https://skillfed.io/packages/hydraters) · [View on PyPI](https://pypi.org/project/hydraters/)