There are no base classes.
There are no implemented interfaces.
OPTCRE
(type: SRE_Pattern
)
<_sre.SRE_Pattern object at 0x410944d0>
SECTCRE
(type: SRE_Pattern
)
<_sre.SRE_Pattern object at 0x40701260>
add_section(section)
Create a new section in the configuration.
Raise DuplicateSectionError if a section by the specified name already exists.
defaults()
get(section, option)
getboolean(section, option)
getfloat(section, option)
getint(section, option)
has_option(section, option)
Check for the existence of a given option in a given section.
has_section(section)
Indicate whether the named section is present in the configuration.
The DEFAULT section is not acknowledged.
items(section)
options(section)
Return a list of option names for the given section name.
optionxform(optionstr)
read(filenames)
Read and parse a filename or a list of filenames.
Files that cannot be opened are silently ignored; this is designed so that you can specify a list of potential configuration file locations (e.g. current directory, user's home directory, systemwide directory), and all existing configuration files in the list will be read. A single filename may also be given.
Return list of successfully read files.
readfp(fp, filename=None)
Like read() but the argument must be a file-like object.
The `fp' argument must have a `readline' method. Optional second argument is the `filename', which if not given, is taken from fp.name. If fp has no `name' attribute, `??>' is used.
remove_option(section, option)
Remove an option.
remove_section(section)
Remove a file section.
sections()
Return a list of section names, excluding [DEFAULT]
set(section, option, value)
Set an option.
write(fp)
Write an .ini-format representation of the configuration state.