Home >Backend Development >Python Tutorial >What is a python framework? What?
The framework provides a basic architecture for developing Web programs, and the python framework is a framework written in the python language. The python frameworks include: 1. Django; 2. Flask; 3. Scrapy; 4. Tornado; 5 , Web2py, etc.
The framework provides a basic architecture for developing Web programs. The Python development framework puts Python Web program development on the assembly line. This article will introduce you to several Python frameworks, and friends in need can learn about them.
The Python development framework helps promote rapid software development, which saves time, helps create more stable programs, and reduces the developer's repetitive coding effort.
These frameworks also help beginners create stable programs by ensuring correct database operations and programming only at the presentation layer.
A development framework allows you to spend more time creating real Web programs instead of writing repetitive code.
Six Python development frameworks:
Recommended one: Django
Django should be the most famous Python framework, GAE and even Erlang have frameworks It affects. Django is taking a big and comprehensive direction. It is most famous for its fully automated management backend: just use the ORM and make simple object definitions, and it can automatically generate a database structure and a full-featured management backend.
Recommendation 2: Flask
Flask is a lightweight web application framework written in Python. Based on Werkzeug WSGI toolbox and Jinja2 template engine. Flask is also called a "microframework" because it uses a simple core and uses extensions to add additional functionality. Flask does not have a database or form validation tool used by default.
Recommendation 3: Scrapy
Scrapy is a fast, high-level screen scraping and web scraping framework developed in Python for scraping the web site and extract structured data from pages. Scrapy is widely used and can be used for data mining, monitoring and automated testing.
Recommendation 4: Tornado
Tornado is an open source version of web server software. There is a clear difference between Tornado and today's mainstream web server frameworks (including most Python frameworks): it is a non-blocking server and quite fast.
Recommendation 5: Web2py
web2py is a full-featured Web application framework provided for the Python language. It is designed to develop Web applications agilely and quickly, with fast, safe and Portable database-driven application, compatible with Google App Engine.
Recommendation Six: Weppy
Weppy feels like the middle mark between the minimalist style of Flask and the completeness of Django. While developing Weppy applications has the directness of Flash, Weppy has many features found in Django, such as data layer and authentication. Therefore, Weppy is suitable for applications ranging from extremely simple to moderately complex.
The above is the detailed content of What is a python framework? What?. For more information, please follow other related articles on the PHP Chinese website!