Registry / serialization / interchange

interchange

JSON →
library2021.0.4pypypi✓ verified 79d ago

A Python library providing data types and interchange formats (JSON, YAML, XML, etc.) with a focus on seamless conversion between them. Current version is 2021.0.4, released in 2021. The library is in maintenance mode with no active development.

pip install interchange
INSTALL
IMPORT
SIG · INTERCHANGE
I
interchange
serializationpythonv2021.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

DataTypes
import interchange
from interchange import DataTypes

Basic usage of convert() to transform between data formats.

from interchange import DataTypes, convert # Convert a dict to JSON string data = {"name": "example"} json_str = convert(data, DataTypes.JSON) print(json_str) # Parse JSON back to dict parsed = convert(json_str, DataTypes.DICT) print(parsed)
Debug
Known issues
deprecatedThe library is in maintenance mode and no longer actively developed. Future Python versions (e.g., 3.12+) may break due to missing updates.
fix
Consider migrating to modern alternatives like pydantic or json.dumps for simple cases.
affects: >=2021.0.0
gotchaThe convert() function may not handle all edge cases (e.g., nested custom objects). It is designed for simple types.
fix
Test your specific data shapes thoroughly before relying on interchange in production.
affects: all
gotchaThe library does not support Python 3.10+ officially; it was last tested on Python 3.8.
fix
Use a virtual environment with Python 3.8 or 3.9 if you must use this library.
affects: all
Upgrade
Version history
2021.0.4latest on PyPI · released Oct 14, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
interchange — pip install interchange · libregistry