A collection of design patterns and idioms in Python.

Sakis Kasampalis 3afc5fce47 merging pull request after fixing a few bugs 12 anni fa
__pycache__ 864f73f43c Some minor changes 12 anni fa
3-tier.py 3afc5fce47 merging pull request after fixing a few bugs 12 anni fa
README.md 3afc5fce47 merging pull request after fixing a few bugs 12 anni fa
abstract_factory.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
adapter.py 3afc5fce47 merging pull request after fixing a few bugs 12 anni fa
borg.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
bridge.py d671429259 Fixed PEP-8 discrepancy in Bridge pattern 12 anni fa
builder.py 3003f6bbf6 Fixed string formatting. 12 anni fa
chain.py 0e0f9c57c5 Split delegation from __init__ in Client. 12 anni fa
command.py 77728fd5f7 Wrapped main behavior in a main() function. 12 anni fa
composite.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
decorator.py 3afc5fce47 merging pull request after fixing a few bugs 12 anni fa
facade.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
factory_method.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
flyweight.py 3656aa0f90 Removed trailing spaces on numerous lines. 12 anni fa
foo.txt 3511c20bf6 Added foo.txt for command.py script. 12 anni fa
graph_search.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
iterator.py 06960de5e3 Minor pep8 correction of the docstring. 12 anni fa
mediator.py 327e51c9c3 Removed redundant parentheses. 12 anni fa
memento.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
mvc.py d207051ff4 Some small pep8 corrections. 12 anni fa
null.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
observer.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
pool.py 6b3735078f Renamed element 'type' to 'Type'. 12 anni fa
prototype.py a444aab205 Fixed PEP-8 discrepancy in Prototype pattern 12 anni fa
proxy.py 533c8680de Fixed a number of pep8 violations. 12 anni fa
state.py 916b996ff1 Few minor changes. 12 anni fa
strategy.py 40a7afc427 Minor pep8 correction of the docstring. 12 anni fa
template.py 4007ac7d7c Minor pep8 correction of the docstring. 12 anni fa
visitor.py 533c8680de Fixed a number of pep8 violations. 12 anni fa

README.md

python-patterns

A collection of design patterns implemented (by other people) in python

Current Patterns:

  • 3-tier
  • composite
  • mvc
  • decorator
  • null
  • facade
  • observer
  • abstract_factory
  • factory_method
  • pool
  • adapter
  • flyweight
  • prototype
  • borg
  • proxy
  • bridge
  • graph_search
  • state
  • builder
  • iterator
  • strategy
  • chain
  • mediator
  • template
  • command
  • memento
  • visitor