Differences between revisions 77 and 78
Revision 77 as of 2010-03-04 16:15:27
Size: 11081
Revision 78 as of 2010-03-04 16:17:55
Size: 11034
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
=== Cryptography === == Cryptography ==
Line 12: Line 12:
=== Database === == Database ==
Line 16: Line 16:
=== Foreign Function Interface === == Foreign Function Interface ==
Line 18: Line 18:
=== Game Development === == Game Development ==
Line 21: Line 21:
=== GIS (Geographic Information System) ===
 * [[GIS/Web_services|GIS Web services]] - Packages to access to Google Maps, Yahoo! Maps and more information
=== GUI ===
== GIS (Geographic Information System) ==
 * [[GIS/Web_services|GIS Web services]] - Packages to access to Google Maps, Yahoo! Maps… and more information
== GUI ==
Line 30: Line 30:
==== Console ==== === Console ===
Line 33: Line 33:
=== HTML Forms === == HTML Forms ==
Line 38: Line 38:
=== HTML Parser === == HTML Parser ==
Line 43: Line 43:
=== ID3 Handling === == ID3 Handling ==
Line 49: Line 49:
=== Image Manipulation === == Image Manipulation ==
Line 51: Line 51:
=== Indexing and Searching === == Indexing and Searching ==
Line 53: Line 53:
=== Java === == Java ==
Line 55: Line 55:
=== Networking === == Networking ==
Line 60: Line 60:
=== Platform Specific === == Platform Specific ==
Line 63: Line 63:
==== Mac ==== === Mac ===
Line 66: Line 66:
==== Windows ==== === Windows ===
Line 69: Line 69:
=== Plotting === == Plotting ==
Line 78: Line 78:
=== RDF Processing === == RDF Processing ==
Line 80: Line 80:
=== Scientific === == Scientific ==
Line 86: Line 86:
=== Standard Library Enhancements === == Standard Library Enhancements ==
Line 88: Line 88:
=== Threading === == Threading ==
Line 91: Line 91:
=== Web Development === == Web Development ==
Line 96: Line 96:
=== Workflow === == Workflow ==
Line 99: Line 99:
=== XML Processing === == XML Processing ==

Useful Modules, Packages and Libraries

The intent of this page is to list some of the most commonly used Python modules, in the hope that it will provide useful recommendations for other programmers (especially beginners). Remember that in addition to the listings below, there are other directories of Python modules - see PublishingPythonModules for details. Another collection of library details can be found on the Libraries page.

Be warned that this list is subjective by its very nature - it is only intended as a helpful guide. It is not definitive in any way, nor should it discourage developers from developing their own modules.



Foreign Function Interface

  • CTypes - A package for calling the functions of dlls/shared libraries. Now included with Python 2.5 and up.

Game Development

GIS (Geographic Information System)

  • GIS Web services - Packages to access to Google Maps, Yahoo! Maps… and more information


  • PyGtk - Bindings for the cross-platform Gtk toolkit.

  • PyQt - Bindings for the cross-platform Qt framework.

  • TkInter - The traditional Python user interface toolkit.

  • WxPython - wxWidgets bindings for Python supporting PythonCard, Wax and other frameworks.

  • PyjamasDesktop - Bindings and a framework for the cross-platform webkit.

  • GUI Programming is, in many cases, a matter of taste. See a more extensive list on the GuiProgramming page.


HTML Forms

  • ClientForm - "ClientForm is a Python module for handling HTML forms on the client side, useful for parsing HTML forms, filling them in and returning the completed forms to the server. It developed from a port of Gisle Aas' Perl module HTML::Form, from the libwww-perl library, but the interface is not the same." - from the website.

  • FormEncode

  • lxml.html has support for dealing with forms in HTML documents

  • See also the WebProgramming and WebFrameworks pages.

HTML Parser

  • Beautiful Soup - HTML/XML parser designed for quick turnaround projects like screen-scraping, will accept bad markup.

  • mxTidy - HTML cleanup tool. This is a library version of the popular HTML Tidy command-line application which will convert HTML (even badly formatted) into e.g. XHTML.

  • lxml.html is a very fast, easy-to-use and versatile library for handling (and fixing up) HTML

  • See also PythonXml for related tools.

ID3 Handling

  • Mutagen - Mutagen is a Python module to handle audio metadata. It supports FLAC, M4A, Musepack, MP3, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, and WavPack audio files. All versions of ID3v2 are supported, and all standard ID3v2.4 frames are parsed. It can read Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg streams on an individual packet/page level.

  • ID3Reader - "Id3reader.py is a Python module that reads ID3 metadata tags in MP3 files. It can read ID3v1, ID3v2.2, ID3v2.3, or ID3v2.4 tags. It does not write tags at all" (from site). Used in ID3Writer

  • ID3Writer - Writes ID3 Tags for mp3s (both v1 and v2, as necessary). No Unicode support as of yet. Uses ID3Reader.

  • PyID3 - ""(Appears to be inactive)""Module for manipulating ID3 informational tags in MP3 audio files. Not as good as ID3Writer, but no issues w/ genre, unlike ID3Writer.

  • pytagger - tag reader and writer implemented purely in Python. Supports ID3v1, ID3v1.1, ID3v2.2, ID3v2.3 and ID3v2.4

Image Manipulation

Indexing and Searching



  • TwistedMatrix - Event-driven networking framework

  • RPyC - Transparent RPC/distributed-computing framework

  • PyRO - powerful OO RPC

  • HTTPLib2 - A comprehensive HTTP client library that supports many features left out of other HTTP libraries, like httplib on the standard library.

Platform Specific

  • Psyco - Psyco can speed up the execution of any Python code (x86 only).

  • PyInstaller - Packages Python programs into stand-alone executables, under Windows, Linux and Irix.


  • py2app - Creates stand-alone apps (like py2exe for Mac)

  • PyObjC - Bridge between the Python and Objective-C. Most important usage of this is writing Cocoa GUI applications on Mac OS X in pure Python


  • PyWin32 - Python extensions for Windows.

  • Py2exe - Converts python scripts into executable windows programs, able to run without requiring a python installation.


  • Chaco - Creates interactive plots

  • gnuplot.py - Based on gnuplot

  • Matplotlib - Production quality output in a wide variety of formats

  • PyX - Postscript and PDF output, (La)TeX integration

  • ReportLab includes a charting package

  • Veusz - Postscript output with a PyQt front end

The SciPy topical software page has a longer list.

RDF Processing

  • See RdfLibraries for a list of available RDF processing solutions.


  • Visual Python - Offers real-time 3D output, is easily usable by novice programmers, excellent for physics.

  • SciPy - Includes modules for graphics and plotting, optimization, integration, special functions, signal and image processing, genetic algorithms, ODE solvers, and others.

  • Python Bindings for R - R is a well known, open source (GPL 2) statistical package. RPy has two versions. Version 2 is still in development but is already usable.

  • numpy

  • PyIMSL is a collection of Python wrappers to the mathematical and statistical algorithms in the IMSL C Numerical Library. Developers can use Python, PyIMSL and the IMSL C Numerical Library for rapid prototyping. PyIMSL Studio is a complete packaged, supported and documented development environment designed for deploying mathematics and statistics prototype models into production applications. PyIMSL Studio includes the PyIMSL wrappers, the IMSL C Numerical Library, a Python distribution and a selection of open source python modules useful for prototype analytical development. PyIMSL Studio is available for download at no charge for non-commercial use or for commercial evaluation.

Standard Library Enhancements

  • Python Path - Wraps the functionality of the os.path module and provides something more convenient.


  • ThreadPool - Intuitive approach to threads, well-explained.

  • See the ParallelProcessing page for other multiprocessing or parallel processing approaches.

Web Development

  • Django - High-level Python Web framework

  • TurboGears - Rapid web development megaframework.

  • Pylons - A lightweight Web framework emphasizing flexibility and rapid development.

  • See a more complete list of topics on the WebProgramming page and frameworks on the WebFrameworks page.


  • openflow - A workflow engine for Zope 2.

  • Goflow - A workflow engine for Django, with same design as openflow.

XML Processing

  • ElementTree - The Element type is a simple but flexible container object, designed to store hierarchical data structures, such as simplified XML infosets, in memory. --Note: Python 2.5 and up has ElementTree in the Standard Library--

  • lxml is a very fast, easy-to-use and versatile library for XML handling that is mostly compatible with but much more feature-rich than ElementTree

  • Amara - Amara provides tools you can trust to conform with XML standards without losing the familiar Python feel. (see also the 1.x version)

  • PythonXml provides a list of available XML processing solutions.

Editorial Notes

Please avoid listing modules where...

  • You are one of the developers (and you just want to promote your work somewhere).
  • The modules in question do not have widespread approval or usage.

If you do want to make people aware of a module, package or library (perhaps your own), consider submitting it to one or more of the directories mentioned in PublishingPythonModules, perhaps also adding it to the topic-specific part of this site (eg. WebProgramming, GuiProgramming).

Do list modules that:

  • Get recommended often in the Tutor or comp.lang.python lists

Please provide a short description for each module. Try to put each module in the category that matches its "main" audience, since a module might fall into a number of categories.

UsefulModules (last edited 2021-09-04 03:08:16 by HorstJENS)

Unable to edit the page? See the FrontPage for instructions.