coolfig.schema module

class coolfig.schema.BoundValue(cls, name, value)[source]

Bases: object

class coolfig.schema.ComputedValue(callable, *args, **kwargs)[source]

Bases: coolfig.schema.ValueBase

class coolfig.schema.DictValue(type, keytype=<type 'str'>, *args, **kwargs)[source]

Bases: coolfig.schema.Value

class coolfig.schema.Dictionary(spec)[source]

Bases: coolfig.schema.ValueBase

exception coolfig.schema.ImproperlyConfigured[source]

Bases: exceptions.Exception

Raised when e request for a configuration value cannot be fulfilled.

class coolfig.schema.Reference(key)[source]

Bases: object

class coolfig.schema.Settings(config_provider)[source]

Bases: coolfig.schema.SettingsBase

classmethod merge(*others)[source]

Merge the others schema into this instance.

The values will all be read from the provider of the original object.

class coolfig.schema.SettingsBase(config_provider)[source]

Bases: object

as_dict()[source]
items()[source]
keys()[source]
class coolfig.schema.SettingsMeta(name, bases, clsdict)[source]

Bases: type

class coolfig.schema.StaticValue(value)[source]

Bases: coolfig.schema.BoundValue

class coolfig.schema.Value(type, default=<object object>, key=None)[source]

Bases: coolfig.schema.ValueBase

class coolfig.schema.ValueBase[source]

Bases: object

coolfig.schema.bind_values(cls, clsdict)[source]
coolfig.schema.computed_value(func)[source]
coolfig.schema.ref

alias of coolfig.schema.Reference