Git Product home page Git Product logo

example-of-mvc-pattern-on-pure-python-2014's Introduction

Run simple WSGI server example

python server.py

Run MVC example

python serverMVC.py

MVC v2 for lovers of esthetics

Screenshot

Coupling

Components coupling

Если компонент A сильно связан с B, то это можно трактовать следующим образом: при изменении объекта B, придется изменить код объекта A.

Естественно, чем меньше связность компонентов - тем проще вносить изменения в проект.

Low Coupling.

How to use

> python serverMVCv2.py  # Run server
Run: http://localhost:8051/
127.0.0.1 - - [18/Mar/2014 01:13:19] "GET /text HTTP/1.1" 200 538
127.0.0.1 - - [18/Mar/2014 01:13:34] "GET /text?title=foo HTTP/1.1" 200 580
127.0.0.1 - - [18/Mar/2014 01:21:25] "GET /text/add?title=MVC&content=%3Cb%3EMVC%3C%2Fb%3E+%3D+Model+View+Controller HTTP/1.1" 200 52
127.0.0.1 - - [18/Mar/2014 01:13:47] "GET /text?title=MVC HTTP/1.1" 200 579

> pyhton appMVCv2.py       # Run doctests

example-of-mvc-pattern-on-pure-python-2014's People

Contributors

pahaz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.