py-serializable
Library for serializing and deserializing Python Objects to and from JSON and XML.
Install
py-serializable on PyPI
pip
pip install py-serializableuv
uv add py-serializablepoetry
poetry add py-serializablePackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — defusedxml |
| Maintenance | actively maintained — 388 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: py_serializable-2.1.0-py3-none-any.whl
Keywords: serialization, deserialization, JSON, XML
About py-serializable
from the package's own PyPI description — quoted content, verbatim
py-serializable
[![shield_pypi-version]][link_pypi] [![shield_conda-forge-version]][link_conda-forge] [![shield_rtfd]][link_rtfd] [![shield_gh-workflow-test]][link_gh-workflow-test] [![shield_license]][license_file] [![shield_twitter-follow]][link_twitter]
This Pythonic library provides a framework for serializing/deserializing Python classes to and from JSON and XML.
It relies upon the use of Python Properties in your Python classes.
Read the full [documentation][link_rtfd] for more details.
Installation
Install this from [PyPi.org][link_pypi] using your preferred Python package manager.
Example using pip:
pip install py-serializable
Example using poetry:
poetry add py-serializable
Usage
See the full [documentation][link_rtfd] or our [unit tests][link_unit_tests] for usage and details.
Python Support
We endeavour to support all functionality for all current actively supported Python versions. However, some features may not be possible/present in older Python versions due to their lack of support.
...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
py-serializable provides a framework for converting Python classes to and from JSON and XML by leveraging Python Properties, enabling easy serialization and deserialization of object hierarchies.
Low install friction with a single runtime dependency (defusedxml). Actively maintained with recent releases; last commit 2026-04-15 and latest release 2025-07-21 indicate ongoing support.
Apache-2.0 is permissive, allowing commercial and private use with minimal restrictions; you must retain license notices and may modify and redistribute freely.
Usage
pip install py-serializable
from py_serializable import serializable_property
class MyClass:
@serializable_property(str)
def name(self) -> str:
return self._name
Requires Python 3.8 or later (supports up to 3.13); relies on defusedxml for XML parsing.
Verdict: py-serializable is a stable, actively maintained library for JSON/XML serialization backed by a permissive Apache-2.0 license and minimal dependencies. No known vulnerabilities, low install friction, and broad Python version support (3.8–3.13) make it a low-risk choice for object serialization workflows.
Needs verification
- Whether defusedxml's security posture (XML bomb protection) is documented in py-serializable's usage guidance
- Performance characteristics for large object graphs or deeply nested structures
- Community adoption rate beyond the top-1000 PyPI tier ranking
Similar packages
permissive · top 1,000 on PyPI
pip-requirements-parserpermissive · top 1,000 on PyPI
cataloguepermissive · top 1,000 on PyPI
defusedxmlpermissive · top 1,000 on PyPI
msrestpermissive · top 1,000 on PyPI
poetry-corepermissive · top 1,000 on PyPI
lxmlpermissive · top 1,000 on PyPI
beautifulsoup4permissive · top 100 on PyPI
flatbufferspermissive · top 1,000 on PyPI
langchain-communitypermissive · top 1,000 on PyPI