A collection of design patterns and idioms in Python.

Wang 2476b4b5dd Remove __pycache__ and add __pycache__ to .gitignore vor 11 Jahren
.gitignore 2476b4b5dd Remove __pycache__ and add __pycache__ to .gitignore vor 11 Jahren
3-tier.py a4f99ed7d5 Pep8 corrections vor 12 Jahren
README.md 836ddd08f5 publish_subscribe pattern vor 11 Jahren
abstract_factory.py 0e51ba6eb0 Two minor pep8 changes vor 12 Jahren
adapter.py da97203a14 Merge branch 'dbykov-master' vor 12 Jahren
borg.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren
bridge.py d671429259 Fixed PEP-8 discrepancy in Bridge pattern vor 12 Jahren
builder.py 3003f6bbf6 Fixed string formatting. vor 12 Jahren
catalog.py 11b4b6ada2 added catalog pattern vor 12 Jahren
chain.py 0e51ba6eb0 Two minor pep8 changes vor 12 Jahren
command.py 77728fd5f7 Wrapped main behavior in a main() function. vor 12 Jahren
composite.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren
decorator.py a4f99ed7d5 Pep8 corrections vor 12 Jahren
facade.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren
factory_method.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren
flyweight.py 3656aa0f90 Removed trailing spaces on numerous lines. vor 12 Jahren
foo.txt 3511c20bf6 Added foo.txt for command.py script. vor 12 Jahren
graph_search.py 3141ad5700 Update graph_search.py vor 12 Jahren
iterator.py 06960de5e3 Minor pep8 correction of the docstring. vor 12 Jahren
mediator.py 029cec2b79 Several changes to mediator.py vor 12 Jahren
memento.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren
mvc.py d207051ff4 Some small pep8 corrections. vor 12 Jahren
null.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren
observer.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren
pool.py 6b3735078f Renamed element 'type' to 'Type'. vor 12 Jahren
prototype.py a444aab205 Fixed PEP-8 discrepancy in Prototype pattern vor 12 Jahren
proxy.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren
publish_subscribe.py 648efacd7d author vor 11 Jahren
state.py 916b996ff1 Few minor changes. vor 12 Jahren
strategy.py 40a7afc427 Minor pep8 correction of the docstring. vor 12 Jahren
template.py 4007ac7d7c Minor pep8 correction of the docstring. vor 12 Jahren
visitor.py 533c8680de Fixed a number of pep8 violations. vor 12 Jahren

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
  • publish_subscribe