Python's 6 large python libraries

Source: Internet
Author: User

Python programmers in the writing process of some libraries will have their own preferences, but there are a few are all Python programmers like the library, but also learn you are also in use, but you do not care, today Qian Feng on a few simple, perhaps you read after you will also arouse your resonance.

In programming, some minor setbacks can be as painful as big ones. No one wants to just make a window of the message or write it quickly to the database. As a result, almost all

Programmers are interested in solutions that can deal with these problems quickly and once and for all.


650) this.width=650; "src=" Http://img.mp.sohu.com/upload/20170629/0304876e3e5b456593d7a5c1781f5293_th.png "alt=" 0304876e3e5b456593d7a5c1781f5293_th.png "/>


The following 6 Python libraries can quickly address the immediate challenges and serve as a foundation for developing large projects.

Pyglet

Pyglet is a cross-platform framework written in a pure Python language for developing multimedia and window effects applications.

Why you need it: the functional modules required to develop a graphical interface from scratch are cumbersome, Pyglet provides a large number of ready-made modules, eliminating a lot of time: window functions, OpenGL effects, audio and video playback, key mouse processing, and image processing. (However, Pyglet does not provide UI widgets like buttons, toolbars, or menus.) )

There are four benefits to using arrow libraries, both long-term and short-term. First, it can perfectly replace the datetime module in Python, which means that you can still use similar. Now () and. UtcNow () These common function call forms. Second, it provides a way to meet common needs such as converting time zones. Thirdly, it provides "user-friendly" date/time information-that is, it can easily tell you that something happened "an hour ago" or "will take place after two hours". Four, it is easy to convert date/time information to local time.

All of the above modules are natively implemented under Windows, OS X, or Linux platforms and do not rely on external binary packages; It is written in the Pure Python language. Pyglet is released through the BSD protocol and can be used in any commercial and open source project.


650) this.width=650; "src=" Http://img.mp.sohu.com/upload/20170629/6cc3c17bde6744efb4ef194873ca0dfc_th.png "alt=" 6cc3c17bde6744efb4ef194873ca0dfc_th.png "/>


PeeWee

PeeWee is a small but very powerful library that supports ORM access to the database and native support for databases such as SQLite, MySQL, and PostgreSQL.

Why you need it: any application that needs to use external data frequently will use the database, but reading and writing data from the database through a temporary connection can be a lot of trouble.

PeeWee provides a secure, stable channel for accessing database resources. For Python programmers and database engineers, the Python classes provided by the library are handy to use. With the support of peewee, we can quickly and easily access the database, and later can expand to add more options, do not need to redesign. PeeWee also natively supports database transactions (transaction) and has many optional additional modules, providing features ranging from database connection pooling (connection pooling) to advanced field types like many-to-many (Many-to-many).


650) this.width=650; "src=" Http://img.mp.sohu.com/upload/20170629/751f2bfbb90b4a94b4f0cd49d8f731ca_th.png "alt=" 751f2bfbb90b4a94b4f0cd49d8f731ca_th.png "/>


Bottle

Bottle is a small, lightweight network development framework with fast speed.

Why you need it: if you just want to quickly create a RESTful API interface, or just want to do a simple application with the Web development framework, bottle can easily meet your requirements. It has all the features you'll need: routing, templates, access request and response data (request and response), support for multiple network servers, and advanced features such as WebSockets.

There is minimal work required to create an application, and bottle is designed with scalability in mind and can be accessed at any time if more advanced features are needed.

Say first three, the space is too big to send out, but also can not let a separate library independent into an article, so simply 33 points, do not mind ha. Qian Feng Education recently opened a Python class, you can go to the thousand-Feng test listen to see how quality.


This article is from the "Little Thousand" blog, please make sure to keep this source http://xiaoxiaoqian.blog.51cto.com/9235704/1943261

Python's 6 large python libraries

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.