1.Pyglet
What: 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.) )
All of the above modules are natively implemented on Windows, OSX, or Linux platforms and do not rely on external binaries; 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. If you want to learn Python can come to this group, 472, 309, 261, there is a large number of learning materials can be downloaded.
2.Peewee
What: 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 used to
Heart should also launch. 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 supports database transactions natively
(transaction), and there are many optional additional modules that are available from the database connection pool (connection
Pooling) to features like many-to-many (Many-to-many) advanced field types.
If you want to learn Python can come to this group, 472, 309, 261, there is a large number of learning materials can be downloaded.
3.Bottle
What: Bottle is a small, lightweight network development framework that is fast and fast.
Why need it: if you just want to quickly create a restful
API interface, or just want to use the network development framework to do a simple application, bottle can easily meet your requirements. It has all the features you'll need: routing, templates, access requests and responses
Information (Request and response data), support for a variety of 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.
4.Invoke
What: Simply put, Invoke lets you easily perform system administration tasks with a Python library.
Why you need it:
Who doesn't want a "clean, advanced interface that can run shell commands, define and categorize tasks?" Using Python instead of a generic shell script, and performing the corresponding task, is completely
Reasonable. Invoke provides a solution to perform common command-line tasks and manage them. For invoke, each management task is like a Python function, which can be based on an excellent
More complex tasks are designed by Accor.
Note that invoke is still in preview, and if you want to use a stable tool (even if you are no longer actively developing it), you can consider the predecessor of Invoke--fabric.
5.Splinter
What: Splinter is a python library for automated test network applications.
Why you need it: As you know, there's nothing more boring than automated Web application testing. With Splinter, you can automate everything from opening a browser, entering a URL, filling out a form, clicking a button, and more.
The specific browser needs to use the appropriate drive (drivers), but fortunately it has its own chrome and Firefox drive. In addition, splinter can also remotely control the browser on other machines via selenium remote. You can even manually execute JavaScript code in the target browser.
Splinter will be a useful tool if you want to know the specifics of a browser when browsing a specific website. If you want to know how to interact with your Web site without relying on a browser, you can view twill. (Translator: Twill is a scripting language that enables users to browse the network through the command line.) )
6.Arrow
What: Arrow This library is better able to handle the date and time in Python (data/time).
Why you need it: deal with time zones, date conversions, different date formats, and other date-related things, enough to give you a headache for a day and a half. If you use Python to bring the modules from the standard library, then it is estimated that you have a headache for two days.
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.