S
smisk

serialization

Content negotiation and data serialization framework. Automatically selects the correct serializer based on the HTTP Accept header, then serializes the controller's return value into the response body.

Attributes

smisk.serialization.serializers

A list of registered Serializer instances, ordered by priority.

Classes

class smisk.serialization.Serializer

Abstract base class for serializers.

serialize(value, request, response)

Write value to the response. Must be implemented by subclasses.

deserialize(request)

Parse the request body and return a Python object. Must be implemented by subclasses.

Modules