Module Import alias Import alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad TupleLoad Num Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListComp BinOpAdd NameLoad NameLoad comprehension NameStore NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str orelse Print Str orelse Print Str Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If CompareIn Str NameLoad body If SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr ListLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str orelse Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A glob N/A json N/A os N/A shutil PappyConfig N/A object N/A N/A 
    The configuration settings for the proxy. To access the config object for the
    current session (eg from plugins) use ``pappyproxy.pappy.session.config``.
    
    .. data:: cert_dir
    
    The location of the CA certs that Pappy will use. This can be configured in the
    ``config.json`` file for a project.
    
    :Default: ``{DATADIR}/certs``
    
    .. data:: pappy_dir
    
    The file where pappy's scripts are located. Don't write anything here, and you
    probably don't need to write anything here. Use DATA_DIR instead.
    
    :Default: Wherever the scripts are installed
    
    .. data:: data_dir
    
    The data directory. This is where files that have to be read by Pappy every time
    it's run are put. For example, plugins are stored in ``{DATADIR}/plugins`` and
    certs are by default stored in ``{DATADIR}/certs``. This defaults to ``~/.pappy``
    and isn't configurable right now.
    
    :Default: ``~/.pappy``
    
    .. data:: datafile
    
    The location of the CA certs that Pappy will use. This can be configured in the
    ``config.json`` file for a project.
    
    :Default: ``data.db``
    
    .. data:: debug_dir
    
    The directory to write debug output to. Don't put this outside the project folder
    since it writes all the request data to this directory. You probably won't need
    to use this. Configured in the ``config.json`` file for the project.
    
    :Default: None
    
    .. data:: listeners
    
    The list of active listeners. It is a list of tuples of the format (port, interface)
    Not modifiable after startup. Configured in the ``config.json`` file for the project.
    
    :Default: ``[(8000, '127.0.0.1')]``
    
    .. data:: socks_proxy
    
    Details for a SOCKS proxy. It is a dict with the following key/values::
    
      host: The SOCKS proxy host
      port: The proxy port
      username: Username (optional)
      password: Password (optional)
    
    If null, no proxy will be used.
    
    :Default: ``null``
    
    .. data:: http_proxy

    Details for an upstream HTTP proxy. It is a dict with the following key/values::
    
      host: The proxy host
      port: The proxy port
      username: Username (optional)
      password: Password (optional)
    
    If null, no proxy will be used.

    .. data:: plugin_dirs
    
    List of directories that plugins are loaded from. Not modifiable.
    
    :Default: ``['{DATA_DIR}/plugins', '{PAPPY_DIR}/plugins']``
    
    .. data:: save_history
    
    Whether command history should be saved to a file/loaded at startup.
    
    :Default: True
    
    .. data:: config_dict
    
    The dictionary read from config.json. When writing plugins, use this to load
    configuration options for your plugin.
    
    .. data:: global_config_dict
    
    The dictionary from ~/.pappy/global_config.json. It contains settings for
    Pappy that are specific to the current computer. Avoid putting settings here,
    especially if it involves specific projects.
     
    .. data:: archive 

    Project archive compressed as a ``tar.bz2`` archive if libraries available on the system, 
    otherwise falls back to zip archive.

    :Default: ``project.archive``

    .. data:: crypt_dir 

    Temporary working directory to unpack an encrypted project archive. Directory
    will contain copies of normal startup files, e.g. conifg.json, cmdhistory, etc.
    On exiting pappy, entire directory will be compressed into an archive and encrypted.
    Compressed as a tar.bz2 archive if libraries available on the system, 
    otherwise falls back to zip.

    :Default: ``crypt``

    .. data:: crypt_file

    Encrypted archive of the temporary working directory ``crypt_dir``. Compressed as a
    tar.bz2 archive if libraries available on the system, otherwise falls back to zip.

    :Default: ``project.crypt``
     
    .. data:: crypt_session
    
    Boolean variable to determine whether pappy started in crypto mode
    
    :Default: False

    .. data:: salt_len

    Length of the nonce-salt value appended to the end of `crypt_file`

    :Default: 16
     __init__ N/A N/A self N/A N/A N/A N/A self pappy_dir N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ N/A N/A self data_dir N/A N/A N/A os path join N/A N/A N/A os path expanduser ~ .pappy N/A N/A self cert_dir N/A N/A N/A os path join N/A self data_dir certs N/A N/A self datafile data.db N/A N/A self debug_dir None N/A N/A self debug_to_file False N/A N/A self debug_verbosity 0 N/A N/A self listeners N/A N/A 8000 127.0.0.1 N/A N/A self socks_proxy None N/A N/A self http_proxy None N/A N/A self ssl_ca_file certificate.crt N/A N/A self ssl_pkey_file private.key N/A N/A self histsize 1000 N/A N/A self plugin_dirs N/A N/A N/A N/A os path join N/A self data_dir plugins N/A N/A N/A os path join N/A self pappy_dir plugins N/A N/A self config_dict N/A N/A N/A self global_config_dict N/A N/A N/A self archive project.archive N/A N/A self debug False N/A N/A self crypt_dir crypt N/A N/A self crypt_file project.crypt N/A N/A self crypt_session False N/A N/A self salt_len 16 N/A get_default_config N/A N/A self N/A N/A N/A default_config_file N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ default_user_config.json N/A N/A open default_config_file f N/A N/A settings N/A N/A json load f N/A settings N/A get_project_files N/A N/A self N/A N/A N/A file_glob N/A N/A glob glob * N/A pp N/A N/A N/A os getcwd N/A os sep N/A project_files N/A N/A pp f N/A f file_glob N/A N/A N/A os path isfile N/A pp f N/A N/A N/A self crypt_file project_files N/A N/A N/A N/A project_files remove N/A self crypt_file N/A project_files N/A _parse_proxy_login N/A N/A conf N/A N/A N/A proxy N/A N/A N/A N/A host conf N/A port conf N/A N/A proxy N/A N/A N/A proxy N/A host N/A N/A N/A conf N/A host encode utf-8 N/A N/A proxy N/A port N/A conf N/A port N/A N/A username conf N/A N/A N/A password conf N/A N/A N/A proxy N/A username N/A N/A N/A conf N/A username encode utf-8 N/A N/A proxy N/A password N/A N/A N/A conf N/A password encode utf-8 N/A N/A Proxy has a username but no password. Ignoring creds. N/A N/A Host is missing host/port. N/A None N/A proxy N/A staticmethod load_settings N/A N/A self proj_config N/A N/A N/A subs N/A N/A N/A subs N/A PAPPYDIR N/A self pappy_dir N/A N/A subs N/A DATADIR N/A self data_dir N/A N/A data_file proj_config N/A N/A N/A self datafile N/A N/A N/A proj_config N/A data_file format subs N/A N/A debug_dir proj_config N/A N/A N/A proj_config N/A debug_dir N/A N/A N/A self debug_to_file True N/A N/A self debug_dir N/A N/A N/A proj_config N/A debug_dir format subs N/A N/A cert_dir proj_config N/A N/A N/A self cert_dir N/A N/A N/A proj_config N/A cert_dir format subs N/A N/A proxy_listeners proj_config N/A N/A N/A self listeners N/A N/A l N/A proj_config N/A proxy_listeners N/A N/A N/A forward_host_ssl l N/A N/A N/A l N/A forward_host_ssl N/A N/A N/A l N/A forward_host_ssl encode utf-8 N/A N/A forward_host l N/A N/A N/A l N/A forward_host N/A N/A N/A l N/A forward_host encode utf-8 N/A N/A N/A N/A self listeners append l N/A N/A self socks_proxy None N/A N/A socks_proxy proj_config N/A N/A N/A N/A proj_config N/A socks_proxy None N/A N/A N/A self socks_proxy N/A N/A PappyConfig _parse_proxy_login N/A proj_config N/A socks_proxy N/A N/A self http_proxy None N/A N/A http_proxy proj_config N/A N/A N/A N/A proj_config N/A http_proxy None N/A N/A N/A self http_proxy N/A N/A PappyConfig _parse_proxy_login N/A proj_config N/A http_proxy N/A N/A history_size proj_config N/A N/A N/A self histsize N/A proj_config N/A history_size N/A load_global_settings N/A N/A self global_config N/A N/A http Request N/A N/A cache_size global_config N/A N/A N/A self cache_size N/A global_config N/A cache_size N/A N/A N/A self cache_size 2000 N/A N/A N/A N/A Request cache resize N/A self cache_size N/A load_from_file N/A N/A self fname N/A N/A N/A N/A N/A N/A N/A os path isfile fname N/A N/A N/A Copying default config to %s fname N/A default_config_file N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ default_user_config.json N/A N/A N/A shutil copyfile default_config_file fname N/A N/A open fname r f N/A N/A N/A self config_dict N/A N/A json load f N/A N/A N/A self load_settings N/A self config_dict N/A global_load_from_file N/A N/A self N/A N/A N/A fname N/A N/A N/A os path join N/A self data_dir global_config.json N/A N/A N/A N/A N/A os path isfile fname N/A N/A N/A Copying default global config to %s fname N/A default_global_config_file N/A N/A N/A os path join N/A self pappy_dir default_global_config.json N/A N/A N/A shutil copyfile default_global_config_file fname N/A N/A open fname r f N/A N/A N/A self global_config_dict N/A N/A json load f N/A N/A N/A self load_global_settings N/A self global_config_dict N/A N/A