Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Data Structures | |
class | Message |
Functions | |
def | choose_boundary |
def | decode |
def | encode |
def | pipeto |
def | pipethrough |
def | copyliteral |
def | copybinary |
Variables | |
list | __all__ |
_prefix = None | |
string | uudecode_pipe |
dictionary | decodetab |
dictionary | encodetab |
Various tools used by MIME-reading or MIME-writing programs.
def mimetools.choose_boundary | ( | ) |
Return a random string usable as a multipart boundary. The method used is so that it is *very* unlikely that the same string of characters will every occur again in the Universe, so the caller needn't check the data it is packing for the occurrence of the boundary. The boundary contains dots so you have to quote it in the header.
Definition at line 101 of file mimetools.py.
References random.randint().
def mimetools.copybinary | ( | input, | |
output | |||
) |
Definition at line 221 of file mimetools.py.
def mimetools.copyliteral | ( | input, | |
output | |||
) |
Definition at line 215 of file mimetools.py.
def mimetools.decode | ( | input, | |
output, | |||
encoding | |||
) |
Decode common content-transfer-encodings (base64, quopri, uuencode).
Definition at line 133 of file mimetools.py.
References base64.decode(), uu.decode(), quopri.decode(), and pipethrough().
def mimetools.encode | ( | input, | |
output, | |||
encoding | |||
) |
Encode common content-transfer-encodings (base64, quopri, uuencode).
Definition at line 152 of file mimetools.py.
References base64.encode(), quopri.encode(), uu.encode(), and pipethrough().
def mimetools.pipethrough | ( | input, | |
command, | |||
output | |||
) |
Definition at line 205 of file mimetools.py.
References copybinary(), copyliteral(), tempfile.mktemp(), and aifc.open().
def mimetools.pipeto | ( | input, | |
command | |||
) |
list __all__ |
Definition at line 8 of file mimetools.py.
_prefix = None |
Definition at line 99 of file mimetools.py.
dictionary decodetab |
Definition at line 182 of file mimetools.py.
dictionary encodetab |
Definition at line 191 of file mimetools.py.
string uudecode_pipe |
Definition at line 175 of file mimetools.py.