Package restkit :: Module util
[hide private]

Module util

source code

Classes [hide private]
  deprecated_property
Wraps a decorator, with a deprecation warning or error
Functions [hide private]
 
popen3(cmd, mode='t', bufsize=0) source code
 
locate_program(program) source code
 
http_date(timestamp=None)
Return the current date and time formatted for a message header.
source code
 
parse_netloc(uri) source code
 
to_bytestring(s) source code
 
url_quote(s, charset='utf-8', safe='/:')
URL encode a single string with a given encoding.
source code
 
url_encode(obj, charset='utf8', encode_keys=False) source code
 
encode(v, charset='utf8') source code
 
make_uri(base, *args, **kwargs)
Assemble a uri based on a base, any number of path segments, and query string parameters.
source code
 
rewrite_location(host_uri, location, prefix_path=None) source code
 
replace_header(name, value, headers) source code
 
replace_headers(new_headers, headers) source code
 
parse_cookie(cookie, final_url) source code
Variables [hide private]
  absolute_http_url_re = re.compile(r'(?i)^https?://')
  closefds = True
  weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  monthname = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', '...
  __package__ = 'restkit'
Variables Details [hide private]

monthname

Value:
[None,
 'Jan',
 'Feb',
 'Mar',
 'Apr',
 'May',
 'Jun',
 'Jul',
...