tea.ds

Data structures module

class tea.ds.config.Config(filename=None, data=None, fmt=None, encoding=u'utf-8', autosave=True)

Configuration class

delete(*args, **kwargs)

Safe version, never, raises an error

static ensure_exists(filename, encoding=u'utf-8')

Ensures that the configuration file exists and that it produces a correct empty configuration.

get(*args, **kwargs)

Safe version which always returns a default value

insert(*args, **kwargs)

Inserts at the index, and if the index is not provided appends to the end of the list

keys(*args, **kwargs)

Returns a set of top level keys in this configuration

class tea.ds.config.MultiConfig(filename=None, data=None, fmt=None, encoding=u'utf-8', autosave=True)

Base class for configuration management

delete(*args, **kwargs)

Safe version, never raises an error

static ensure_exists(filename, encoding=u'utf-8')

Ensures that the configuration file exists and that it produces a correct empty configuration.

get(*args, **kwargs)

Safe version always returns a default value

keys(*args, **kwargs)

Returns a merged set of top level keys from all the configuration files

Project Versions

Previous topic

tea.cron

Next topic

tea.logger

This Page