Start the export source operation using the command line tool in Python Web

Source: Internet
Author: User
Tags web2py

If you are interested in a computer language such as Python Web, you can use the following articles to have a better understanding of Python Web. I hope you will gain some benefits after reading our articles. The following documents describe the relevant steps in practical application.

The Python Web development framework UliWeb is initiated and created by the Python developer Limodou of the woodpecker community. After the project is started, many Python developers are interested and added. Limodou wrote:

Uliweb is a new Python Web Framework. The reason why Python Web is generated is that the existing Framework is somewhat unsatisfactory, in many cases, these dissatisfaction affects Web development more or less. Therefore, after learning many frameworks, I decided to develop a new framework, I hope that we can combine the advantages of other frameworks as much as possible, and make the new framework as simple as possible, easy to use and use.

However, this framework is currently mainly implemented by one person and is in the spare time, so the progress is relatively slow.

  • Python for document acquisition Solution
  • Detailed introduction to the IDLE functions in the Python Environment
  • Python pylint
  • A detailed introduction to the implementation scheme of the daemon of Python Processes
  • Introduction to Python functions that are more efficient than C

Uliweb is open source code according to the GPL v2 protocol. Uliweb is not a framework from the beginning. It uses some mature libraries, such as Werkzeug, which is used for command line, URL ing, Debug, and other core processing; webob, which is used to generate and process requests and response objects, and SqlAlchemy, a powerful ORM library. In development, Uliweb also draws on the Template module like web2py, some design ideas and achievements of Django.

Limodou introduces the features of the Python Web framework.:

Uliweb uses the Django-like MVT model. The entire project will be composed of several relatively independent apps, each of which will have its own configuration file, templates directory, and static directory. The URL can be automatically mapped or manually mapped. The Python code can be directly embedded in the template, but you don't need to worry about code reduction. You just need to add the pass statement before the block ends.

You can use the underlying SQLAlchemy module to process databases using ORM. Supports i18n processing in codes and templates. Uliweb also transplanted the plug-in mechanism from Ulipad to easily add special processing to the framework. You can use the provided command line tool to perform operations such as starting the development server and exporting the source code.

Currently, Uliweb can be deployed in GAE, mod_wsgi, fastcgi, scgi, cgi, and other environments. In addition, the Uliweb framework contains many proprietary innovations, such as generating HTML code and performing Form processing for verification of uploaded data, including i18n processing of templates and pages, framework processing code, transplanted from Ulipad and transformed the plug-in mechanism.

It is worth mentioning that the Uliweb framework will develop its own ORM mechanism Uliorm. Uliorm is encapsulated on the basis of SqlAlchemy, And the datastore code in GAE is also referenced. When talking about how to design your own ORM framework, Limodou answers the following question:

After comparing several Python Web modules, it is not satisfactory. I like Django's ORM, but it is not easy to use independently and is too closely bound with its Admin Function. SQLAlchemy has several ORM ing methods, but it does not meet the automation requirements of Uliweb. I don't like other SQLObject.

Web2py cannot be transplanted, and its functions are relatively weak. Storm is LGPL, which is inconvenient to be used once modified. There are others. Therefore, based on SQLAlchemy, I am developing a new Uliorm. On the one hand, I will try it, and on the other hand, I will study how to bind it to the framework, so that we can more easily provide Uliweb services.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.