Common Python packages

Source: Internet
Author: User
From: http://fsldn.blog.163.com/blog/static/4546432009012111714900/

  • WxPython

If you are a windows programmer and use MFC or WIN32API to develop the interface program, enter
The best GUI choice in Python is wxPython. It is the Python Bind of wxWidgets, and
Development of perfect synchronization, the most important thing is that its message mechanism is quite similar to that of MFC, the previous experience in MFC can be applied to wxPython with slight changes. In WIN32
During development, the most annoying part must contain the WM_SIZE message. When the size of the Main Window changes, it is troublesome to keep the control layout in WIN32. This event wx
The solution is perfect. Its sizer concept allows me to easily maintain a perfect control layout in different window sizes. In addition, if you hate the doc-view model of MFC, wx
You can also make a new choice. If you like the doc-view model very much, you can still easily implement it in wx, and the previous ideas can still be used here.

WxPython has two packages: PythonCard and dabo. The former is wxPython
Limited encapsulation, does not support all features of wxPython, its goal is to make wxPython more Pythonic. Later than PythonCard
It should be a lot larger. Specifically, it should be a three-tier architecture C/S mode development framework. If you want to develop database-based applications (such as MIS and ERP) with dabo
It is a good choice. In addition, if you are used to RAD development environments such as VB, VFP, and Delphi, dabo is not much inferior to these expensive tools!

  • Py2exe

According to the evil windows thinking, if an application is not compiled into a. exe file
The file may not be "software", and py2exe serves your purpose. py script.. zip file, but you can also modify
The setup. py script packs all the scripts and dependent dll files into one exe, which seems to be the same as the programs compiled by VC and VB!

If your customer needs to use your application in windows, py2exe
Is an indispensable tool for you. I use it to package gadgets written by wxPython for game planning in the company.

  • Psyco

The execution efficiency of the script is somewhat unsatisfactory. Although optimization is not difficult, it is worth noting if there is a simple method that almost does not need to modify the source code. Psyco
The magic is that it only needs to call two lines of code at the entrance of the code, and the performance can be improved by 40% or more, which is truly immediate!

If your customer thinks your program is a little slow, don't rush to optimize the code. psyco may let him change his mind immediately. Psyco
The jit, which is called Python, has a lot of potential to be explored. If there is not much time to optimize the performance for you, please read its manual immediately. There are many ways to easily optimize the performance.

  • PIL

PIL is Python
In my opinion, the image processing database is as powerful as I don't have to talk about it. It can open dozens of image formats, common jpg/png/bmp
Also provides many image processing functions, such as enhancement and filtering algorithms. For more information, see my previous article "using Python for image processing" (http://blog.csdn.net/lanphaday/archive/2007/10/28/1852726.aspx) and computational image similarity (http://blog.csdn.net/lanphaday/archive/2008/04/24/2325027.aspx ).

  • MySQLdb

This is Python's support for the open-source Mysql database. The official website is http://sourceforge.net/projects/mysql-python. Supported
Mysql 3.23-5.1 is a full range of versions. The Python version must be 2.3-2.5. MySQLdb is the Python DB API-2.0
Is now very mature. The latest version is 1.2.2.

If you are engaged in server development, you should not deal with the database connection pool. In this case, you can use DBUtils or jonpy
Two open source libraries. DBUtils is a database connection pool, while jonpy includes CGI.
And database connection pool and other functions, please read the manual and select your own library.

  • Pyprocessing

GIL (Global interpreter lock) in Python interpreter makes Python
In the multi-core era, this scripting language that supports native threads cannot utilize multiple CPU cores for concurrent computing through multiple threads. Pyprocessing has not been removed
GIL, but a leader, tries to use multi-process methods to help Python get out of the predicament. The result is that pyprocessing is used to create the communication between processes.
The threading module is so simple and even easier. Pyprocessing not only can communicate with the pipeline through the local socket, but also can be encapsulated perfectly. Its Queue
The implementation is similar to the built-in Queue, but it is a Queue shared between processes!

Pyprocessing has been used as a built-in module in py2.6 and py3.0.
Pyprocessing project. If you use Python to develop server applications, especially those such as online games, pyprocessing
How can I ignore it!

**************************************** ***********
Common python modules

**************************************** ***********

Original address: http://kenneth.yculblog.com/post.2812457.html
From: cool Blog Author: kenth's Blog time: 2008-01-16

Adodb: database connection component recommended by our leaders

Bsddb3: berkeleydb connection component

Cheetah-1.0: I prefer this version of cheetah.

Cherrypy: A web framework

Ctypes: used to call the dynamic link library

Dbutils: Database Connection Pool

Django: A web framework

Docutils: used to write documents

Dpkt: unpackage and group package

Mysqldb: connection to the mysql database

Py2exe: used to generate windows executable files

Pylons: web framework recommended by our leaders

Pysqlite2: connection component of sqlite

Pythonwin: python windows Extension

Setuptools: a python package management mechanism for peak

Sqlalchemy: Database Connection Pool

Sqlobject: Database Connection Pool

Twisted: a network programming framework

Wxpython-2.6: the gui programming framework is not up to date because it requires the same version as linux

Pypcap: Packet Capture

Python-dnet: other devices that Control Network Security

Pyevent: python event support

Pydot: graph, graphiz

Sendpkt: python package

Simplejson: json support

Dpkt: raw-scoket Network Programming

Cx-oracle: a good connection to oracle

Machize: Commonly Used crawlers to connect to websites

Pil: Image Processing toolkit reportlab for pdf file.

Pyqt4 for gui

Feedparser: rss Parsing

Chardet: encoding Detection

Scons: the project construction tool. It is very convenient to use the template.

Scapy: Network Package Build Analysis Framework, programmable wireshark, interested google "silver needle in the skype"

Pefile: windows pe file parser

Winpdb: It depends on your own program or when you cannot understand it in other libraries.

Pywmi: saves a lot of effort

Pylint: cultivate good coding habits

 

 

The following is intended for use without comments:

Pygccxml

Pyparsing

Pymacs

Idapython

Paimei

Pysvn

Pylucene

Wikidpad

1. python PDF File Operation

2. Connect python connector to postgresql Engine

3. python. net2.0 Qu Yun table

Http://pybrary.net/

------------------

1. python image libary

2. tkinter libary

Http://www.pythonware.com/index.htm

------------------

1. karrigell

Http://karrigell.sourceforge.net/

------------------

1. the standard python libary

Http://effbot.org/librarybook/

------------------

1. python libary for pdf operations

Http://reportlab.org/

------------------

1. python curl

Libary http://pycurl.sourceforge.net/

------------------

1. urlgrabber

Http://linux.duke.edu/projects/urlgrabber/

------------------

1. mysql-python

Http://mysql-python.sourceforge.net/

------------------

1. pyscripter

2. python for delphi

Http://mmm-experts.com/products.aspx

------------------

1. python cookbook

Http://aspn.activestate.com/aspn/python/cookbook/

------------------

1. pygame

Http://www.pygame.org/news.html

------------------

1. pymedia

Http://www.pymedia.org

------------------

1. pydbf

Http://dbfpy.sourceforge.net/

------------------

1. pexpect

Http://pexpect.sourceforge.net/

------------------

1. dabo desktop application frameworks

Http://dabodev.com/

------------------

1. pyserial

Http://pyserial.sourceforge.net/

Http://wiki.woodpecker.org.cn/moin/pyserial

------------------

1. python's doc

Http://wiki.woodpecker.org.cn/moin/pythonzhdoc

------------------

1. the visual module of vpython (3d)

Http://vpython.org/index.html.

 

 

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.