blob: e7d388f1506605dc8607a16cdf9433b1bae67e94 [file] [log] [blame]
Fred Drake88fa9622000-09-11 05:23:25 +00001\chapter{Undocumented Modules \label{undoc}}
Guido van Rossum612316f1997-03-14 04:12:52 +00002
3Here's a quick listing of modules that are currently undocumented, but
4that should be documented. Feel free to contribute documentation for
Fred Drake9d843082003-07-30 02:55:28 +00005them! (Send via email to \email{docs@python.org}.)
Fred Drake88fa9622000-09-11 05:23:25 +00006
7The idea and original contents for this chapter were taken
8from a posting by Fredrik Lundh; the specific contents of this chapter
9have been substantially revised.
Guido van Rossum612316f1997-03-14 04:12:52 +000010
11
Fred Drake16e81f41999-02-24 19:57:14 +000012\section{Frameworks}
13
14Frameworks tend to be harder to document, but are well worth the
15effort spent.
Guido van Rossum612316f1997-03-14 04:12:52 +000016
Fred Drake272fb3a1998-04-07 14:15:28 +000017\begin{description}
Andrew M. Kuchling32dbdda2004-08-07 19:21:59 +000018\item None at this time.
Fred Drake272fb3a1998-04-07 14:15:28 +000019\end{description}
Guido van Rossum612316f1997-03-14 04:12:52 +000020
Guido van Rossum612316f1997-03-14 04:12:52 +000021
Guido van Rossum612316f1997-03-14 04:12:52 +000022\section{Miscellaneous useful utilities}
23
Fred Drakeae4d5c21999-06-23 14:56:13 +000024Some of these are very old and/or not very robust; marked with ``hmm.''
Guido van Rossum612316f1997-03-14 04:12:52 +000025
Fred Drake272fb3a1998-04-07 14:15:28 +000026\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000027\item[\module{bdb}]
Fred Drake88fa9622000-09-11 05:23:25 +000028--- A generic Python debugger base class (used by pdb).
Guido van Rossum612316f1997-03-14 04:12:52 +000029
Fred Drakee4694eb1999-07-01 20:42:57 +000030\item[\module{ihooks}]
Fred Drake88fa9622000-09-11 05:23:25 +000031--- Import hook support (for \refmodule{rexec}; may become obsolete).
Fred Drake272fb3a1998-04-07 14:15:28 +000032\end{description}
Guido van Rossum612316f1997-03-14 04:12:52 +000033
Guido van Rossum90858221997-08-15 02:52:46 +000034
Andrew M. Kuchling32dbdda2004-08-07 19:21:59 +000035
Guido van Rossum612316f1997-03-14 04:12:52 +000036\section{Platform specific modules}
37
Fred Drake6f49e0a1999-06-18 19:58:59 +000038These modules are used to implement the \refmodule{os.path} module,
39and are not documented beyond this mention. There's little need to
40document these.
Fred Drake560bcae1999-02-02 18:59:58 +000041
42\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000043\item[\module{ntpath}]
Fred Drake8b6ed262003-05-09 15:04:56 +000044--- Implementation of \module{os.path} on Win32, Win64, WinCE, and
Georg Brandla5a07042006-03-17 18:47:14 +000045 OS/2 platforms.
Fred Drake560bcae1999-02-02 18:59:58 +000046
Fred Drakee4694eb1999-07-01 20:42:57 +000047\item[\module{posixpath}]
Fred Drake8b6ed262003-05-09 15:04:56 +000048--- Implementation of \module{os.path} on \POSIX.
Guido van Rossum612316f1997-03-14 04:12:52 +000049
Skip Montanaro6d9f45b2003-05-06 20:40:17 +000050\item[\module{bsddb185}]
51--- Backwards compatibility module for systems which still use the Berkeley
Fred Drakee0d4aec2006-07-30 03:03:43 +000052 DB 1.85 module. It is normally only available on certain BSD \UNIX-based
Georg Brandla5a07042006-03-17 18:47:14 +000053 systems. It should never be used directly.
Skip Montanaro6d9f45b2003-05-06 20:40:17 +000054\end{description}
55
Guido van Rossum612316f1997-03-14 04:12:52 +000056
Guido van Rossum612316f1997-03-14 04:12:52 +000057\section{Multimedia}
58
Fred Drake272fb3a1998-04-07 14:15:28 +000059\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000060\item[\module{audiodev}]
Fred Drake88fa9622000-09-11 05:23:25 +000061--- Platform-independent API for playing audio data.
Guido van Rossum612316f1997-03-14 04:12:52 +000062
Fred Drake326c72a2003-01-08 07:21:53 +000063\item[\module{linuxaudiodev}]
64--- Play audio data on the Linux audio device. Replaced in Python 2.3
Georg Brandla5a07042006-03-17 18:47:14 +000065 by the \module{ossaudiodev} module.
Fred Drake326c72a2003-01-08 07:21:53 +000066
Fred Drakee4694eb1999-07-01 20:42:57 +000067\item[\module{sunaudio}]
Fred Drake88fa9622000-09-11 05:23:25 +000068--- Interpret Sun audio headers (may become obsolete or a tool/demo).
Guido van Rossum612316f1997-03-14 04:12:52 +000069
Fred Drakee4694eb1999-07-01 20:42:57 +000070\item[\module{toaiff}]
Fred Drake6f49e0a1999-06-18 19:58:59 +000071--- Convert "arbitrary" sound files to AIFF files; should probably
Georg Brandla5a07042006-03-17 18:47:14 +000072 become a tool or demo. Requires the external program \program{sox}.
Johannes Gijsbersf654c1c2004-12-21 21:14:42 +000073\end{description}
Fred Drake326c72a2003-01-08 07:21:53 +000074
Guido van Rossum612316f1997-03-14 04:12:52 +000075
Fred Drake38e5d272000-04-03 20:13:55 +000076\section{Obsolete \label{obsolete-modules}}
Guido van Rossum612316f1997-03-14 04:12:52 +000077
Fred Drake38e5d272000-04-03 20:13:55 +000078These modules are not normally available for import; additional work
79must be done to make them available.
80
Georg Brandla5a07042006-03-17 18:47:14 +000081%%% lib-old is empty as of Python 2.5
82% Those which are written in Python will be installed into the directory
83% \file{lib-old/} installed as part of the standard library. To use
84% these, the directory must be added to \code{sys.path}, possibly using
85% \envvar{PYTHONPATH}.
Fred Drake38e5d272000-04-03 20:13:55 +000086
Georg Brandla5a07042006-03-17 18:47:14 +000087These extension modules written in C are not built by default.
Fred Drake38e5d272000-04-03 20:13:55 +000088Under \UNIX, these must be enabled by uncommenting the appropriate
89lines in \file{Modules/Setup} in the build tree and either rebuilding
90Python if the modules are statically linked, or building and
91installing the shared object if using dynamically-loaded extensions.
92
93% XXX need Windows instructions!
Guido van Rossumcfaf1431997-07-16 15:48:20 +000094
Fred Drake272fb3a1998-04-07 14:15:28 +000095\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +000096\item[\module{timing}]
Georg Brandla5a07042006-03-17 18:47:14 +000097--- Measure time intervals to high resolution (use \function{time.clock()}
98 instead).
Fred Drake272fb3a1998-04-07 14:15:28 +000099\end{description}
Guido van Rossum61c27031997-07-18 21:08:07 +0000100
Fred Drake88fa9622000-09-11 05:23:25 +0000101\section{SGI-specific Extension modules}
Guido van Rossumb9ee9c21997-06-02 17:34:02 +0000102
Fred Drakeae4d5c21999-06-23 14:56:13 +0000103The following are SGI specific, and may be out of touch with the
104current version of reality.
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000105
Fred Drake3700b6f1998-08-07 16:02:28 +0000106\begin{description}
Fred Drakee4694eb1999-07-01 20:42:57 +0000107\item[\module{cl}]
Fred Drake272fb3a1998-04-07 14:15:28 +0000108--- Interface to the SGI compression library.
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000109
Fred Drakee4694eb1999-07-01 20:42:57 +0000110\item[\module{sv}]
Fred Drake272fb3a1998-04-07 14:15:28 +0000111--- Interface to the ``simple video'' board on SGI Indigo
Georg Brandla5a07042006-03-17 18:47:14 +0000112 (obsolete hardware).
Fred Drake3700b6f1998-08-07 16:02:28 +0000113\end{description}