blob: d0921581a06717fe22e7867a07d4cb31d7227117 [file] [log] [blame]
Fred Drake4d0d6212000-10-14 05:08:34 +00001\chapter{Undocumented Modules \label{undocumented-modules}}
2
3
4The modules in this chapter are poorly documented (if at all). If you
5wish to contribute documentation of any of these modules, please get in
Fred Drake8da359b2001-07-14 02:09:32 +00006touch with
7\ulink{\email{python-docs@python.org}}{mailto:python-docs@python.org}.
Fred Drake4d0d6212000-10-14 05:08:34 +00008
9\localmoduletable
10
11
Jack Jansen945bf5f2001-09-11 21:24:07 +000012\section{\module{applesingle} --- AppleSingle decoder}
13\declaremodule{standard}{applesingle}
14 \platform{Mac}
15\modulesynopsis{Rudimentary decoder for AppleSingle format files}
16
17
Fred Drake4d0d6212000-10-14 05:08:34 +000018\section{\module{buildtools} --- Helper module for BuildApplet and Friends}
19\declaremodule{standard}{buildtools}
20 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +000021\modulesynopsis{Helper module for BuildApplet, BuildApplication and
22 macfreeze}
Fred Drake4d0d6212000-10-14 05:08:34 +000023
24
Fred Drake12060e52001-07-10 14:19:45 +000025\section{\module{py_resource} --- Resources from Python code}
Fred Drake4d0d6212000-10-14 05:08:34 +000026\declaremodule[pyresource]{standard}{py_resource}
27 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +000028\modulesynopsis{Helper to create \texttt{'PYC '} resources for compiled
29 applications}
30
31This module is primarily used as a help module for BuildApplet and
32BuildApplication. It is able to store compiled Python code as
33\texttt{'PYC '} resources in a file.
Fred Drake4d0d6212000-10-14 05:08:34 +000034
35
36\section{\module{cfmfile} --- Code Fragment Resource module}
37\declaremodule{standard}{cfmfile}
38 \platform{Mac}
39\modulesynopsis{Code Fragment Resource module}
40
41\module{cfmfile} is a module that understands Code Fragments and the
42accompanying ``cfrg'' resources. It can parse them and merge them, and is
43used by BuildApplication to combine all plugin modules to a single
44executable.
45
46
Jack Jansen945bf5f2001-09-11 21:24:07 +000047\section{\module{icopen} --- Internet Config replacement for \method{open()}}
48\declaremodule{standard}{icopen}
49 \platform{Mac}
50\modulesynopsis{Internet Config replacement for \method{open()}}
51
52Importing \module{icopen} will replace the builtin \method{open()}
53with a version that uses Internet Config to set file type and creator
54for new files.
55
56
Fred Drake4d0d6212000-10-14 05:08:34 +000057\section{\module{macerrors} --- MacOS Errors}
58\declaremodule{standard}{macerrors}
59 \platform{Mac}
60\modulesynopsis{Constant definitions for many MacOS error codes}
61
62\module{macerrors} cotains constant definitions for many MacOS error codes.
63
64
65\section{\module{macfsn} --- NavServices calls}
66\declaremodule{standard}{macfsn}
67 \platform{Mac}
68\modulesynopsis{NavServices versions of StandardFile calls}
69
70
71\module{macfsn} contains wrapper functions that have the same API as the macfs
Jack Jansen945bf5f2001-09-11 21:24:07 +000072StandardFile calls, but are implemented with Navigation Services through the
73\refmodule{Nav}\refbimodindex{Nav} module. Importing it
74will replace the methods in \refmodule{macfs}\refbimodindex{macfs} with these,
75if Navigation Services is
Fred Drake4d0d6212000-10-14 05:08:34 +000076available on your machine.
77
78
Jack Jansen945bf5f2001-09-11 21:24:07 +000079\section{\module{macresource} --- Locate script resources}
80\declaremodule{standard}{macresource}
Fred Drake4d0d6212000-10-14 05:08:34 +000081 \platform{Mac}
Jack Jansen945bf5f2001-09-11 21:24:07 +000082\modulesynopsis{Locate script resources}
Fred Drake4d0d6212000-10-14 05:08:34 +000083
Jack Jansen945bf5f2001-09-11 21:24:07 +000084\module{macresource} helps scripts finding their resources, such as
85dialogs and menus, without requiring special case code for when the
86script is run under MacPython, as a MacPython applet or under OSX Python.
87
88\section{\module{Nav --- NavServices calls}
89\declaremodule{standard}{Nac}
90 \platform{Mac}
91\modulesynopsis{Interface to Navigation Services}
92
93A low-level interface to Navigation Services.
Fred Drake4d0d6212000-10-14 05:08:34 +000094
95
Fred Drake12060e52001-07-10 14:19:45 +000096\section{\module{mactty} --- Serial line connections}
Fred Drake4d0d6212000-10-14 05:08:34 +000097\declaremodule{standard}{mactty}
98 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +000099\modulesynopsis{Easy access serial to line connections}
Fred Drake4d0d6212000-10-14 05:08:34 +0000100
Jack Jansen945bf5f2001-09-11 21:24:07 +0000101This module is only available under MacOS 9 or earlier in classic PPC MacPython.
102
103\section{\module{mkcwproject} --- Create CodeWarrior projects}
104\declaremodule{standard}{mkcwproject}
105 \platform{Mac}
106\modulesynopsis{Create CodeWarrior projects}
107
108\module{mkcwproject} creates project files for the Metrowerks CodeWarrior
109development environment. It is a helper module for
110\refmodule{distutils}\refbimodindex{distutils} but can be used separately for more
111control.
112
Fred Drake4d0d6212000-10-14 05:08:34 +0000113
114\section{\module{nsremote} --- Wrapper around Netscape OSA modules}
115\declaremodule{standard}{nsremote}
116 \platform{Mac}
117\modulesynopsis{Wrapper around Netscape OSA modules}
118
119\module{nsremote} is a wrapper around the Netscape OSA modules that
Fred Drake8875c862001-04-10 20:32:16 +0000120allows you to easily send your browser to a given URL. A related
121module that may be of interest is the \module{webbrowser} module,
122documented in the \citetitle[../lib/lib.html]{Python Library
123Reference}.
Fred Drake4d0d6212000-10-14 05:08:34 +0000124
125
126\section{\module{PixMapWrapper} --- Wrapper for PixMap objects}
127\declaremodule{standard}{PixMapWrapper}
128 \platform{Mac}
129\modulesynopsis{Wrapper for PixMap objects}
130
131\module{PixMapWrapper} wraps a PixMap object with a Python object that
132allows access to the fields by name. It also has methods to convert
133to and from \module{PIL} images.
134
135
Fred Drake12060e52001-07-10 14:19:45 +0000136\section{\module{preferences} --- Application preferences manager}
Fred Drake4d0d6212000-10-14 05:08:34 +0000137\declaremodule{standard}{preferences}
138 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +0000139\modulesynopsis{Nice application preferences manager with support for
140 defaults}
141
142The \module{preferences} module allows storage of user preferences in
143the system-wide preferences folder, with defaults coming from the
144application itself and the possibility to override preferences for
145specific situations.
Fred Drake4d0d6212000-10-14 05:08:34 +0000146
147
Fred Drake12060e52001-07-10 14:19:45 +0000148\section{\module{pythonprefs} --- Preferences manager for Python}
Fred Drake4d0d6212000-10-14 05:08:34 +0000149\declaremodule{standard}{pythonprefs}
150 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +0000151\modulesynopsis{Specialized preferences manager for the Python
152 interpreter}
153
154This module is a specialization of the \refmodule{preferences} module
155that allows reading and writing of the preferences for the Python
156interpreter.
Fred Drake4d0d6212000-10-14 05:08:34 +0000157
158
159\section{\module{quietconsole} --- non-visible stdout output}
160\declaremodule{standard}{quietconsole}
161 \platform{Mac}
162\modulesynopsis{buffered, non-visible stdout output}
163
164\module{quietconsole} allows you to keep stdio output in a buffer
165without displaying it (or without displaying the stdout window
166altogether, if set with \program{EditPythonPrefs}) until you try to read from
167stdin or disable the buffering, at which point all the saved output is
Jack Jansen945bf5f2001-09-11 21:24:07 +0000168sent to the window. Good for programs with graphical user interfaces
Fred Drake8da359b2001-07-14 02:09:32 +0000169that do want to display their output at a crash.
Fred Drake4d0d6212000-10-14 05:08:34 +0000170
171
Jack Jansen945bf5f2001-09-11 21:24:07 +0000172\section{\module{videoreader} --- read QuickTime movies}
173\declaremodule{standard}{videoreader}
174 \platform{Mac}
175\modulesynopsis{read QuickTime movies frame by frame for further processing}
176
177\module{videoreader} reads and decodes QuickTime movies and passes
178a stream of images to your program. It also provides some support for
179audio tracks.
180
Fred Drake4d0d6212000-10-14 05:08:34 +0000181\section{\module{W} --- Widgets built on \module{FrameWork}}
182\declaremodule{standard}{W}
183 \platform{Mac}
184\modulesynopsis{Widgets for the Mac, built on top of \module{FrameWork}}
185
186The \module{W} widgets are used extensively in the \program{IDE}.
Jack Jansen945bf5f2001-09-11 21:24:07 +0000187
188\section{\module{waste} --- non-Apple \program{TextEdit} replacement}
189\declaremodule{standard}{waste}
190 \platform{Mac}
191\modulesynopsis{Interface to the ``WorldScript-Aware Styled Text Engine.''}
192
193\begin{seealso}
194 \seetitle[http://www.merzwaren.com/waste/]{About WASTE}{Information
195 about the WASTE widget and library, including
196 documentation and downloads.}
197\end{seealso}
198