py-serializable
Library for serializing and deserializing Python Objects to and from JSON and XML.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive license, and installs with minimal friction. It fills a clear niche for developers who need property-based serialization to JSON and XML without heavy dependencies or complex configuration. Suitable for production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single runtime dependency (defusedxml).
- Actively maintained with recent commits and classified as Production/Stable.
License · maintenance · safety
Apache-2.0 (permissive) — Apache 2.0 is permissive; you can use, modify, and redistribute this package freely in most contexts, including commercial projects, provided you include the license notice.
last release 2025-07-21 (389 days) · last repo commit 2026-04-15 · 7 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 34,429,527 downloads/mo, #760 on PyPI
Alternatives
Verify before relying
pip install py-serializable
import py_serializable
# Define a class with Python Properties and use the serialization framework- Whether the framework requires specific decorator patterns or class structure beyond using Python Properties
- Performance characteristics when serializing large or deeply nested object graphs
- Support for custom type handlers or extension mechanisms for non-standard Python types
What it is and what it does
py-serializable provides a Pythonic framework for converting Python objects to and from JSON and XML representations. It works by leveraging Python Properties in your classes to define serializable attributes, handling the conversion logic automatically. The library sits between your object model and these text formats, letting you define what should be serialized through standard Python property definitions rather than requiring separate schema or configuration files.
The package depends on defusedxml for safe XML parsing, supports Python 3.8 through 3.13, and is actively maintained. It's positioned as a general-purpose serialization tool for applications that need bidirectional conversion between Python objects and JSON or XML—useful in data pipelines, API integrations, configuration management, or any scenario where you need to persist or transmit Python objects in these formats.
Use it for
- Convert Python data models to JSON for REST API responses or configuration files
- Deserialize XML documents into typed Python objects for processing structured data
- Persist complex Python objects to JSON or XML and reload them later
- Build data transformation pipelines that move objects between Python and external systems
- Define serializable Python classes for inter-service communication in microservices
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, carries a permissive license, and installs with minimal friction. It fills a clear niche for developers who need property-based serialization to JSON and XML without heavy dependencies or complex configuration. Suitable for production use.
Install
py-serializable on PyPI
Before you install
Low install friction with a single runtime dependency (defusedxml). Actively maintained with recent commits and classified as Production/Stable.
License in practice
Apache 2.0 is permissive; you can use, modify, and redistribute this package freely in most contexts, including commercial projects, provided you include the license notice.
Quickstart
pip install py-serializable
import py_serializable
# Define a class with Python Properties and use the serialization framework
Verify before relying
- Whether the framework requires specific decorator patterns or class structure beyond using Python Properties
- Performance characteristics when serializing large or deeply nested object graphs
- Support for custom type handlers or extension mechanisms for non-standard Python types
Package 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 packagedefusedxml |
| Maintenance | Actively maintained 389 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 34,429,527 / month, #760 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software DevelopmentTyping :: Typed |
Evidence: py_serializable-2.1.0-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 › “python object serialization json xml”
- py-serializableSerializes and deserializes Python classes to and from JSON and XML…
- django-tastypiedjango-tastypie provides a REST API framework for Django that…
- dicttoxmlConverts Python dictionaries and other native data types into valid…
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 xml-python · pydantic-xml · json-strong-typing · jxmlease · yamlable · orjson · dicttoxml · javaobj-py3 · pycomposefile · xmltodict