Package restkit :: Package contrib :: Module console
[hide private]

Module console

source code


Version: 4.2.1

Functions [hide private]
 
external(cmd, data) source code
 
indent_xml(data) source code
 
indent_json(data) source code
 
indent(mimetype, data) source code
 
prettify(response, cli=True) source code
 
as_bool(value) source code
 
update_defaults(defaults) source code
 
options()
build command lines options
source code
 
main()
function to manage restkit command line
source code
Variables [hide private]
  __usage__ = '\'%prog [options] url [METHOD] [filename]\''
  pretties = {'application/json': 'text/javascript', 'text/plain...
  common_indent = {'application/json': indent_json, 'text/html':...
  __package__ = 'restkit.contrib'
Variables Details [hide private]

pretties

Value:
{'application/json': 'text/javascript',
 'text/plain': 'text/javascript'}

common_indent

Value:
{'application/json': indent_json, 'text/html': indent_xml, 'text/xml':\
 indent_xml, 'application/xhtml+xml': indent_xml, 'application/xml': i\
ndent_xml, 'image/svg+xml': indent_xml, 'application/rss+xml': indent_\
xml, 'application/atom+xml': indent_xml, 'application/xsl+xml': indent\
_xml, 'application/xslt+xml': indent_xml}