-
Notifications
You must be signed in to change notification settings - Fork 28
/
index.html
128 lines (121 loc) · 8.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!-- Microdata markup added by Google Structured Data Markup Helper. -->
<html><head>
<title>Python Design Patterns</title>
<meta name="google-site-verification" content="HcImfJXxkHLZjGliwUHNXLP1k7iaE7Eovd2YyKBD3mM"/>
<meta name="msvalidate.01" content="9D532204371A618F6ACAC140B3CE779B" />
<style>
#Python-Design-Patterns {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 80%;
}
#Python-Design-Patterns td, #Python-Design-Patterns th {
border: 1px solid #ddd;
padding: 8px;
}
#Python-Design-Patterns tr:nth-child(even){background-color: #f2f2f2;}
#Python-Design-Patterns tr:hover {background-color: #ddd;}
#Python-Design-Patterns th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
</head>
<body>
<table id="Python-Design-Patterns" width="60%">
<tbody><tr><th itemscope itemtype="http://schema.org/SoftwareApplication" colspan="4" style="float:center">
<span itemprop="name">Python Design Patterns</span> - <a itemprop="url" href="https://github.com/rajan2275/Python-Design-Patterns">GitHub</a></th></tr>
<tr><th width="10%">S. No.</th><th width="40%">Design Patterns</th><th>Categories</th><th>Definition</th></tr>
<tr><td width="10%">1.</td><td><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Creational/singleton.py">
<span itemprop="name">Singleton Pattern</span></a></td>
<td>Creational</td>
<td>singleton allows only a single instance of itself to be created and gives access to that created instance.</td>
</tr>
<tr><td width="10%">2.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Creational/lazy_instantiation_singleton.py">
<span itemprop="name">Lazy instantiation in Singleton Pattern</span></a></td>
<td>Creational</td>
<td>Singleton example.</td>
</tr>
<tr><td width="10%">3.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Creational/singleton_with_metaclass.py">
<span itemprop="name">Singleton with metaclass</span></a></td>
<td>Creational</td>
<td>Singleton example.</td>
</tr>
<tr><td width="10%">4.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Creational/factory.py">
<span itemprop="name">Factory Pattern</span></a></td>
<td>Creational</td>
<td>Define an interface for creating an object, but let subclasses decide which class to instantiate.</td></tr>
<tr><td width="10%">5.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Creational/abstract_factory.py">
<span itemprop="name">Abstract factory Pattern</span></a></td>
<td>Creational</td>
<td>Provide an interface for creating families of related or dependent objects without specifying their concrete classes.</td>
</tr>
<tr><td width="10%">6.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Structural/facade.py">
<span itemprop="name">Facade Pattern</span></a></td>
<td>Structural</td>
<td>Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.</td>
</tr>
<tr><td width="10%">7.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Structural/proxy.py">
<span itemprop="name">Proxy Pattern</span></a></td>
<td>Structural</td>
<td>Provide a surrogate or placeholder for another object to control access to it.</td>
</tr>
<tr><td width="10%">8.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Structural/adapter.py">
<span itemprop="name">Adapter Pattern</span></a></td>
<td>Structural</td>
<td>Convert the interface of a class into another interface clients expect. An adapter lets classes work together that could not otherwise because of incompatible interfaces. The enterprise integration pattern equivalent is the translator.</td>
</tr>
<tr><td width="10%">9.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Behavioral/observer.py">
<span itemprop="name">Observer Pattern</span></a></td>
<td>Behavioral</td>
<td>Define a one-to-many dependency between objects where a state change in one object results in all its dependents being notified and updated automatically.</td>
</tr>
<tr><td width="10%">10.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Behavioral/observer_example.py">
<span itemprop="name">Observer Pattern in Publisher and Subscriber example</span></a></td>
<td>Behavioral</td>
<td>Observer example.</td>
</tr>
<tr><td width="10%">11.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Behavioral/command.py">
<span itemprop="name">Command Pattern</span></a> </td>
<td>Behavioral</td>
<td>
Encapsulate a request as an object, thereby allowing for the parameterization of clients with different requests, and the queuing or logging of requests. It also allows for the support of undoable operations.
</td>
</tr>
<tr><td width="10%">12.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Behavioral/command_example.py">
<span itemprop="name">Command pattern example</span>.</a></td>
<td>Behavioral</td>
<td>
Command pattern example.</td>
</tr>
<tr><td width="10%">13.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Behavioral/command_example_1.py">
<span itemprop="name">Command Pattern Example_1</span></a> </td>
<td>Behavioral</td>
<td>Command pattern example.</td>
</tr>
<tr><td width="10%">14.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Behavioral/template.py">
<span itemprop="name">Template Pattern</span></a></td>
<td>Behavioral</td>
<td>
Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure
</td>
</tr>
<tr><td width="10%">15.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Behavioral/state.py">
<span itemprop="name">State Pattern</span></a></td>
<td>Behavioral</td>
<td>
Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.
</td>
</tr>
<tr><td width="10%">16.</td><td width="40%"><a itemscope itemtype="http://schema.org/SoftwareApplication" href="https://github.com/rajan2275/Python-Design-Patterns/blob/master/Model View Controller/MVC.py">
<span itemprop="name">Model View Controller</span></a> </td>
<td>Model View Controller</td>
<td>
Software architectural pattern that divides a given application into three interconnected parts. This is done to separate internal representations of information from the ways information is presented to, and accepted from, the user.The MVC design pattern decouples these major components allowing for efficient code reuse and parallel development.
</td>
</tr>
</tbody></table>
</body></html>