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