|
__init__(self,
defaults=None,
permit_includes=True,
use_ordered_sections=False,
strict_substitution=False)
Construct a new Configuration object. |
source code
|
|
dict
|
|
|
|
bool
|
|
list
|
options(self,
section)
Get a list of options available in the specified section. |
source code
|
|
bool
|
|
list
|
read(self,
filenames)
Attempt to read and parse a list of filenames or URLs, returning a
list of filenames or URLs which were successfully parsed. |
source code
|
|
|
readfp(self,
fp,
filename=None)
Read and parse configuration data from a file or file-like object. |
source code
|
|
str
|
get(self,
section,
option,
optional=False)
Get an option from a section. |
source code
|
|
int
|
getint(self,
section,
option,
optional=False)
Convenience method that coerces the result of a call to
get() to an int. |
source code
|
|
float
|
getfloat(self,
section,
option,
optional=False)
Convenience method that coerces the result of a call to get() to a
float. |
source code
|
|
bool
|
getboolean(self,
section,
option,
optional=False)
Convenience method that coerces the result of a call to get() to a
boolean. |
source code
|
|
bool
|
getlist(self,
section,
option,
sep=None,
optional=False)
Convenience method that coerces the result of a call to get() to a
list. |
source code
|
|
str
|
get_one_of(self,
section,
options,
optional=False,
default=None,
value_type=<type 'str'>)
Retrieve at most one of a list or set of options from a section. |
source code
|
|
list
|
|
|
set(self,
section,
option,
value)
If the given section exists, set the given option to the specified
value; otherwise raise NoSectionError. |
source code
|
|
|
write(self,
fileobj)
Write a representation of the configuration to the specified file-like
object. |
source code
|
|
|
|
|
optionxform(self,
option_name)
Transforms the option name in option_name as found in an input
file or as passed in by client code to the form that should be used in
the internal structures. |
source code
|
|
|
__get_optional(self,
func,
section,
option) |
source code
|
|
|
|
|
|
|
|
Inherited from ConfigParser.SafeConfigParser (private):
_interpolate ,
_interpolate_some
Inherited from ConfigParser.ConfigParser (private):
_interpolation_replace
Inherited from ConfigParser.RawConfigParser :
remove_option
Inherited from ConfigParser.RawConfigParser (private):
_get ,
_read
|