Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
18 views

Python Modules On PWF Linux: Name Description

asda

Uploaded by

rama
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Python Modules On PWF Linux: Name Description

asda

Uploaded by

rama
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python modules on PWF Linux

This is an non-exhaustive list of Python modules on PWF Linux. Most are standard modules for the
version of Python we run (2.6) and would be found on any similar Python installation. Those that have
been installed specially for PWF Linux are marked with an asterisk.
An alphabetic list of every module shipped with Python can be found at
http://docs.python.org/modindex.html
though the quality of the documentation varies wildly.
Please note that these modules are not in alphabetic order, but grouped thematically. This is not meant
to be a reference for you to look up what a module does (use the URL above for that) but rather a
quick skim read to see what there is.
Name

* Description

os

access to operating system-specific functions (see the course Python:


Operating System Access for some of the ways this module can be used)

sys

access to common system functionality

platform

access to underlying platforms identifying data

subprocess

call external commands and get access to their standard input, standard output,
standard error and return code (available in Python 2.4 and later; see the course
Python: Operating System Access for details)

tempfile

securely generate temporary files and directories (see the course Python:
Further Topics for details)

getopt

parsing command lines, with --verbosity=4, --verbose and -v style


options

math

access to the set of (floating point) mathematical functions defined by the C


standard

cmath

the complex equivalent of math

random

pseudo-random number generators for various distributions

numpy

* A set of functions and types suitable for numerical processing of arrays of


various sorts of numbers (integers, floats, complex). (See the course Python:
Interoperation with Fortran for examples of how this module might be used.)
For more details on NumPy, see:
http://numpy.scipy.org/
and
http://www.scipy.org/Documentation

scipy

* A scientific computing package built on top of NumPy. For more details on


SciPy, see:
http://www.scipy.org/Documentation

re

regular expressions (see the course Python: Regular Expressions for details)

csv

encoding and decoding of data in comma separated value format as commonly


used by spreadsheets and relational databases (see the course Python: Further
Topics for details)

base64

encoding and decoding for Base64 encoded data, a format commonly used to
transfer data files in email

binhex

encoding and decoding for files in binhex4 format, a format allowing


representation of Macintosh files in ASCII

uu

encoding and decoding files in uuencode format, allowing arbitrary binary data
to be transferred over ASCII-only connections

Name

* Description

pickle

Serializing and de-serializing Python object structures for storage.


(See the course Python: Checkpointing for details.)

cPickle

An implementation of the pickle module written in C rather than Python for


improved performance. (Both modules provide equivalent structures.) The
pickle module is better for testing and debugging; the cPickle module is
better at run time. (See the course Python: Checkpointing for details.)

Gnuplot

* Provides an interface to the gnuplot data and function plotting package,


allowing the use of gnuplot from within Python. (See the course Python:
Further Topics for examples of how this module might be used.) For more
details on this module, see:
http://gnuplot-py.sourceforge.net/

ploticus

* Provides an interface to the ploticus API, allowing the use of ploticus-related


functions from within Python. ploticus is an alternative to gnuplot for
producing plots, charts and graphics from data. (See the course Python:
Further Topics for examples of how this module might be used.) For more
details on this module, see:
http://www.srcc.lsu.edu/pyploticus.html

matplotlib

* A plotting library that allows MATLAB-style plotting in Python. (See the


course Python: Further Topics for examples of how this module might be
used.) For more details on this module, see:
http://matplotlib.sourceforge.net/

Image

* Main module of the Python Imaging Library (PIL). PIL provides fairly
powerful image processing capabilities and supports a large number of image
file formats. For more details on PIL, see:
http://www.pythonware.com/products/pil/index.htm

sqlite3

modules for interfacing to a simple SQL database built around local files
(shipped with Python 2.5 and later)

anydbm

generic interface to variants of the DBM database

bz2

interface for the bz2 compression library

gzip

interface for the zlib compression library for reading and writing gzip files

zlib

interface for the zlib compression library

zipfile

work with zip files

unittest

The Python unit testing framework.


(See the course Python: Unit Testing for details.)

You might also like