A collection of design patterns and idioms in Python.

Jay Tyler 1878a5310b Minor pep8 changes. Most salient is that membership test should be 'x not in y' whereas 'not x in y' was being used. vor 11 Jahren
.gitignore 2476b4b5dd Remove __pycache__ and add __pycache__ to .gitignore vor 11 Jahren
3-tier.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
README.md e27509abdb Update README.md vor 11 Jahren
abstract_factory.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
adapter.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
append_output.sh ec8d735baa Don't repeat the ### OUTPUT ### line vor 11 Jahren
borg.py f61504c1bd Add output to bottom of scripts vor 11 Jahren
bridge.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
builder.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
catalog.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
chain.py 1878a5310b Minor pep8 changes. Most salient is that membership test should be 'x not in y' whereas 'not x in y' was being used. vor 11 Jahren
command.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
composite.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
decorator.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
facade.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
factory_method.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
flyweight.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
foo.txt 3511c20bf6 Added foo.txt for command.py script. vor 12 Jahren
graph_search.py 1878a5310b Minor pep8 changes. Most salient is that membership test should be 'x not in y' whereas 'not x in y' was being used. vor 11 Jahren
iterator.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
mediator.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
memento.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
mvc.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
null.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
observer.py 1878a5310b Minor pep8 changes. Most salient is that membership test should be 'x not in y' whereas 'not x in y' was being used. vor 11 Jahren
pool.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
prototype.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
proxy.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
publish_subscribe.py 1878a5310b Minor pep8 changes. Most salient is that membership test should be 'x not in y' whereas 'not x in y' was being used. vor 11 Jahren
state.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
strategy.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren
template.py f61504c1bd Add output to bottom of scripts vor 11 Jahren
visitor.py 5d794ceecb Your code is too weak for PEP8. You lack DISCIPLINE vor 11 Jahren

README.md

python-patterns

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

When an implementation is added or modified, be sure to update this file and rerun append_output.sh to keep the output comments at the bottom up to date.

Current Patterns:

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