2.1. defaults
— Builtin Defaults¶
The defaults
module is a collection of default settings for the Arc API.
This module holds a collection of data that is set as the default value for a number of items that control the behavior of both the API and the CLI tool.
For API users, when a given function or method is not called with and explicit value (usually having a parameter that at the function call level defaults to ‘None’), these values are automatically used.
For the CLI tool, these values are set as defaults when an explicit value is not provided either on the configuration file or on the command line.
-
arc.defaults.
ACTIONS_MODULE_PREFIX
= 'arc.cli.actions'¶ Python namespace prefix for CLI actions
-
arc.defaults.
ARGS_MODULE_PREFIX
= 'arc.cli.args'¶ Python namespace prefix for CLI arguments
-
arc.defaults.
CONFIG_SYS_PATH
= '/etc/arc.conf'¶ The global, system wide configuration file path
-
arc.defaults.
CONFIG_USR_PATH
= '~/.arc.conf'¶ The local, user owned configuration file path
-
arc.defaults.
SERVER_HOST
= 'localhost'¶ The default host to connect to
-
arc.defaults.
SERVER_PORT
= 80¶ The default port to connect to