Python Development WebService Series Tutorial Rest,web.py,eurasia,django

Source: Internet
Author: User
In the field of bioinformatics (bioinformatics), WebService is a very important data exchange technology, and the future will be more important. Currently, the webservice provided by EBI are available in soap and rest two ways, whether data services or compute services (computational task submissions).

1 Python + Soap/wsdl/uddi

The most common practice (personal view) is the use of Python ZSI2.0, Zsi also relies on Lib such as Soappy and PyXML.

The SOAP protocol is familiar to many people, there are many existing applications also use Java and other languages to develop the service side, and the client in addition to Java, the vast majority of scripting language can be competent.

The use of Python zsi can be referred to in this article on the IBM DW: Developing a WEB service using Python

2 Python + REST

The word rest is really popular at the moment, so how do you do the technology selection using Python as a rest development???

In fact, people who have touched the Python web should all know Django, a typical restful web framework!!!

So in actual development, how exactly do we choose?

(1 If you are not an architect and do not overdo the rest's resource-oriented philosophy and experience the specifics of the rest-style architecture, then choose the right web framework or Python Web server to suit your business needs and size, for example, Common Django, Web.py,cherrypy,zope,twisted,quixote,spyce,webware for Python ... Of course, there are many domestic frameworks.

(2 If you really want to experience the rest-style architecture and resource-oriented design, maybe you can choose to use web.py to achieve the goal;

Here is a blog post on using web.py to implement Restfull development: Getting RESTful with web.py, I believe there is a good reference value.

Here's a Chinese blog: Using Python to implement CRUD functionality rest Services

(3 You can choose Eurasia!!!) Address: http://code.google.com/p/eurasia/

Eurasia is a thing worth knowing, it is a server, it also contains a framework, and the main features are:

"Eurasia is a low-level Python WEB framework which follows the Tao

The EURASIA3 is designed to address an HTTP server that millions the number of long-connected users who are simultaneously online, or a regular WEB application server that processes tens of thousands of CGI requests per second.

Eurasia3 backwards compatible with Ajax (is Ajax a requirement for servers?), but she does not recommend that you use outdated AJAX patterns to devastate users and programmers, and she is trying to use interesting techniques such as Pushlet (Comet is Pushlet hype version) to change The development of the WEB.

Here the EURASIA3 is relative to Eurasia2 said, the two is not a matter oh!

Here are the documentation that can be learned and learned under: http://eurasia.googlecode.com/files/Eurasia-3.0.0a6.2-snapshot.tar.bz2

(4 other options.)

End:

In the technology selection, there are two prerequisites are important: 1 You fully understand the needs of your project, and you know what you want to make it, what size; 2 you have a better understanding of the technology and theory related to the project realization, the knowledge should be broad enough, and the main characteristics of the main schools should be clear.

After that, you may be able to make different plans to compare options! For IT project development, technology is mainly embodied in the implementation phase, but it completely affects the entire project life cycle! It is possible to improve the efficiency and quality of problem solving by choosing the appropriate theory and method to solve the problem.

  • 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.