How to efficiently complete the work in the Python Library

Source: Internet
Author: User
Tags gtk ftp client

The Library plays a major role in the practical application of python. What role does the Python library play in actual operations? The following articles will provide relevant answers to these questions. If you are interested, you can click the following articles to view them.

Python Library

There are a large number of excellent libraries in python that can be directly called to efficiently complete different requirements. Here are some common libraries:

Tkinter ---- Python's default GUI interface module.

The Tkinter Library provides interfaces for Tk APIs, which belong to the GUI tool group of Tcl/Tk.

Tcl/Tk is a writing and graphics device developed by John Ousterhout. The Tk toolkit was developed with Tcl to simplify the design process of user interfaces. The Tk toolkit consists of many different widgets, such as a button and a scroll bar. With these widgets provided by Tk, we can quickly develop the GUI. Tkinter is cross-platform and can be used on various platforms.

Python Imaging Library (PIL)-python provides powerful graphic processing capabilities and supports a wide range of graphic file formats. This Library can convert, print, and display graphic formats. It can also process some graphic effects, such as Zoom-in, zoom-out, and rotation. It is a powerful tool for Python users to perform image processing.

Pmw (Python megawidgets) Python super GUI component set-an advanced GUI component built using the Tkinter module in python. Each Pmw combines one or more Tkinter components, to achieve more useful and complex functions. PyXML-a toolkit for parsing and processing XML documents using Python. The 4DOM in the package is fully compatible with W3C DOM specifications. It contains the following content:

Xmlproc: a compliant XML parser.

Expat: a fast, non-verified XML parser. PyHtml PySGML is similar to others.

PyGame-A module used for multimedia development and game software development.

PyOpenGL-the module encapsulates the "OpenGL Application Programming Interface", through which python programmers can integrate 2D and 3D graphics in the program.

NumPy, NumArray, and SAGE ---- NumArray are extensions related to the Python library. They are mainly used to process fixed arrays of any dimension. In short, they are a matrix library. Its low-level code is written in C, so the speed advantage is obvious. NumPy is the successor of Numarray, used to replace NumArray. SAGE is a mathematical software package based on NumPy and several other tools. It aims to replace Magma, Maple, Mathematica and Matlab.

MySQLdb module ---- used to connect to the MySQL database. The ZMySQLDA module for zope can be used to connect to the mysql database in zope.

PyGTK-GTK + Library Used for python GUI program development. GTK is the library used to implement GIMP and Gnome. With it, you can confidently try making your own Photoshop.

PyQt-the Qt development library for python. QT is the database that implements the KDE environment. It consists of a series of modules, including qt, qtcanvas, qtgl, qtnetwork, qtsql, qttable, qtui and qtxml, contains 300 classes and more than 5750 functions and methods. PyQt also supports a module called qtext, which contains a QScintilla library. This library is the Qt interface of the Scintillar editor class.

PyMedia-python module for multimedia operations. It is used for multimedia processing (wav, mp3, ogg, avi, divx, dvd, cdda etc ). It can be used on Windows and Linux platforms.

Psyco-a Python code accelerator that increases the speed of Python code execution to the same level as the compiling language.

Python-ldap-provides a set of object-oriented APIs to conveniently access the ldap directory service in python, which is based on OpenLDAP2.x.

Smtplib module-send an email.

Ftplib module ---- defines FTP classes and some methods for ftp programming on the client. We can use python to compile an ftp client program for downloading files or image sites.

The xmpppy module-The Jabber server adopts the developed XMPP protocol, and Google Talk is also an IM system using the XMPP protocol. In Python, an xmpppy module supports this protocol. That is to say, you can use this module to communicate with the Jabber server.

The above article introduces the Python library and related modules.

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.