A collection of design patterns and idioms in Python.

msbanik 1c180aa6e8 change in output format and adding constructor for Handler 12 vuotta sitten
__pycache__ a4f99ed7d5 Pep8 corrections 12 vuotta sitten
3-tier.py a4f99ed7d5 Pep8 corrections 12 vuotta sitten
README.md 3afc5fce47 merging pull request after fixing a few bugs 12 vuotta sitten
abstract_factory.py b414f2b3f5 delete extra line 12 vuotta sitten
adapter.py da97203a14 Merge branch 'dbykov-master' 12 vuotta sitten
borg.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
bridge.py d671429259 Fixed PEP-8 discrepancy in Bridge pattern 12 vuotta sitten
builder.py 3003f6bbf6 Fixed string formatting. 12 vuotta sitten
chain.py 1c180aa6e8 change in output format and adding constructor for Handler 12 vuotta sitten
command.py 77728fd5f7 Wrapped main behavior in a main() function. 12 vuotta sitten
composite.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
decorator.py a4f99ed7d5 Pep8 corrections 12 vuotta sitten
facade.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
factory_method.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
flyweight.py 3656aa0f90 Removed trailing spaces on numerous lines. 12 vuotta sitten
foo.txt 3511c20bf6 Added foo.txt for command.py script. 12 vuotta sitten
graph_search.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
iterator.py 06960de5e3 Minor pep8 correction of the docstring. 12 vuotta sitten
mediator.py 029cec2b79 Several changes to mediator.py 12 vuotta sitten
memento.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
mvc.py d207051ff4 Some small pep8 corrections. 12 vuotta sitten
null.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
observer.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
pool.py 6b3735078f Renamed element 'type' to 'Type'. 12 vuotta sitten
prototype.py a444aab205 Fixed PEP-8 discrepancy in Prototype pattern 12 vuotta sitten
proxy.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten
state.py 916b996ff1 Few minor changes. 12 vuotta sitten
strategy.py 40a7afc427 Minor pep8 correction of the docstring. 12 vuotta sitten
template.py 4007ac7d7c Minor pep8 correction of the docstring. 12 vuotta sitten
visitor.py 533c8680de Fixed a number of pep8 violations. 12 vuotta sitten

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