Module reprconf
source code
Generic configuration system using unrepr.
Configuration data may be supplied as a Python dictionary, as a filename,
or as an open file object. When you supply a filename or file, Python's
builtin ConfigParser is used (with some extensions).
Namespaces
----------
Configuration keys are separated into namespaces by the first "." in the key.
The only key that cannot exist in a namespace is the "environment" entry.
This special entry 'imports' other config entries from a template stored in
the Config.environments dict.
You can define your own namespaces to be called when new config is merged
by adding a named handler to Config.namespaces. The name can be any string,
and the handler must be either a callable or a context manager.
|
basestring
str(object) -> string
|
|
NamespaceSet
A dict of config namespace names and handlers.
|
|
Config
A dict-like set of configuration data, with defaults and
namespaces.
|
|
Parser
Sub-class of ConfigParser that keeps the case of options and that
raises an exception if the file cannot be read.
|
|
_Builder2
|
|
_Builder3
|
|
as_dict(config)
Return a dict from 'config' whether it is a dict, file, or filename. |
source code
|
|
|
unrepr(s)
Return a Python object compiled from a string. |
source code
|
|
|
modules(modulePath)
Load a module and retrieve a reference to that module. |
source code
|
|
|
attributes(full_attribute_name)
Load a module and retrieve an attribute of that module. |
source code
|
|
|
__package__ = ' cherrypy.lib '
|