langacore.kit.common 0.2.4 documentation

This Page

langacore.kit.config.FunkyConfigParser

class FunkyConfigParser(*args, **kwargs)

Config parser that can handle get() fallbacks and getting/setting lists of strings (white-space separated).

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)
add_section(section) Create a new section in the configuration.
defaults()
get(section, option[, fallback, conv])
getboolean(section, option[, fallback])
getfloat(section, option[, fallback])
getint(section, option[, fallback])
getlist(section, option[, fallback])
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.
items(section[, raw, vars]) Return a list of tuples with (name, value) for each option in the 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.
readfp(*args, **kwargs)
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)
write(*args, **kwargs)