ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class MsgspecSerializer(BaseSerializer): (source)

View In Hierarchy

Undocumented

Method dumps Serialize value to UTF-8 encoded JSON bytes.
Method loads Deserialize JSON data back to a Python object.
Constant DEFAULT_ENCODING Undocumented
def dumps(self, value: Any) -> bytes: (source)

Serialize value to UTF-8 encoded JSON bytes.

Parameters
value:AnyA JSON-serializable Python object.
Returns
bytesmsgspec-encoded JSON payload.
def loads(self, data: bytes | str | float | None) -> Any: (source)

Deserialize JSON data back to a Python object.

Parameters
data:bytes | str | float | NoneRaw payload returned by the backend. Returns None when data is None (key not found).
Returns
AnyDecoded Python object, None when data is None, or data unchanged when the backend stored a native value.
DEFAULT_ENCODING = (source)

Undocumented

Value
None