serpy is a fast, simple object serialization library for Python, inspired by Django REST Framework (DRF) serializers but with a focus on speed. Current version is 0.3.1, released in 2018, with no recent updates. It supports Python 2.7 to 3.6 and has a low release cadence.
pip install serpyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Define a serializer class and serialize a dictionary or object instance.
Review serializers that rely on `None` values being present; set `required=True` if you want `None` values included.
Adjust serializers relying on the old behavior: now `None` values are kept regardless of `required`, except when key is missing.
Ensure your `MethodField` method does not rely on catching these exceptions implicitly; handle them inside the method.
Consider using `marshmallow` or `pydantic` for ongoing support and modern Python.
Use `from serpy import Serializer` or `import serpy; serpy.Serializer`.
Use `instance=...` instead of `obj=...`.
Use `required=False` on the field, or ensure the key exists.
No dependency data recorded yet.