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

Serialize cache payloads through msgspec JSON encoding.

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

Serialize value to UTF-8 encoded JSON bytes.

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

Deserialize JSON data back to a Python object.

Parameters
data:objectRaw JSON text or byte buffer returned by the backend, a native counter value, or None when no stored payload exists.
Returns
typing.AnyDecoded Python object, None when data is None, or data unchanged when the backend stored a native value.
DEFAULT_ENCODING = (source)

Default encoding used by MsgspecSerializer.

Value
None