The Standard Python Library: New Modules in Python 2.3

[book home] [python 2.1] [python 2.2] [python 2.3] [python 2.4] [python 2.5]

bsddb (package)

(Optional) Improved BSD database interface.

bsddb.db
bsddb.dbobj
bsddb.dbrecio
bsddb.dbshelve
bsddb.dbtables
bsddb.dbutils
 
bz2

BZ2 compression. [more (dead link)]

import bz2
data = bz2.compress(text)
text = bz2.decompress(data)
file = bz2.BZFile(filename, "r")
text = file.read()
csv

Tools to read comma-separated files (or variations thereof). [more (dead link)]

datetime

Improved date/time types. [more (dead link)]

distutils.command.register

Register module in the Python package index (PyPI). This command plugin adds the register command to distutil scripts. [more (dead link)]

distutils.debug
distutils.emxccompiler
distutils.log
 
dospath (removed)

(Removed in 2.3) os.path support for MS-DOS.

DocXMLRPCServer

A set of classes for creating self-documenting XML-RPC servers. This module extends the SimpleXMLRPCServer classes with versions that allows the user to access API documentation via an ordinary web browser. The module uses pydoc to create HTML documentation on the fly.

dummy_thread
dummy_threading

Helpers to make it easier to write code that use threads where supported, but still runs on Python versions without thread support. The dummy modules simply run the threads sequentially. [more (dead link)]

encodings.idna

IDNA codec. This codec can be used to convert between Unicode strings and non-ASCII domain names, encoded as IDNA strings. [more (dead link)]

encodings.koi8_u

KOI8-U (Ukranian) codec for Unicode. [more (dead link)]

encodings.palmos

PalmOS 3.5 codec for Unicode. [more (dead link)]

encodings.punycode

Punycode IDNA codec. This is used to encode individual labels in an IDNA domain name (see encodings.idna). [more (dead link)]

encodings.string_escape

Python string escape codec. This encoding replaces non-printable characters with Python-style string escapes. [more (dead link)]

heapq

Heap queue (priority queue) helpers. [more (dead link)]

hotshot.stones

Helper to run the pystone benchmark under the Hotshot profiler.

idlelib (package)

Support library for the IDLE development environment.

knee (removed)

(Removed in 2.3). Package import demo.

itertools

Tools to work with iterators and lazy sequences. [more (dead link)]

logging (package)

Tools for structured logging.

logging.config
logging.handlers
 
modulefinder

Tools to find what modules a given Python program uses, without actually running the program.

olddifflib

Old version of difflib (?)

opcode

Opcodes used by the CPython interpreter.

optparse

Improved command-line option parsing library.

os2emxpath

os.path support for OS/2 EMX.

pickletools

Tools to analyze and disassemble pickles.

pkgutil

Tools to extend the module search path for a given package.

platform

Tools to determine as much information about the underlying platform as possible (operating system type and version, distribution, hardware architecture, etc). May run external processes as part of the analysis.

sets

A set datatype, based on dictionaries. Supports the usual set operations (intersection, union, membership tests, etc).

stringprep

Tools and tables for normalization and manipulation of Unicode strings. Used by the idna and punycode codecs.

tarfile

Tools to read and create TAR files.

textwrap

Tools to wrap paragraphs of text.

timeit

Benchmark tool.

trace

Tools to trace execution of a function or program.

xml.dom.expatbuilder
xml.dom.minicompat
xml.dom.NodeFilter
xml.dom.xmlbuilder
 
zipimport

ZIP archive importer.

 

A Django site. rendered by a django application. hosted by webfaction.