blob: 7a5a7601c39183570a40ceb488053dd76604f8d2 [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001
2.. _undoc:
3
4********************
5Undocumented Modules
6********************
7
8Here's a quick listing of modules that are currently undocumented, but that
9should be documented. Feel free to contribute documentation for them! (Send
10via email to docs@python.org.)
11
12The idea and original contents for this chapter were taken from a posting by
13Fredrik Lundh; the specific contents of this chapter have been substantially
14revised.
15
16
17Miscellaneous useful utilities
18==============================
19
20Some of these are very old and/or not very robust; marked with "hmm."
21
Georg Brandl8ec7f652007-08-15 14:28:01 +000022:mod:`ihooks`
23 --- Import hook support (for :mod:`rexec`; may become obsolete).
Brett Cannon27508d42008-05-10 22:45:07 +000024
Brett Cannona975cd42008-05-11 01:06:54 +000025 .. warning:: The :mod:`ihooks` module has been removed in Python 3.0.
Georg Brandl8ec7f652007-08-15 14:28:01 +000026
27
28Platform specific modules
29=========================
30
31These modules are used to implement the :mod:`os.path` module, and are not
32documented beyond this mention. There's little need to document these.
33
34:mod:`ntpath`
35 --- Implementation of :mod:`os.path` on Win32, Win64, WinCE, and OS/2 platforms.
36
37:mod:`posixpath`
38 --- Implementation of :mod:`os.path` on POSIX.
39
40:mod:`bsddb185`
41 --- Backwards compatibility module for systems which still use the Berkeley DB
42 1.85 module. It is normally only available on certain BSD Unix-based systems.
43 It should never be used directly.
44
45
46Multimedia
47==========
48
49:mod:`audiodev`
50 --- Platform-independent API for playing audio data.
51
Brett Cannone5d2cba2008-05-06 23:23:34 +000052 .. warning:: The :mod:`audiodev` module has been removed in 3.0.
53
Georg Brandl8ec7f652007-08-15 14:28:01 +000054:mod:`linuxaudiodev`
55 --- Play audio data on the Linux audio device. Replaced in Python 2.3 by the
56 :mod:`ossaudiodev` module.
Brett Cannondf0a7172008-05-11 00:50:51 +000057
Brett Cannona975cd42008-05-11 01:06:54 +000058 .. warning:: The :mod:`linuxaudiodev` module has been removed in Python 3.0.
Georg Brandl8ec7f652007-08-15 14:28:01 +000059
60:mod:`sunaudio`
61 --- Interpret Sun audio headers (may become obsolete or a tool/demo).
62
63:mod:`toaiff`
64 --- Convert "arbitrary" sound files to AIFF files; should probably become a tool
65 or demo. Requires the external program :program:`sox`.
66
67
Brett Cannonfa24d9a2008-05-09 05:32:42 +000068 .. warning:: The :mod:`toaiff` module has been removed in 3.0.
69
70
Georg Brandl8ec7f652007-08-15 14:28:01 +000071.. _undoc-mac-modules:
72
73Undocumented Mac OS modules
74===========================
75
76
77:mod:`applesingle` --- AppleSingle decoder
78------------------------------------------
79
80.. module:: applesingle
81 :platform: Mac
82 :synopsis: Rudimentary decoder for AppleSingle format files.
83
84
85
86:mod:`buildtools` --- Helper module for BuildApplet and Friends
87---------------------------------------------------------------
88
89.. module:: buildtools
90 :platform: Mac
91 :synopsis: Helper module for BuildApplet, BuildApplication and macfreeze.
92
93
94.. deprecated:: 2.4
95
96:mod:`cfmfile` --- Code Fragment Resource module
97------------------------------------------------
98
99.. module:: cfmfile
100 :platform: Mac
101 :synopsis: Code Fragment Resource module.
102
103
104:mod:`cfmfile` is a module that understands Code Fragments and the accompanying
105"cfrg" resources. It can parse them and merge them, and is used by
106BuildApplication to combine all plugin modules to a single executable.
107
108.. deprecated:: 2.4
109
110:mod:`icopen` --- Internet Config replacement for :meth:`open`
111--------------------------------------------------------------
112
113.. module:: icopen
114 :platform: Mac
115 :synopsis: Internet Config replacement for open().
116
117
118Importing :mod:`icopen` will replace the builtin :meth:`open` with a version
119that uses Internet Config to set file type and creator for new files.
120
121
122:mod:`macerrors` --- Mac OS Errors
123----------------------------------
124
125.. module:: macerrors
126 :platform: Mac
127 :synopsis: Constant definitions for many Mac OS error codes.
128
129
130:mod:`macerrors` contains constant definitions for many Mac OS error codes.
131
132
133:mod:`macresource` --- Locate script resources
134----------------------------------------------
135
136.. module:: macresource
137 :platform: Mac
138 :synopsis: Locate script resources.
139
140
141:mod:`macresource` helps scripts finding their resources, such as dialogs and
142menus, without requiring special case code for when the script is run under
143MacPython, as a MacPython applet or under OSX Python.
144
145
146:mod:`Nav` --- NavServices calls
147--------------------------------
148
149.. module:: Nav
150 :platform: Mac
151 :synopsis: Interface to Navigation Services.
152
153
154A low-level interface to Navigation Services.
155
156
157:mod:`PixMapWrapper` --- Wrapper for PixMap objects
158---------------------------------------------------
159
160.. module:: PixMapWrapper
161 :platform: Mac
162 :synopsis: Wrapper for PixMap objects.
163
164
165:mod:`PixMapWrapper` wraps a PixMap object with a Python object that allows
166access to the fields by name. It also has methods to convert to and from
167:mod:`PIL` images.
168
169
170:mod:`videoreader` --- Read QuickTime movies
171--------------------------------------------
172
173.. module:: videoreader
174 :platform: Mac
175 :synopsis: Read QuickTime movies frame by frame for further processing.
176
177
178:mod:`videoreader` reads and decodes QuickTime movies and passes a stream of
179images to your program. It also provides some support for audio tracks.
180
181
182:mod:`W` --- Widgets built on :mod:`FrameWork`
183----------------------------------------------
184
185.. module:: W
186 :platform: Mac
187 :synopsis: Widgets for the Mac, built on top of FrameWork.
188
189
190The :mod:`W` widgets are used extensively in the :program:`IDE`.
191
192
193.. _obsolete-modules:
194
195Obsolete
196========
197
198These modules are not normally available for import; additional work must be
199done to make them available.
200
201These extension modules written in C are not built by default. Under Unix, these
202must be enabled by uncommenting the appropriate lines in :file:`Modules/Setup`
203in the build tree and either rebuilding Python if the modules are statically
204linked, or building and installing the shared object if using dynamically-loaded
205extensions.
206
Georg Brandlb19be572007-12-29 10:57:00 +0000207.. (lib-old is empty as of Python 2.5)
Georg Brandl8ec7f652007-08-15 14:28:01 +0000208
Georg Brandlb19be572007-12-29 10:57:00 +0000209 Those which are written in Python will be installed into the directory
210 \file{lib-old/} installed as part of the standard library. To use
211 these, the directory must be added to \code{sys.path}, possibly using
212 \envvar{PYTHONPATH}.
Georg Brandl8ec7f652007-08-15 14:28:01 +0000213
214:mod:`timing`
215 --- Measure time intervals to high resolution (use :func:`time.clock` instead).
216
217
218SGI-specific Extension modules
219==============================
220
221The following are SGI specific, and may be out of touch with the current version
222of reality.
223
224:mod:`cl`
225 --- Interface to the SGI compression library.
226
227:mod:`sv`
228 --- Interface to the "simple video" board on SGI Indigo (obsolete hardware).
229