S
smisk

plist

Apple property list (plist) serializer. Produces binary or XML plist responses, compatible with Cocoa's NSPropertyListSerialization and the Python plistlib module.

Example

from smisk.serialization import plist

class MyController(Controller):
    def index(self):
        return {"key": "value", "number": 42}

When a client sends Accept: application/x-plist, the response will be serialized as a property list.

Classes

class smisk.serialization.plist.PlistSerializer(Serializer)

Serializes Python dicts and lists to Apple plist XML format. Content type: application/x-plist.