A collection of design patterns in Python.
Pattern | Description |
---|---|
abstract_factory | Provide an interface for creating families of related or dependent objects without specifying their concrete classes. |
builder | Separate the construction of a complex object from its representation so that the same construction process can create different representations. |
factory_method | Provide an interface for creating an object, but let subclasses decide which class to instantiate. |
prototype | Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype. |
singleton | Ensure a class on has only one instance and provide a global point of accessing to it. |