|
__init__(self,
defaults=None) |
|
|
|
|
|
sections(self)
Return a list of section names, excluding [DEFAULT] |
|
|
|
add_section(self,
section)
Create a new section in the configuration. |
|
|
|
has_section(self,
section)
Indicate whether the named section is present in the configuration. |
|
|
|
options(self,
section)
Return a list of option names for the given section name. |
|
|
|
read(self,
filenames)
Read and parse a filename or a list of filenames. |
|
|
|
readfp(self,
fp,
filename=None)
Like read() but the argument must be a file-like object. |
|
|
|
get(self,
section,
option) |
|
|
|
|
|
_get(self,
section,
conv,
option) |
|
|
|
getint(self,
section,
option) |
|
|
|
getfloat(self,
section,
option) |
|
|
|
getboolean(self,
section,
option) |
|
|
|
optionxform(self,
optionstr) |
|
|
|
has_option(self,
section,
option)
Check for the existence of a given option in a given section. |
|
|
|
set(self,
section,
option,
value)
Set an option. |
|
|
|
write(self,
fp)
Write an .ini-format representation of the configuration state. |
|
|
|
remove_option(self,
section,
option)
Remove an option. |
|
|
|
remove_section(self,
section)
Remove a file section. |
|
|
|
_read(self,
fp,
fpname)
Parse a sectioned setup file. |
|
|