Registry / serialization / hydraters

hydraters

JSON →
library0.1.4pypypi✓ verified 79d ago

Hydrate Python dictionaries with Rust – provides fast, typed hydration and dehydration of Python dicts using Rust-backed classes. Current version 0.1.3, actively maintained.

pip install hydraters
INSTALL
IMPORT
SIG · HYDRATERS
H
hydraters
serializationpythonv0.1.4
Install
1.6s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage

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

hydrate
from hydraters import hydrate
from hydraters import Hydrate
dehydrate
from hydraters import dehydrate
strip_unmatched_markers
from hydraters import strip_unmatched_markers

Basic usage: create a Hydrate instance with a class, then call .hydrate() on a dict.

from hydraters import Hydrate # Define a simple class to hydrate class Person: def __init__(self, name: str, age: int): self.name = name self.age = age # Create a Hydrate instance hydrator = Hydrate(Person) # Hydrate a dict into an instance data = {"name": "Alice", "age": 30} person = hydrator.hydrate(data) print(person.name, person.age) # Alice 30
Debug
Known issues
gotchaHydrate only works with dataclasses or classes that have __init__ annotated with types. Plain dicts or non-annotated classes will fail.
fix
Ensure your class has type annotations on __init__ parameters or is a dataclass.
affects: all
gotchaThe library does not support default values or optional fields in the hydrated class. All fields must be provided.
fix
Provide all fields in the dict, or use a custom default handling.
affects: all
deprecatedThe old import path 'from hydraters.hydrate import Hydrate' is deprecated and may be removed in a future release.
fix
Use 'from hydraters import Hydrate' instead.
affects: >=0.1.3
Upgrade
Version history
0.1.4latest on PyPI · released May 27, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
hydraters — pip install hydraters · libregistry