A collection of design patterns and idioms in Python.

Jonathan Reem 55aa903b7c Added list of current patterns. hace 12 años
__pycache__ 864f73f43c Some minor changes hace 12 años
3-tier.py 6b920156b9 Added a main() function. hace 12 años
README.md 55aa903b7c Added list of current patterns. hace 12 años
abstract_factory.py 533c8680de Fixed a number of pep8 violations. hace 12 años
adapter.py 06a7f83254 Removed old string formatting. hace 12 años
borg.py 533c8680de Fixed a number of pep8 violations. hace 12 años
bridge.py d671429259 Fixed PEP-8 discrepancy in Bridge pattern hace 12 años
builder.py 3003f6bbf6 Fixed string formatting. hace 12 años
chain.py 0e0f9c57c5 Split delegation from __init__ in Client. hace 12 años
command.py 77728fd5f7 Wrapped main behavior in a main() function. hace 12 años
composite.py 533c8680de Fixed a number of pep8 violations. hace 12 años
decorator.py 38637e914c Rejiggered the classes to actually use decorator syntax and commented an explanation on how the @ syntax works. Also wrapped the executing code in a main() function. hace 12 años
facade.py 533c8680de Fixed a number of pep8 violations. hace 12 años
factory_method.py 533c8680de Fixed a number of pep8 violations. hace 12 años
flyweight.py 3656aa0f90 Removed trailing spaces on numerous lines. hace 12 años
foo.txt 3511c20bf6 Added foo.txt for command.py script. hace 12 años
graph_search.py 533c8680de Fixed a number of pep8 violations. hace 12 años
iterator.py 06960de5e3 Minor pep8 correction of the docstring. hace 12 años
mediator.py 327e51c9c3 Removed redundant parentheses. hace 12 años
memento.py 533c8680de Fixed a number of pep8 violations. hace 12 años
mvc.py 88fd2544d6 added two more patterns, 3-tier and mvc hace 12 años
null.py 533c8680de Fixed a number of pep8 violations. hace 12 años
observer.py 533c8680de Fixed a number of pep8 violations. hace 12 años
pool.py 6b3735078f Renamed element 'type' to 'Type'. hace 12 años
prototype.py a444aab205 Fixed PEP-8 discrepancy in Prototype pattern hace 12 años
proxy.py 533c8680de Fixed a number of pep8 violations. hace 12 años
state.py 916b996ff1 Few minor changes. hace 12 años
strategy.py 40a7afc427 Minor pep8 correction of the docstring. hace 12 años
template.py 4007ac7d7c Minor pep8 correction of the docstring. hace 12 años
visitor.py 533c8680de Fixed a number of pep8 violations. hace 12 años

README.md

python-patterns

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

Current Patterns:

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