Python: module util

util | index /build/dshell/src/dshell/lib/util.py

Modules
`` |  |
datetime socket | struct sys | time urllib |

Functions
`` |  | HTTPlastmodified(response) URLDataToParameterDict(data) decode_base64(intext, alphabet='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', padchar='=', debug=False) getHeader(request_or_response, header_name) getopts(args, options, long_options=[], list_options=None, auto_list=False, replace_value=False) hexPlusAscii(data, width=16, offset=0) inttoip(i) iptoint(ip) mktime(ts) printableText(intext, onlyText=False) `# printableText - returns text suitable for screen display # # Author: amm # Input: intext (string) # onlyText (bool) # False = print tab and line-feed chars # True = Don't print tab and line-feed chars # Output: string` printableUnicode(intext, onlyText=False) strtok(data, sep=',', kvsep='=', as_list=False) utctime() xor(input, key) `Xor an input string with a given character key.` xorStringDecode(key=None, data=None)

Data
`` |  | UNICODE_CONTROL_CHARS = [u'\x00', u'\x01', u'\x02', u'\x03', u'\x04', u'\x05', u'\x06', u'\x07', u'\x08', u'\x0b', u'\x0c', u'\x0e', u'\x0f', u'\x10', u'\x11', u'\x12', u'\x13', u'\x14', u'\x15', u'\x16', ...] x = 159