| |
- __builtin__.object
-
- RawConfigParser
-
- ConfigParser
-
- SafeConfigParser
- cfg_dict
class ConfigParser(RawConfigParser) |
| |
- Method resolution order:
- ConfigParser
- RawConfigParser
- __builtin__.object
Methods defined here:
- get(self, section, option, raw=False, vars=None)
- Get an option value for a given section.
All % interpolations are expanded in the return values, based on the
defaults passed into the constructor, unless the optional argument
`raw' is true. Additional substitutions may be provided using the
`vars' argument, which must be a dictionary whose contents overrides
any pre-existing defaults.
The section DEFAULT is special.
- items(self, section, raw=False, vars=None)
- Return a list of tuples with (name, value) for each option
in the section.
All % interpolations are expanded in the return values, based on the
defaults passed into the constructor, unless the optional argument
`raw' is true. Additional substitutions may be provided using the
`vars' argument, which must be a dictionary whose contents overrides
any pre-existing defaults.
The section DEFAULT is special.
Methods inherited from RawConfigParser:
- __init__(self, defaults=None)
- add_section(self, section)
- Create a new section in the configuration.
Raise DuplicateSectionError if a section by the specified name
already exists.
- defaults(self)
- get_oxf(self)
- getboolean(self, section, option)
- getfloat(self, section, option)
- getint(self, section, option)
- has_option(self, section, option)
- Check for the existence of a given option in a given section.
- has_section(self, section)
- Indicate whether the named section is present in the configuration.
The DEFAULT section is not acknowledged.
- 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.
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.
- readfp(self, 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(self, section, option)
- Remove an option.
- remove_section(self, section)
- Remove a file section.
- sections(self)
- Return a list of section names, excluding [DEFAULT]
- set(self, section, option, value)
- Set an option.
- set_oxf(self, value)
- write(self, fp)
- Write an .ini-format representation of the configuration state.
Properties inherited from RawConfigParser:
- optionxform
- get = get_oxf(self)
- set = set_oxf(self, value)
Data and other attributes inherited from RawConfigParser:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'RawConfigParser' objects>
- list of weak references to the object (if defined)
|
class RawConfigParser(__builtin__.object) |
| |
Methods defined here:
- __init__(self, defaults=None)
- add_section(self, section)
- Create a new section in the configuration.
Raise DuplicateSectionError if a section by the specified name
already exists.
- defaults(self)
- get(self, section, option, vars=None)
- get_oxf(self)
- getboolean(self, section, option)
- getfloat(self, section, option)
- getint(self, section, option)
- has_option(self, section, option)
- Check for the existence of a given option in a given section.
- has_section(self, section)
- Indicate whether the named section is present in the configuration.
The DEFAULT section is not acknowledged.
- items(self, section)
- 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.
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.
- readfp(self, 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(self, section, option)
- Remove an option.
- remove_section(self, section)
- Remove a file section.
- sections(self)
- Return a list of section names, excluding [DEFAULT]
- set(self, section, option, value)
- Set an option.
- set_oxf(self, value)
- write(self, fp)
- Write an .ini-format representation of the configuration state.
Properties defined here:
- optionxform
- get = get_oxf(self)
- set = set_oxf(self, value)
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'RawConfigParser' objects>
- list of weak references to the object (if defined)
|
class SafeConfigParser(ConfigParser) |
| |
- Method resolution order:
- SafeConfigParser
- ConfigParser
- RawConfigParser
- __builtin__.object
Methods inherited from ConfigParser:
- get(self, section, option, raw=False, vars=None)
- Get an option value for a given section.
All % interpolations are expanded in the return values, based on the
defaults passed into the constructor, unless the optional argument
`raw' is true. Additional substitutions may be provided using the
`vars' argument, which must be a dictionary whose contents overrides
any pre-existing defaults.
The section DEFAULT is special.
- items(self, section, raw=False, vars=None)
- Return a list of tuples with (name, value) for each option
in the section.
All % interpolations are expanded in the return values, based on the
defaults passed into the constructor, unless the optional argument
`raw' is true. Additional substitutions may be provided using the
`vars' argument, which must be a dictionary whose contents overrides
any pre-existing defaults.
The section DEFAULT is special.
Methods inherited from RawConfigParser:
- __init__(self, defaults=None)
- add_section(self, section)
- Create a new section in the configuration.
Raise DuplicateSectionError if a section by the specified name
already exists.
- defaults(self)
- get_oxf(self)
- getboolean(self, section, option)
- getfloat(self, section, option)
- getint(self, section, option)
- has_option(self, section, option)
- Check for the existence of a given option in a given section.
- has_section(self, section)
- Indicate whether the named section is present in the configuration.
The DEFAULT section is not acknowledged.
- 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.
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.
- readfp(self, 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(self, section, option)
- Remove an option.
- remove_section(self, section)
- Remove a file section.
- sections(self)
- Return a list of section names, excluding [DEFAULT]
- set(self, section, option, value)
- Set an option.
- set_oxf(self, value)
- write(self, fp)
- Write an .ini-format representation of the configuration state.
Properties inherited from RawConfigParser:
- optionxform
- get = get_oxf(self)
- set = set_oxf(self, value)
Data and other attributes inherited from RawConfigParser:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'RawConfigParser' objects>
- list of weak references to the object (if defined)
|
class cfg_dict(__builtin__.object) |
| |
Methods defined here:
- __getitem__(self, key)
- __init__(self, cfg, section, vars)
Data and other attributes defined here:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'cfg_dict' objects>
- list of weak references to the object (if defined)
| |