databind
Databind is a library inspired by jackson-databind to de-/serialize Python dataclasses. The `databind` package will install the full suite of databind packages. Compatible with Python 3.8 and newer.
Decision gist · record as of 2026-08-14
Yes, if you need flexible dataclass serialization for configuration or API work. The low install friction, active maintenance, MIT license, and zero known vulnerabilities make it a safe choice. Not recommended if you prioritize serialization speed—the docs explicitly point to mashumaro for high-performance use cases.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or newer.
- Low install friction with a pure-Python wheel and five runtime dependencies.
- Actively maintained with a recent release; last commit was 2026-05-22.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions.
last release 2026-05-22 (84 days) · last repo commit 2026-05-22 · 15 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 259,237 downloads/mo, #8,414 on PyPI
Alternatives
Verify before relying
pip install databind
from dataclasses import dataclass
from databind.json import load, dump
@dataclass
class Config:
host: str
port: int
data = {"host": "localhost", "port": 8080}
config = load(data, Config)
result = dump(config, Config)- Performance characteristics compared to alternatives in real-world scenarios.
- Maturity and stability of the union serialization modes (nested, flat, keyed, Literal).
What it is and what it does
Databind is a dataclass serialization library that converts between JSON-like nested dicts and Python dataclasses with full runtime type checking. It handles most native Python types—Enum, Decimal, UUID, Path, datetime variants, and more—plus generic types and custom serialization rules. The library is designed for flexible configuration loading rather than high-performance serialization; it supports multiple union modes, field flattening, and customization through global settings, class decorators, or type hints via Annotated.
You use it by defining dataclasses, then calling load() to deserialize a dict into a typed instance or dump() to serialize back. It understands forward references and new-style type hints (PEP 604 unions, PEP 585 generics) even on older Python versions through typeapi. The package recently merged its core and JSON modules into a single distribution.
Use it for
- Load configuration files (YAML, TOML, JSON) into strongly-typed dataclass objects with validation.
- Deserialize API responses into dataclass instances with automatic type conversion and error handling.
- Serialize application state or settings back to JSON for storage or transmission.
- Handle complex nested data structures with custom union and field-flattening rules.
- Build CLI tools that accept structured config input and convert it to typed Python objects.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need flexible dataclass serialization for configuration or API work.
The low install friction, active maintenance, MIT license, and zero known vulnerabilities make it a safe choice. Not recommended if you prioritize serialization speed—the docs explicitly point to mashumaro for high-performance use cases.
Install
databind on PyPI
Before you install
Low install friction with a pure-Python wheel and five runtime dependencies. Actively maintained with a recent release; last commit was 2026-05-22.
Requires Python 3.8 or newer.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions.
Quickstart
pip install databind
from dataclasses import dataclass
from databind.json import load, dump
@dataclass
class Config:
host: str
port: int
data = {"host": "localhost", "port": 8080}
config = load(data, Config)
result = dump(config, Config)
Verify before relying
- Performance characteristics compared to alternatives in real-world scenarios.
- Maturity and stability of the union serialization modes (nested, flat, keyed, Literal).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesdeprecatednr-datenr-streamtypeapityping-extensions |
| Maintenance | Actively maintained 84 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 259,237 / month, #8,414 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: databind-4.5.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “nested data structure binding”
- databindDatabind deserializes JSON-like nested data structures into Python…
- PyXB-XPyXB-X generates Python classes from XMLSchema definitions, enabling…
- dm-treeProvides utilities for working with nested data…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also databind.core · databind.json · dacite · jsons · serpyco-rs · dataclass-factory · dataclass-wizard · pyserde · json-strong-typing · typedload