@staticmethod<EOL><INDENT>def declare_credentials(name, rc_name=None, environ_name=None, default_value=None,<EOL>extra_environ=None, filenames=None, aws_profile_name=None):<DEDENT>
if default_value is Ellipsis:<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>def _check_creds(creds):<EOL><INDENT>if creds is None:<EOL><INDENT>return detect_credentials(None,<EOL>extra_environ=extra_environ,<EOL>filenames=filenames,<EOL>aws_profile_name=aws_profile_name,<EOL>default=default_value)<EOL><DEDENT>else: return to_credentials(creds)<EOL><DEDENT>return config.declare(name,<EOL>rc_name=rc_name,<EOL>environ_name=environ_name,<EOL>filter=_check_creds,<EOL>default_value=None)<EOL>
config.declare_credentials(name) registers a configurable variable with the given name to
  the neuropythy configuration system (see also config.declare()). The variable is
  specifically created as a credentials-type variable such that if the config variable is 
  not set, a call to detect_credentials is used to attempt to find the credentials; this
  effectively allows for additional filenames and environment variables to be searched while
  ensuring that strings, files, and json representations all get coerced to (key, secret)
  if possible.

Note that if you set default_value to something that is neither None nor a valid credentials
representation, then the config item will still end up as None; this is because the
default value must fall through the to_credentials() function.

The following optional arguments from detect_credentials are accepted and passed along to it
if necessary:
  * extra_environ
  * filenames
  * aws_profile_name
  * default_value (Ellipsis is not allowed via this interface).
The following optional arguments from config.declare() are accepted and passed along to it:
  * rc_name
  * environ_name

See also help(config.declare) and help(detect_credentials).