blob: e456238dcd3c2d80e7fb30e74b89f4e3cae88972 [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
Fred Drake0f0380a2001-10-01 17:04:10 +000031This module is primarily used as a help module for
32\program{BuildApplet} and \program{BuildApplication}. It is able to
33store compiled Python code as \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 Drake0f0380a2001-10-01 17:04:10 +000057\section{\module{macerrors} --- Mac OS Errors}
Fred Drake4d0d6212000-10-14 05:08:34 +000058\declaremodule{standard}{macerrors}
59 \platform{Mac}
Fred Drake0f0380a2001-10-01 17:04:10 +000060\modulesynopsis{Constant definitions for many Mac OS error codes}
Fred Drake4d0d6212000-10-14 05:08:34 +000061
Fred Drake0f0380a2001-10-01 17:04:10 +000062\module{macerrors} cotains constant definitions for many Mac OS error codes.
Fred Drake4d0d6212000-10-14 05:08:34 +000063
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
Fred Drakeee0fe0b2001-09-12 00:43:13 +000088\section{\module{Nav} --- NavServices calls}
Jack Jansen945bf5f2001-09-11 21:24:07 +000089\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
Fred Drake0f0380a2001-10-01 17:04:10 +0000101This module is only available under Mac OS 9 or earlier in classic PPC
102MacPython.
Jack Jansen945bf5f2001-09-11 21:24:07 +0000103
104\section{\module{mkcwproject} --- Create CodeWarrior projects}
105\declaremodule{standard}{mkcwproject}
106 \platform{Mac}
107\modulesynopsis{Create CodeWarrior projects}
108
109\module{mkcwproject} creates project files for the Metrowerks CodeWarrior
110development environment. It is a helper module for
111\refmodule{distutils}\refbimodindex{distutils} but can be used separately for more
112control.
113
Fred Drake4d0d6212000-10-14 05:08:34 +0000114
115\section{\module{nsremote} --- Wrapper around Netscape OSA modules}
116\declaremodule{standard}{nsremote}
117 \platform{Mac}
118\modulesynopsis{Wrapper around Netscape OSA modules}
119
120\module{nsremote} is a wrapper around the Netscape OSA modules that
Fred Drake8875c862001-04-10 20:32:16 +0000121allows you to easily send your browser to a given URL. A related
122module that may be of interest is the \module{webbrowser} module,
123documented in the \citetitle[../lib/lib.html]{Python Library
124Reference}.
Fred Drake4d0d6212000-10-14 05:08:34 +0000125
126
127\section{\module{PixMapWrapper} --- Wrapper for PixMap objects}
128\declaremodule{standard}{PixMapWrapper}
129 \platform{Mac}
130\modulesynopsis{Wrapper for PixMap objects}
131
132\module{PixMapWrapper} wraps a PixMap object with a Python object that
133allows access to the fields by name. It also has methods to convert
134to and from \module{PIL} images.
135
136
Fred Drake12060e52001-07-10 14:19:45 +0000137\section{\module{preferences} --- Application preferences manager}
Fred Drake4d0d6212000-10-14 05:08:34 +0000138\declaremodule{standard}{preferences}
139 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +0000140\modulesynopsis{Nice application preferences manager with support for
141 defaults}
142
143The \module{preferences} module allows storage of user preferences in
144the system-wide preferences folder, with defaults coming from the
145application itself and the possibility to override preferences for
146specific situations.
Fred Drake4d0d6212000-10-14 05:08:34 +0000147
148
Fred Drake12060e52001-07-10 14:19:45 +0000149\section{\module{pythonprefs} --- Preferences manager for Python}
Fred Drake4d0d6212000-10-14 05:08:34 +0000150\declaremodule{standard}{pythonprefs}
151 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +0000152\modulesynopsis{Specialized preferences manager for the Python
153 interpreter}
154
155This module is a specialization of the \refmodule{preferences} module
156that allows reading and writing of the preferences for the Python
157interpreter.
Fred Drake4d0d6212000-10-14 05:08:34 +0000158
159
160\section{\module{quietconsole} --- non-visible stdout output}
161\declaremodule{standard}{quietconsole}
162 \platform{Mac}
163\modulesynopsis{buffered, non-visible stdout output}
164
165\module{quietconsole} allows you to keep stdio output in a buffer
166without displaying it (or without displaying the stdout window
167altogether, if set with \program{EditPythonPrefs}) until you try to read from
168stdin or disable the buffering, at which point all the saved output is
Jack Jansen945bf5f2001-09-11 21:24:07 +0000169sent to the window. Good for programs with graphical user interfaces
Fred Drake8da359b2001-07-14 02:09:32 +0000170that do want to display their output at a crash.
Fred Drake4d0d6212000-10-14 05:08:34 +0000171
172
Jack Jansen945bf5f2001-09-11 21:24:07 +0000173\section{\module{videoreader} --- read QuickTime movies}
174\declaremodule{standard}{videoreader}
175 \platform{Mac}
176\modulesynopsis{read QuickTime movies frame by frame for further processing}
177
178\module{videoreader} reads and decodes QuickTime movies and passes
179a stream of images to your program. It also provides some support for
180audio tracks.
181
Fred Drake4d0d6212000-10-14 05:08:34 +0000182\section{\module{W} --- Widgets built on \module{FrameWork}}
183\declaremodule{standard}{W}
184 \platform{Mac}
185\modulesynopsis{Widgets for the Mac, built on top of \module{FrameWork}}
186
187The \module{W} widgets are used extensively in the \program{IDE}.
Jack Jansen945bf5f2001-09-11 21:24:07 +0000188
189\section{\module{waste} --- non-Apple \program{TextEdit} replacement}
190\declaremodule{standard}{waste}
191 \platform{Mac}
192\modulesynopsis{Interface to the ``WorldScript-Aware Styled Text Engine.''}
193
194\begin{seealso}
195 \seetitle[http://www.merzwaren.com/waste/]{About WASTE}{Information
196 about the WASTE widget and library, including
197 documentation and downloads.}
198\end{seealso}
199