jsonable
An abstract class that supports jsonserialization/deserialization.
What it is and what it does
jsonable is a lightweight library that provides an abstract base class (JSONable/Type) to make Python objects trivially serializable to and deserializable from JSON. You define a class inheriting from jsonable.Type, implement an initialize method to set attributes, and gain to_json() and from_json() methods automatically. The library handles the round-trip: objects convert to plain dicts and back without manual encoder/decoder logic.
The package has no runtime dependencies and installs cleanly. However, it is dormant—the latest release was 2015-10-01, and there have been no updates since. This means it was designed for older Python versions and has received no maintenance for modern language features or security patches. It remains functional for simple use cases but is not actively developed.
Use it for:
- Serialize custom Python objects to JSON for API responses or file storage without writing custom encoder logic.
- Deserialize JSON data back into typed Python objects with automatic validation through the initialize method.
- Define nested object hierarchies (e.g., a Pie containing Fruits) that convert to and from JSON structures automatically.
- Build lightweight data models for small projects that don't warrant a full ORM or schema validation library.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides an abstract base class for defining Python objects that serialize to and deserialize from JSON with minimal boilerplate.
Yes, if you need a minimal JSON serialization layer for simple, self-contained objects and are comfortable with dormant maintenance. No, if you require active support, modern Python version guarantees, or complex validation—use dataclasses, pydantic, or marshmallow instead. The package works but has received no updates since 2015 and should be treated as legacy code.
Install
jsonable on PyPI
pip
pip install jsonableuv
uv add jsonablepoetry
poetry add jsonableInstalling jsonable
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 2015-10-01 and no commits since 2024-07-31, so expect no active support or updates for modern Python versions.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions.
Quickstart
pip install jsonable
import jsonable
class Fruit(jsonable.Type):
__slots__ = ('type', 'weight')
def initialize(self, type, weight):
self.type = str(type)
self.weight = float(weight)
fruit = Fruit('apple', 10.3)
json_doc = fruit.to_json()
fruit_restored = Fruit(json_doc)
Verify before relying
- Whether the package works reliably with Python 3.10+ (no explicit version support declared; last release predates modern Python versions by years).
- Whether the abstract base class approach remains practical compared to modern alternatives like dataclasses or pydantic.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 3,970 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 247,177/month — #8,699 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jsonable-0.3.1-py2.py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
json-fixPatches Python's built-in `json` module to…
permissive · top 15,000 on PyPI
json-flattenConverts nested JSON objects into flat…
permissive · top 15,000 on PyPI
yamlableConverts Python objects to YAML and back using…
permissive · top 15,000 on PyPI
djangorestframework-dataclassesAutomatically generates Django REST Framework…
permissive · top 5,000 on PyPI
json-logicParses and executes JsonLogic rules—a…
permissive · top 5,000 on PyPI
json_logic_qubitParses and executes JsonLogic rules—a…
permissive · top 15,000 on PyPI
jsonsConverts Python objects (dataclasses, attrs…
permissive · top 5,000 on PyPI
apischemaApischema handles JSON…
permissive · top 15,000 on PyPI
forbiddenfruitForbiddenfruit allows you to dynamically add…
unclear · top 5,000 on PyPI
jsonpath-pythonExtracts, filters, sorts, and updates values in…
permissive · top 1,000 on PyPI