bronx.patterns

This package defines some useful Design Patterns.

Implementations may be not the most efficient or thread-safe proof ones.

Classes

class bronx.patterns.Borg(*args, **kw)[source]

Bases: object

A base class for sharing a common state by different objects.

class bronx.patterns.Singleton(*args, **kw)[source]

Bases: object

Obviously a base class for any real singleton.

Sub-Modules

bronx.patterns.getbytag

GetByTag does not provide any "official" design pattern but we consider it to be somehow an extension of the Singleton pattern.

bronx.patterns.observer

A personal implementation of the Observer design pattern.