|
|
Serializers
List of available input/output serializers
Serializers are responsible for (de)serializing between strings and Python types. The input/output format is sometimes referred to as a wire format. Serializers live in grassyknoll.serial.
Current Serializers
- JsonSerial: a serialzers for JSON
- PlainSerial: Output only.
HTML
HTML serialization is currently provided as part of the RestFrontend.
Desired Serializers
- bencode: Basically a 'binary' JSON
- pickle
- XML
- YAML
- csv: and variants, like tab-separated
Serializer Protocol
A serialzier is any object (often a module) with the following attributes:
- MIMETYPES: set of strings specifying the mimetypes the converter handles.
- loads: a one-argument callable that takes a basestring and returns a basic Python types (builtins + datetime)
- dumps: a one-argument callable that takes basic Python types and returns a string representation.
Sign in to add a comment
