tissu.conf package

Module contents

Settings and configuration for your application.

Inspired by the django configuration : https://github.com/django/django/blob/master/django/conf/__init__.py

Values will be read from the module specified by the TISSU_SETTINGS_MODULE environment variable, and then from TISSU_GLOBAL_SETTINGS; see the global settings file for a list of all possible variables.

class tissu.conf.BaseSettings[source]

Bases: object

Common logic for settings whether set by a module or by the user.

class tissu.conf.LazyObject[source]

Bases: object

A wrapper for another class that can be used to delay instantiation of the wrapped class.

By subclassing, you have the opportunity to intercept and alter the instantiation. If you don’t need to do that, use SimpleLazyObject.

class tissu.conf.LazySettings[source]

Bases: tissu.conf.LazyObject

A lazy proxy for either global settings or a custom settings object. The user can manually configure settings prior to using them. Otherwise, Tissu uses the settings module pointed to by TISSU_SETTINGS_MODULE.

configure(default_settings=<module 'tissu.conf.global_settings' from '/var/build/user_builds/tissu/checkouts/latest/docs/source/../../tissu/conf/global_settings.pyc'>, **options)[source]

Called to manually configure the settings. The ‘default_settings’ parameter sets where to retrieve any unspecified values from (its argument must support attribute access (__getattr__)).

configured[source]

Returns True if the settings have already been configured.

class tissu.conf.Settings(settings_module)[source]

Bases: tissu.conf.BaseSettings

tissu.conf.new_method_proxy(func)[source]