Skip to content

pahaz/Example-of-MVC-pattern-on-pure-Python-2015

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pure python MVC design pattern example

Example of the MVC (Model View Controller) design pattern on the pure Python. Writen for the "Use Python in the Web" course of the IMKN (Institute Mathematics and Computer Science) at the UrFU (Ural Federal University) in 2015 by Pavel Blinov.

Old version: https://github.com/pahaz/Example-of-MVC-pattern-on-pure-Python-2014

  • WSGI and WebServer: wsgi.py, server.py
  • Model: model.py, manager.py
  • View: view.py
  • Controller: controller.py, router.py

coupling

                                              +---------------+  
 +-------------+          +------+            |   +-------+   |  
 | application |          | view | -------------> | model |   |  
 +-------------+          +------+            |   +-------+   |  
        |                     ^               |       ^       |  
        |                     |               |       |       |  
 +------v---------------------|---------+     |       |       |  
 |  +--------+         +------------+   |     |  +---------+  |  
 |  | router | ------> | controller | ---------> | manager |  |  
 |  +--------+         +------------+   |     |  +---------+  |  
 +--------------------------------------+     +---------------+  

A -> B -- the component A knows the interface of the component B

About

MVC EXAMPLE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •