Registry / serialization / yasoo
library0.12.6pypypi✓ verified 83d ago

yasoo is a Python object serialization library (Yet Another Serializer Of Objects) that provides declarative serialization and deserialization for Python objects, with support for nested structures, type coercion, and custom serializers. Current version 0.12.6, requires Python >=3.6. Development appears low-cadence, with last release in 2021.

pip install yasoo
INSTALL
IMPORT
SIG · YASOO
Y
yasoo
serializationpythonv0.12.6
Install
1.8s avg
Import
91ms
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.12.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.096s · 19MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.086s · 19MB
17MB installed
● package 17MB
Code
Verified usage

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

Serializer
from yasoo import Serializer
fields
from yasoo import fields

Define a serializer class with fields, then serialize/deserialize objects.

from yasoo import Serializer, fields class UserSerializer(Serializer): name = fields.String() age = fields.Integer() obj = UserSerializer(name='Alice', age=30) data = obj.serialize() print(data) # {'name': 'Alice', 'age': 30} # Deserialize data = {'name': 'Bob', 'age': '25'} obj = UserSerializer.deserialize(data) print(obj.name, obj.age) # Bob 25 (age coerced to int)
Debug
Known issues
gotchaDeserialization does not raise errors on extra keys by default; extra keys are silently ignored.
fix
Use `raise_on_unknown=True` in the Serializer class Meta or when calling deserialize.
affects: all
gotchaSerialized output is a plain dict, not JSON. You must call json.dumps separately if you need JSON string.
fix
import json; json_str = json.dumps(obj.serialize())
affects: all
gotchaField order in serialized dict may not match class definition order (it follows Python's dict ordering in 3.7+).
fix
Use `field.OrderField` or configure Meta ordering if needed.
affects: all
Errors
Common errors & fixes
AttributeError: module 'yasoo' has no attribute 'Serializer'
Incorrect import path; attempted `import yasoo` and then `yasoo.Serializer`.
fix
Use `from yasoo import Serializer`
KeyError: 'name'
Deserializing from a list of dicts without using `many=True`.
fix
Use `UserSerializer.deserialize(data, many=True)` for lists.
Upgrade
Version history
0.12.6latest on PyPI · released Oct 22, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
34
OpenAI (training)
1
Resources
yasoo — pip install yasoo · libregistry