[Twisted-Python] amptypes 0.1

Henrik Thostrup Jensen thostrup at gmail.com
Wed Feb 7 14:58:22 EST 2007


I've created a couple of extension types for the AMP protocol.

Currently there two types: A dictionary and a list. The types of the element
must be specified (key and value can be different in the dictionary),
otherwise they are free form, i.e., the keys in the dictionary can have any
name, and the list can be of any size. The types can be nested, e.g., you
can create a list of list of strings. I use (or will) the latter to return a
query result, for which I do not know the row size. This is currently
impossible (AFAICT), in the otherwise excellent AMP protocol.

The types inherit a maximum size from the AMP protocol, so a dictionary or
list cannot contain more than approx 64 KB data.

It can be fetched from here:

License is the same as for twisted.

   - Henrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20070207/3f46b2f8/attachment.htm 

More information about the Twisted-Python mailing list