Python Module Index

_ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | w | x | z
 
_
__builtin__ The module that provides the built-in namespace.
__future__ Future statement definitions
__main__ The environment where the top-level script is run.
 
a
abc Abstract base classes according to PEP 3119.
aifc Read and write audio files in AIFF or AIFC format.
anydbm Generic interface to DBM-style database modules.
argparse Command-line option and argument parsing library.
array Space efficient arrays of uniformly typed numeric values.
ast Abstract Syntax Tree classes and manipulation.
asynchat Support for asynchronous command/response protocols.
asyncore A base class for developing asynchronous socket handling services.
atexit Register and execute cleanup functions.
 
b
base64 RFC 3548: Base16, Base32, Base64 Data Encodings
BaseHTTPServer Basic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
BastionDeprecated: Providing restricted access to objects.
bdb Debugger framework.
binascii Tools for converting between binary and various ASCII-encoded binary representations.
binhex Encode and decode files in binhex4 format.
bisect Array bisection algorithms for binary searching.
bs4
bz2 Interface to compression and decompression routines compatible with bzip2.
 
c
calendar Functions for working with calendars, including some emulation of the Unix cal program.
cgi Helpers for running Python scripts via the Common Gateway Interface.
CGIHTTPServer This module provides a request handler for HTTP servers which can run CGI scripts.
cgitb Configurable traceback handler for CGI scripts.
chunk Module to read IFF chunks.
clipboard Provides copy and paste integration on iOS
cmath Mathematical functions for complex numbers.
cmd Build line-oriented command interpreters.
code Facilities to implement read-eval-print loops.
codecs Encode and decode data and streams.
codeop Compile (possibly incomplete) Python code.
collections High-performance datatypes
colorsys Conversion functions between RGB and other color systems.
commands (Unix)Deprecated: Utility functions for running external commands.
compileall Tools for byte-compiling all Python source files in a directory tree.
compilerDeprecated: Python code compiler written in Python.
    compiler.ast
    compiler.visitor
ConfigParser Configuration file parser.
console Console output on iOS
contacts Access the iOS Contacts Database
contextlib Utilities for with-statement contexts.
Cookie Support for HTTP state management (cookies).
cookielib Classes for automatic handling of HTTP cookies.
copy Shallow and deep copy operations.
copy_reg Register pickle support functions.
cPickle Faster version of pickle, but not subclassable.
cProfile Python profiler
crypt (Unix) The crypt() function used to check Unix passwords.
cStringIO Faster version of StringIO, but not subclassable.
csv Write and read tabular data to and from delimited files.
 
d
datetime Basic date and time types.
decimal Implementation of the General Decimal Arithmetic Specification.
dialogs
difflib Helpers for computing differences between objects.
dircacheDeprecated: Return directory listing, with cache mechanism.
dis Disassembler for Python bytecode.
doctest Test pieces of code within docstrings.
DocXMLRPCServer Self-documenting XML-RPC server implementation.
dropbox
    dropbox.client
    dropbox.rest
    dropbox.session
dumbdbm Portable implementation of the simple DBM interface.
dummy_thread Drop-in replacement for the thread module.
dummy_threading Drop-in replacement for the threading module.
 
e
editor Scripting Editorial's text editor
email Package supporting the parsing, manipulating, and generating email messages, including MIME documents.
    email.charset Character Sets
    email.encoders Encoders for email message payloads.
    email.errors The exception classes used by the email package.
    email.generator Generate flat text email messages from a message structure.
    email.header Representing non-ASCII headers
    email.iterators Iterate over a message object tree.
    email.message The base class representing email messages.
    email.mime Build MIME messages.
    email.parser Parse flat text email messages to produce a message object structure.
    email.utils Miscellaneous email package utilities.
encodings
    encodings.idna Internationalized Domain Names implementation
    encodings.utf_8_sig UTF-8 codec with BOM signature
errno Standard errno system symbols.
evernote The Evernote Python SDK
exceptions Standard exception classes.
 
f
fcntl (Unix) The fcntl() and ioctl() system calls.
feedparser
filecmp Compare files efficiently.
fileinput Loop over standard input or a list of files.
fnmatch Unix shell style filename pattern matching.
formatter Generic output formatter and device interface.
fpformatDeprecated: General floating point formatting functions.
fractions Rational numbers.
ftplib FTP protocol client (requires sockets).
functools Higher-order functions and operations on callable objects.
 
g
gc Interface to the cycle-detecting garbage collector.
getopt Portable parser for command line options; support both short and long option names.
getpass Portable reading of passwords and retrieval of the userid.
gettext Multilingual internationalization services.
glob Unix shell style pathname pattern expansion.
gzip Interfaces for gzip compression and decompression using file objects.
 
h
hashlib Secure hash and message digest algorithms.
heapq Heap queue algorithm (a.k.a. priority queue).
hmac Keyed-Hashing for Message Authentication (HMAC) implementation for Python.
htmlentitydefs Definitions of HTML general entities.
htmllibDeprecated: A parser for HTML documents.
HTMLParser A simple parser that can handle HTML and XHTML.
httplib HTTP and HTTPS protocol client (requires sockets).
 
i
Image
ImageChops
ImageColor
ImageDraw
ImageEnhance
ImageFile
ImageFilter
ImageFont
ImageMath
ImageOps
ImagePath
imaplib IMAP4 protocol client (requires sockets).
imghdr Determine the type of image contained in a file or byte stream.
imp Access the implementation of the import statement.
importlib Convenience wrappers for __import__
imputilDeprecated: Manage and augment the import process.
inspect Extract information and source code from live objects.
io Core tools for working with streams.
itertools Functions creating iterators for efficient looping.
 
j
json Encode and decode the JSON format.
 
k
keychain Persistent storage for passwords and other sensitive information
keyword Test whether a string is a keyword in Python.
 
l
lib2to3 the 2to3 library
linecache This module provides random access to individual lines from text files.
linguistictagger
locale Internationalization services.
location Provides geo-location services on iOS
logging Flexible event logging system for applications.
    logging.config Configuration of the logging module.
    logging.handlers Handlers for the logging module.
 
m
macpath Mac OS 9 path manipulation functions.
mailbox Manipulate mailboxes in various formats
mailcap Mailcap file handling.
markdown
markdown2 A fast and complete implementation of Markdown in Python
marshal Convert Python objects to streams of bytes and back (with different constraints).
math Mathematical functions (sin() etc.).
md5Deprecated: RSA's MD5 message digest algorithm.
mhlibDeprecated: Manipulate MH mailboxes from Python.
mimetoolsDeprecated: Tools for parsing MIME-style message bodies.
mimetypes Mapping of filename extensions to MIME types.
MimeWriterDeprecated: Write MIME format files.
mimifyDeprecated: Mimification and unmimification of mail messages.
modulefinder Find modules used by a script.
motion Provides motion sensor data on iOS
multifileDeprecated: Support for reading files which contain distinct parts, such as some MIME data.
mutexDeprecated: Lock and queue for mutual exclusion.
 
n
netrc Loading of .netrc files.
newDeprecated: Interface to the creation of runtime implementation objects.
nntplib NNTP protocol client (requires sockets).
notification Integration with Notification Center on iOS
numbers Numeric abstract base classes (Complex, Real, Integral, etc.).
 
o
operator Functions corresponding to the standard operators.
optparseDeprecated: Command-line option parsing library.
os Miscellaneous operating system interfaces.
    os.path Operations on pathnames.
 
p
paramiko
parser Access parse trees for Python source code.
pdb The Python debugger for interactive interpreters.
photos Provides access to the camera roll on iOS
pickle Convert Python objects to streams of bytes and back.
pickletools Contains extensive comments about the pickle protocols and pickle-machine opcodes, as well as some useful functions.
PIL
pipes (Unix) A Python interface to Unix shell pipelines.
pkgutil Utilities for the import system.
platform Retrieves as much platform identifying data as possible.
plistlib Generate and parse Mac OS X plist files.
popen2Deprecated: Subprocesses with accessible standard I/O streams.
poplib POP3 protocol client (requires sockets).
posix (Unix) The most common POSIX system calls (normally used via module os).
posixfile (Unix)Deprecated: A file-like object with support for locking.
pprint Data pretty printer.
profile Python source profiler.
pstats Statistics object for use with the profiler.
pwd (Unix) The password database (getpwnam() and friends).
py_compile Generate byte-code files from Python source files.
pyclbr Supports information extraction for a Python class browser.
pydoc Documentation generator and online help system.
 
q
qrcode
Queue A synchronized queue class.
quopri Encode and decode files using the MIME quoted-printable encoding.
 
r
random Generate pseudo-random numbers with various common distributions.
re Regular expression operations.
reminders
repr Alternate repr() implementation with size limits.
requests
rexecDeprecated: Basic restricted execution framework.
rfc822Deprecated: Parse 2822 style mail messages.
rlcompleter Python identifier completion, suitable for the GNU readline library.
robotparser Loads a robots.txt file and answers questions about fetchability of other URLs.
runpy Locate and run Python modules without importing them first.
 
s
sched General purpose event scheduler.
select Wait for I/O completion on multiple streams.
setsDeprecated: Implementation of sets of unique elements.
sgmllibDeprecated: Only as much of an SGML parser as needed to parse HTML.
shaDeprecated: NIST's secure hash algorithm, SHA.
shelve Python object persistence.
shlex Simple lexical analysis for Unix shell-like languages.
shutil High-level file operations, including copying.
signal Set handlers for asynchronous events.
SimpleHTTPServer This module provides a basic request handler for HTTP servers.
SimpleXMLRPCServer Basic XML-RPC server implementation.
smtpd A SMTP server implementation in Python.
smtplib SMTP protocol client (requires sockets).
sndhdr Determine type of a sound file.
socket Low-level networking interface.
SocketServer A framework for network servers.
sound Simple sound creation
speech
sqlite3 A DB-API 2.0 implementation using SQLite 3.x.
ssl TLS/SSL wrapper for socket objects
stat Utilities for interpreting the results of os.stat(), os.lstat() and os.fstat().
statvfsDeprecated: Constants for interpreting the result of os.statvfs().
string Common string operations.
StringIO Read and write strings as if they were files.
stringprepDeprecated: String preparation, as per RFC 3453
struct Interpret strings as packed binary data.
subprocess Subprocess management.
sunau Provide an interface to the Sun AU sound format.
symbol Constants representing internal nodes of the parse tree.
symtable Interface to the compiler's internal symbol tables.
sys Access system-specific parameters and functions.
sysconfig Python's configuration information
 
t
tabnanny Tool for detecting white space related problems in Python source files in a directory tree.
tarfile Read and write tar-format archive files.
telnetlib Telnet client class.
tempfile Generate temporary files and directories.
test Regression tests package containing the testing suite for Python.
    test.test_support Support for Python regression tests.
textwrap Text wrapping and filling
thread Create multiple threads of control within one interpreter.
threading Higher-level threading interface.
time Time access and conversions.
timeit Measure the execution time of small code snippets.
token Constants representing terminal nodes of the parse tree.
tokenize Lexical scanner for Python source code.
trace Trace or track Python statement execution.
traceback Print or retrieve a stack traceback.
twitter
types Names for built-in types.
 
u
ui Native GUI for iOS
unicodedata Access the Unicode Database.
unittest Unit testing framework for Python.
urllib Open an arbitrary network resource by URL (requires sockets).
urllib2 Next generation URL opening library.
urlparse Parse URLs into or assemble them from components.
userDeprecated: A standard way to reference user-specific modules.
UserDict Class wrapper for dictionary objects.
UserList Class wrapper for list objects.
UserString Class wrapper for string objects.
uu Encode and decode files in uuencode format.
uuid UUID objects (universally unique identifiers) according to RFC 4122
 
w
warnings Issue warning messages and control their disposition.
wave Provide an interface to the WAV sound format.
weakref Support for weak references and weak dictionaries.
webbrowser Easy-to-use controller for Web browsers.
whichdb Guess which DBM-style module created a given database.
workflow Python Integration for Editorial Workflows
wsgiref WSGI Utilities and Reference Implementation.
    wsgiref.handlers WSGI server/gateway base classes.
    wsgiref.headers WSGI response header tools.
    wsgiref.simple_server A simple WSGI HTTP server.
    wsgiref.util WSGI environment utilities.
    wsgiref.validate WSGI conformance checker.
 
x
xdrlib Encoders and decoders for the External Data Representation (XDR).
xml Package containing XML processing modules
    xml.dom Document Object Model API for Python.
    xml.dom.minidom Minimal Document Object Model (DOM) implementation.
    xml.dom.pulldom Support for building partial DOM trees from SAX events.
    xml.etree.ElementTree Implementation of the ElementTree API.
    xml.parsers.expat An interface to the Expat non-validating XML parser.
    xml.sax Package containing SAX2 base classes and convenience functions.
    xml.sax.handler Base classes for SAX event handlers.
    xml.sax.saxutils Convenience functions and classes for use with SAX.
    xml.sax.xmlreader Interface which SAX-compliant XML parsers must implement.
xmlrpclib XML-RPC client access.
xmltodict Makes working with XML feel like you are working with JSON
 
z
zipfile Read and write ZIP-format archive files.
zipimport support for importing Python modules from ZIP archives.
zlib Low-level interface to compression and decompression routines compatible with gzip.