python-serpent 1.28 Serializer for literal Python expressions

Serpent provides ast.literal_eval()-compatible object tree serialization. It serializes an object tree into bytes (an utf-8 encoded string) that can be decoded and then passed as-is to ast.literal_eval() to rebuild the original object tree.

Because only safe literals are encoded, it is safe to send serpent data to other machines, such as over the network.