Module Expr Str Import alias ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str orelse Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore NameLoad While NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ExceptHandler type NameLoad body Assign NameStore NameLoad ExceptHandler type NameLoad body Pass TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Raise Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults vararg body For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If BoolOpAnd NameLoad CompareIs NameLoad NameLoad body ImportFrom alias Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr NameLoad attr Assign NameStore BoolOpOr NameLoad Dict If BoolOpAnd CompareIs NameLoad NameLoad CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str NameLoad orelse If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad Dict Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Return NameLoad For NameStore ListLoad Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str NameLoad BoolOpAnd NameLoad AttributeLoad NameLoad attr Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str NameLoad BoolOpAnd NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str BoolOpAnd NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword BinOpMod Str NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Call NameLoad keyword NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad NameLoad Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str NameLoad BoolOpAnd NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Raise Call NameLoad NameLoad Assign NameStore ListLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad keyword Str keyword NameLoad keyword Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr orelse Expr Call NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A Stand-alone entry point for running Pulsar without a web server.

In its simplest form, this method will check the current directory for an
app.yml and run the corresponding configuration as a standalone applciation.
This makes sense when ``app.yml`` contains a ``message_queue_url`` option so
Pulsar is configured to listen to a message queue and doesn't require a web
server.

The following commands can be used to bootstrap such a setup.::

    mkdir pulsar-mq-config
    cd pulsar-mq-config
    pulsar-config --mq
    pulsar-main

This script can be used in a standalone fashion, but it is generally better to
run the ``pulsar`` script with ``--mode webless`` - which will in turn
delegate to this script.
 N/A logging logging.config fileConfig N/A os N/A functools N/A time N/A sys six.moves configparser N/A N/A N/A yaml N/A N/A N/A ImportError N/A N/A yaml None N/A N/A daemonize Daemonize N/A N/A N/A ImportError N/A N/A Daemonize None argparse ArgumentParser argparse RawDescriptionHelpFormatter N/A log N/A N/A logging getLogger __name__ N/A REQUIRES_DAEMONIZE_MESSAGE Attempted to use Pulsar in daemon mode, but daemonize is unavailable. N/A PULSAR_ROOT_DIR N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ .. N/A N/A PULSAR_CONFIG_DIR N/A os environ N/A N/A PULSAR_CONFIG_DIR N/A N/A N/A os path abspath N/A N/A os environ N/A PULSAR_CONFIG_DIR N/A N/A PULSAR_CONFIG_DIR PULSAR_ROOT_DIR N/A DEFAULT_INI_APP main N/A DEFAULT_INI server.ini N/A DEFAULT_APP_YAML app.yml N/A DEFAULT_MANAGER _default_ N/A DEFAULT_PID pulsar.pid N/A DEFAULT_VERBOSE True N/A HELP_CONFIG_DIR Default directory to search for relevant Pulsar configuration files (e.g. app.yml, server.ini). N/A HELP_INI_PATH Specify an explicit path to Pulsar's server.ini configuration file. N/A HELP_APP_CONF_PATH Specify an explicit path to Pulsar's app.yml configuration file. N/A HELP_DAEMONIZE Daemonzie process (requires daemonize library). load_pulsar_app N/A N/A config_builder config_env log N/A False None kwds N/A N/A N/A log None N/A N/A log N/A N/A logging getLogger __name__ N/A config_env N/A N/A N/A N/A N/A N/A os chdir PULSAR_ROOT_DIR N/A N/A N/A Exception N/A N/A N/A N/A log exception Failed to chdir N/A N/A N/A N/A N/A N/A N/A sys path append PULSAR_ROOT_DIR N/A N/A N/A Exception N/A N/A N/A N/A log exception Failed to add Pulsar to sys.path N/A N/A N/A N/A config_builder setup_logging N/A config N/A N/A config_builder load N/A N/A N/A config update kwds N/A pulsar.core N/A pulsar_app N/A N/A N/A pulsar core PulsarApp config N/A pulsar_app N/A app_loop N/A N/A args log N/A N/A N/A pulsar_app N/A _app args log N/A sleep True N/A sleep N/A N/A N/A N/A N/A N/A time sleep 5 N/A N/A N/A KeyboardInterrupt N/A N/A sleep False N/A N/A SystemExit N/A N/A sleep False N/A N/A Exception N/A N/A N/A N/A N/A N/A N/A pulsar_app shutdown N/A N/A N/A Exception N/A N/A N/A N/A log exception Failed to shutdown Pulsar application N/A N/A _app N/A N/A args log N/A N/A N/A N/A N/A config_builder N/A PulsarConfigBuilder args N/A pulsar_app N/A load_pulsar_app config_builder config_env True log log N/A N/A N/A BaseException N/A N/A N/A N/A log exception Failed to initialize Pulsar application N/A N/A pulsar_app N/A absolute_config_path N/A N/A path config_dir N/A N/A N/A N/A path N/A N/A N/A N/A os path isabs path N/A N/A path N/A N/A N/A os path join config_dir path N/A path N/A _find_default_app_config N/A N/A N/A config_dirs N/A N/A config_dir config_dirs N/A N/A app_config_path N/A N/A N/A os path join config_dir DEFAULT_APP_YAML N/A N/A N/A N/A os path exists app_config_path N/A N/A app_config_path N/A None N/A load_app_configuration N/A N/A ini_path app_conf_path app_name local_conf config_dir N/A None None None None PULSAR_CONFIG_DIR N/A N/A N/A N/A ini_path N/A local_conf None N/A pulsar.util.pastescript.loadwsgi ConfigLoader N/A local_conf N/A N/A N/A N/A N/A ConfigLoader ini_path app_context app_name config N/A local_conf N/A local_conf N/A N/A N/A N/A app_conf_path None N/A app_config local_conf N/A N/A app_conf_path N/A absolute_config_path N/A local_conf N/A app_config config_dir N/A N/A ini_path N/A N/A app_conf_path N/A _find_default_app_config N/A N/A N/A os path dirname ini_path N/A app_conf_path N/A N/A N/A yaml None N/A N/A N/A Exception N/A Cannot load confiuration from file %s, pyyaml is not available. app_conf_path N/A N/A open app_conf_path r f N/A N/A app_conf N/A N/A N/A yaml load f N/A N/A N/A N/A local_conf update app_conf N/A local_conf N/A find_ini N/A N/A supplied_ini config_dir N/A N/A N/A supplied_ini N/A N/A supplied_ini N/A guess N/A server.ini server.ini.sample N/A N/A ini_path N/A N/A N/A os path join config_dir guess N/A N/A N/A N/A os path exists ini_path N/A N/A ini_path N/A guess N/A PulsarConfigBuilder N/A object N/A N/A  Generate paste-like configuration from supplied command-line arguments.
     __init__ N/A N/A self args N/A None kwds N/A N/A config_dir N/A N/A N/A kwds get config_dir None PULSAR_CONFIG_DIR N/A ini_path N/A N/A N/A kwds get ini_path None N/A args N/A args ini_path N/A app_conf_path N/A N/A N/A kwds get app_conf_path None N/A args N/A args app_conf_path N/A N/A app_conf_path N/A N/A ini_path N/A find_ini ini_path config_dir N/A ini_path N/A absolute_config_path ini_path config_dir config_dir N/A N/A self config_dir config_dir N/A N/A self ini_path ini_path N/A N/A self app_conf_path app_conf_path N/A N/A self app_name N/A N/A N/A kwds get app N/A args N/A args app DEFAULT_INI_APP N/A populate_options N/A N/A cls arg_parser N/A N/A N/A N/A N/A arg_parser add_argument -c --config_dir default None help HELP_CONFIG_DIR N/A N/A N/A arg_parser add_argument --ini_path default None help HELP_INI_PATH N/A N/A N/A arg_parser add_argument --app_conf_path default None help HELP_APP_CONF_PATH N/A N/A N/A arg_parser add_argument --app default DEFAULT_INI_APP N/A N/A N/A arg_parser add_argument -d --daemonize default False help HELP_DAEMONIZE action store_true N/A N/A N/A arg_parser add_argument --daemon-log-file default None help Log file for daemon, if --daemonize supplied. N/A N/A N/A arg_parser add_argument --pid-file default DEFAULT_PID help N/A Pid file for daemon, if --daemonize supplied (default is %s). DEFAULT_PID N/A classmethod load N/A N/A self N/A N/A N/A config N/A load_app_configuration config_dir N/A self config_dir ini_path N/A self ini_path app_conf_path N/A self app_conf_path app_name N/A self app_name N/A config N/A setup_logging N/A N/A self N/A N/A N/A N/A N/A self ini_path N/A N/A N/A raw_config N/A N/A configparser ConfigParser N/A N/A N/A raw_config read N/A N/A self ini_path N/A N/A N/A raw_config has_section loggers N/A N/A config_file N/A N/A N/A os path abspath N/A self ini_path N/A N/A fileConfig config_file N/A dict __file__ config_file here N/A N/A N/A os path dirname config_file N/A to_dict N/A N/A self N/A N/A N/A N/A dict config_dir N/A self config_dir ini_path N/A self ini_path app_conf_path N/A self app_conf_path app N/A self app_name N/A N/A PulsarManagerConfigBuilder N/A PulsarConfigBuilder N/A __init__ N/A N/A self args N/A None kwds N/A N/A N/A N/A N/A super PulsarManagerConfigBuilder self __init__ args args kwds N/A N/A self manager N/A N/A N/A kwds get manager None N/A args N/A args manager DEFAULT_MANAGER N/A to_dict N/A N/A self N/A N/A N/A as_dict N/A N/A N/A super PulsarManagerConfigBuilder self to_dict N/A N/A as_dict N/A manager N/A self manager N/A as_dict N/A populate_options N/A N/A cls arg_parser N/A N/A N/A N/A N/A PulsarConfigBuilder populate_options arg_parser N/A N/A N/A arg_parser add_argument --manager default DEFAULT_MANAGER N/A classmethod N/A main N/A N/A argv N/A None N/A N/A mod_docstring N/A N/A N/A sys modules N/A __name__ __doc__ N/A arg_parser N/A ArgumentParser description mod_docstring formatter_class RawDescriptionHelpFormatter N/A N/A N/A PulsarConfigBuilder populate_options arg_parser N/A args N/A N/A arg_parser parse_args argv N/A pid_file N/A args pid_file N/A N/A N/A log setLevel N/A logging DEBUG N/A N/A log propagate False N/A N/A args daemonize N/A N/A N/A Daemonize None N/A N/A N/A ImportError REQUIRES_DAEMONIZE_MESSAGE N/A keep_fds N/A N/A N/A args daemon_log_file N/A N/A fh N/A N/A logging FileHandler N/A args daemon_log_file w N/A N/A N/A fh setLevel N/A logging DEBUG N/A N/A N/A log addHandler fh N/A N/A N/A keep_fds append N/A N/A N/A fh stream fileno N/A N/A fh N/A N/A logging StreamHandler N/A sys stderr N/A N/A N/A fh setLevel N/A logging DEBUG N/A N/A N/A log addHandler fh N/A daemon N/A Daemonize app pulsar pid pid_file action N/A N/A functools partial app_loop args log verbose DEFAULT_VERBOSE logger log keep_fds keep_fds N/A N/A N/A daemon start N/A N/A N/A app_loop args log N/A N/A N/A __name__ __main__ N/A N/A N/A main