module documentation
(source)

Banana -- s-exp based protocol.

Future Plans: This module is almost entirely stable. The same caveat applies to it as applies to twisted.spread.jelly, however. Read its future plans for more details.

AuthorGlyph Lefkowitz
Class BananaError Undocumented
Function int2b128 Undocumented
Function b1282int Convert an integer represented as a base 128 string into an int.
Variable LIST Undocumented
Variable INT Undocumented
Variable STRING Undocumented
Variable NEG Undocumented
Variable FLOAT Undocumented
Variable LONGINT Undocumented
Variable LONGNEG Undocumented
Variable VOCAB Undocumented
Variable HIGH_BIT_SET Undocumented
Function setPrefixLimit Set the limit on the prefix length for all Banana connections established after this call.
Variable SIZE_LIMIT Undocumented
Class Banana Banana implements the Banana s-expression protocol, client and server.
Function encode Encode a list s-expression.
Function decode Decode a banana-encoded string.
Variable _PREFIX_LIMIT Undocumented
Variable _i Undocumented
def int2b128(integer, stream): (source)

Undocumented

def b1282int(st): (source)

Convert an integer represented as a base 128 string into an int.

ParametersstThe integer encoded in a byte string. (type: bytes)
ReturnsThe integer value extracted from the byte string. (type: int)
LIST = (source)

Undocumented

(type: bytes)

Undocumented

(type: bytes)
STRING = (source)

Undocumented

(type: bytes)

Undocumented

(type: bytes)
FLOAT = (source)

Undocumented

(type: bytes)
LONGINT = (source)

Undocumented

(type: bytes)
LONGNEG = (source)

Undocumented

(type: bytes)
VOCAB = (source)

Undocumented

(type: bytes)
HIGH_BIT_SET = (source)

Undocumented

(type: bytes)
def setPrefixLimit(limit): (source)

Set the limit on the prefix length for all Banana connections established after this call.

The prefix length limit determines how many bytes of prefix a banana decoder will allow before rejecting a potential object as too large.

ParameterslimitThe number of bytes of prefix for banana to allow when decoding. (type: int)
_PREFIX_LIMIT = (source)

Undocumented

SIZE_LIMIT = (source)

Undocumented

Undocumented

def encode(lst): (source)

Encode a list s-expression.

def decode(st): (source)

Decode a banana-encoded string.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.