Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrrezoo/design-patterns-python
Review and implement some design patterns with various examples
https://github.com/mrrezoo/design-patterns-python
architecture attention design-pattern design-patterns designpatterns django flask javascript js laravel patterns-python php python
Last synced: about 2 months ago
JSON representation
Review and implement some design patterns with various examples
- Host: GitHub
- URL: https://github.com/mrrezoo/design-patterns-python
- Owner: MrRezoo
- License: mit
- Created: 2021-03-21T08:13:44.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-07T18:15:06.000Z (8 months ago)
- Last Synced: 2024-05-07T19:31:06.751Z (8 months ago)
- Topics: architecture, attention, design-pattern, design-patterns, designpatterns, django, flask, javascript, js, laravel, patterns-python, php, python
- Language: Python
- Homepage: https://www.linkedin.com/in/mrrezoo/
- Size: 857 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Design Patterns Python
![alt Design Patterns Python](assets/img/design-patterns-python.png "Design Patterns Python")
## Table of contents
* [General info](#General-info)
* [Attention](#Attention)
* [Technologies](#Technologies)
* [Design Pattern Map](#Design-Pattern-Map)
* [Help](#Help)
* [Setup](#Setup)
## General info
Hi , this is [Mr.Rezoo](https://www.linkedin.com/in/reza-mobaraki/)
these are the most important design patterns
you can read and try design patterns with this code
#### AttentionSome pattern designs are implemented in several ways
## Technologies
Project is created with:
* Python: 3.6^
## Design Pattern Map
This is a good cheat sheet to review and remind the design of important patterns
![alt Design Patterns Map](assets/img/design-pattern-map.png "Design Patterns Python Map")
## Help
In this repository we work on 3 type on **design patterns**
* Creational => (Singleton , Factory , Abstract Factory , Prototype)
* Structural => (Adapter , Decorator , Proxy , Composite)
* Behavioral => (Observer , State , Strategy , Chain of responsibility , Template method)The tree structure of these three pattern designs is as follows
```shell
DesignPattern git:(master) tree
```
```markdown
.
├── README.md
├── __pycache__
│ └── abstract_factory.cpython-39.pyc
├── abstract_factory.py
├── abstract_factory2.py
├── abstract_factory3.py
├── adapter.py
├── adapter2.py
├── builder.py
├── chain_of_responsibility.py
├── composit.py
├── decorator.py
├── decorator2.py
├── facade.py
├── factory.py
├── factory2.py
├── iterator.py
├── observer
│ ├── __init__.py
│ ├── __pycache__
│ │ ├── __init__.cpython-39.pyc
│ │ ├── decorator.cpython-39.pyc
│ │ ├── notification.cpython-39.pyc
│ │ └── shop.cpython-39.pyc
│ ├── decorator.py
│ ├── main.py
│ ├── notification.py
│ └── shop.py
├── observer2.py
├── prototype.py
├── prototype2.py
├── proxy.py
├── proxy2.py
├── proxy_dice.py
├── proxy_lazy.py
├── singleton.py
├── singleton2.py
├── state.py
├── state2.py
├── strategy.py
├── strategy3.py
├── strategy_2.py
└── template_method.py3 directories, 40 files
```
## SetupTo run this project, install it locally using git-clone:
```shell
gh repo clone https://github.com/MrRezoo/design-patterns-python.git#or
git clone https://github.com/MrRezoo/design-patterns-python.git
```## License
Distributed under the MIT License. See [license](LICENSE.txt) for more information.