blob: 773208a810e2d38fc18b0f6b9483615c22a35c02 [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}
Fred Drakeac968682002-01-17 04:51:55 +000015\modulesynopsis{Rudimentary decoder for AppleSingle format files.}
Jack Jansen945bf5f2001-09-11 21:24:07 +000016
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
Fred Drakeac968682002-01-17 04:51:55 +000022 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 Drakeac968682002-01-17 04:51:55 +000028\modulesynopsis{Helper to create \texttt{'PYC~'} resources for compiled
29 applications.}
Fred Drake12060e52001-07-10 14:19:45 +000030
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}
Fred Drakeac968682002-01-17 04:51:55 +000039\modulesynopsis{Code Fragment Resource module.}
Fred Drake4d0d6212000-10-14 05:08:34 +000040
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}
Fred Drakeac968682002-01-17 04:51:55 +000050\modulesynopsis{Internet Config replacement for \method{open()}.}
Jack Jansen945bf5f2001-09-11 21:24:07 +000051
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 Drakeac968682002-01-17 04:51:55 +000060\modulesynopsis{Constant definitions for many Mac OS error codes.}
Fred Drake4d0d6212000-10-14 05:08:34 +000061
Fred Drakeac968682002-01-17 04:51:55 +000062\module{macerrors} cotains constant definitions for many Mac OS error
63codes.
Fred Drake4d0d6212000-10-14 05:08:34 +000064
65
66\section{\module{macfsn} --- NavServices calls}
67\declaremodule{standard}{macfsn}
68 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000069\modulesynopsis{NavServices versions of StandardFile calls.}
Fred Drake4d0d6212000-10-14 05:08:34 +000070
71
Fred Drakeac968682002-01-17 04:51:55 +000072\module{macfsn} contains wrapper functions that have the same API as
73the \refmodule{macfs} StandardFile calls, but are implemented with
74Navigation Services through the
75\refmodule{Nav}\refbimodindex{Nav} module. Importing it will replace
76the methods in \refmodule{macfs}\refbimodindex{macfs} with these, if
77Navigation Services is available on your machine.
Fred Drake4d0d6212000-10-14 05:08:34 +000078
79
Jack Jansen945bf5f2001-09-11 21:24:07 +000080\section{\module{macresource} --- Locate script resources}
81\declaremodule{standard}{macresource}
Fred Drake4d0d6212000-10-14 05:08:34 +000082 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000083\modulesynopsis{Locate script resources.}
Fred Drake4d0d6212000-10-14 05:08:34 +000084
Jack Jansen945bf5f2001-09-11 21:24:07 +000085\module{macresource} helps scripts finding their resources, such as
86dialogs and menus, without requiring special case code for when the
87script is run under MacPython, as a MacPython applet or under OSX Python.
88
Fred Drakeee0fe0b2001-09-12 00:43:13 +000089\section{\module{Nav} --- NavServices calls}
Jack Jansen945bf5f2001-09-11 21:24:07 +000090\declaremodule{standard}{Nac}
91 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +000092\modulesynopsis{Interface to Navigation Services.}
Jack Jansen945bf5f2001-09-11 21:24:07 +000093
94A low-level interface to Navigation Services.
Fred Drake4d0d6212000-10-14 05:08:34 +000095
96
Fred Drake12060e52001-07-10 14:19:45 +000097\section{\module{mactty} --- Serial line connections}
Fred Drake4d0d6212000-10-14 05:08:34 +000098\declaremodule{standard}{mactty}
99 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000100\modulesynopsis{Easy access serial to line connections.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000101
Fred Drake0f0380a2001-10-01 17:04:10 +0000102This module is only available under Mac OS 9 or earlier in classic PPC
103MacPython.
Jack Jansen945bf5f2001-09-11 21:24:07 +0000104
105\section{\module{mkcwproject} --- Create CodeWarrior projects}
106\declaremodule{standard}{mkcwproject}
107 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000108\modulesynopsis{Create CodeWarrior projects.}
Jack Jansen945bf5f2001-09-11 21:24:07 +0000109
110\module{mkcwproject} creates project files for the Metrowerks CodeWarrior
111development environment. It is a helper module for
112\refmodule{distutils}\refbimodindex{distutils} but can be used separately for more
113control.
114
Fred Drake4d0d6212000-10-14 05:08:34 +0000115
116\section{\module{nsremote} --- Wrapper around Netscape OSA modules}
117\declaremodule{standard}{nsremote}
118 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000119\modulesynopsis{Wrapper around Netscape OSA modules.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000120
121\module{nsremote} is a wrapper around the Netscape OSA modules that
Fred Drake8875c862001-04-10 20:32:16 +0000122allows you to easily send your browser to a given URL. A related
123module that may be of interest is the \module{webbrowser} module,
124documented in the \citetitle[../lib/lib.html]{Python Library
125Reference}.
Fred Drake4d0d6212000-10-14 05:08:34 +0000126
127
128\section{\module{PixMapWrapper} --- Wrapper for PixMap objects}
129\declaremodule{standard}{PixMapWrapper}
130 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000131\modulesynopsis{Wrapper for PixMap objects.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000132
133\module{PixMapWrapper} wraps a PixMap object with a Python object that
134allows access to the fields by name. It also has methods to convert
135to and from \module{PIL} images.
136
137
Fred Drake12060e52001-07-10 14:19:45 +0000138\section{\module{preferences} --- Application preferences manager}
Fred Drake4d0d6212000-10-14 05:08:34 +0000139\declaremodule{standard}{preferences}
140 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +0000141\modulesynopsis{Nice application preferences manager with support for
Fred Drakeac968682002-01-17 04:51:55 +0000142 defaults.}
Fred Drake12060e52001-07-10 14:19:45 +0000143
144The \module{preferences} module allows storage of user preferences in
145the system-wide preferences folder, with defaults coming from the
146application itself and the possibility to override preferences for
147specific situations.
Fred Drake4d0d6212000-10-14 05:08:34 +0000148
149
Fred Drake12060e52001-07-10 14:19:45 +0000150\section{\module{pythonprefs} --- Preferences manager for Python}
Fred Drake4d0d6212000-10-14 05:08:34 +0000151\declaremodule{standard}{pythonprefs}
152 \platform{Mac}
Fred Drake12060e52001-07-10 14:19:45 +0000153\modulesynopsis{Specialized preferences manager for the Python
Fred Drakeac968682002-01-17 04:51:55 +0000154 interpreter.}
Fred Drake12060e52001-07-10 14:19:45 +0000155
156This module is a specialization of the \refmodule{preferences} module
157that allows reading and writing of the preferences for the Python
158interpreter.
Fred Drake4d0d6212000-10-14 05:08:34 +0000159
160
Fred Drakeac968682002-01-17 04:51:55 +0000161\section{\module{quietconsole} --- Non-visible standard output}
Fred Drake4d0d6212000-10-14 05:08:34 +0000162\declaremodule{standard}{quietconsole}
163 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000164\modulesynopsis{Buffered, non-visible standard output.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000165
166\module{quietconsole} allows you to keep stdio output in a buffer
167without displaying it (or without displaying the stdout window
168altogether, if set with \program{EditPythonPrefs}) until you try to read from
169stdin or disable the buffering, at which point all the saved output is
Jack Jansen945bf5f2001-09-11 21:24:07 +0000170sent to the window. Good for programs with graphical user interfaces
Fred Drake8da359b2001-07-14 02:09:32 +0000171that do want to display their output at a crash.
Fred Drake4d0d6212000-10-14 05:08:34 +0000172
173
Fred Drakeac968682002-01-17 04:51:55 +0000174\section{\module{videoreader} --- Read QuickTime movies}
Jack Jansen945bf5f2001-09-11 21:24:07 +0000175\declaremodule{standard}{videoreader}
176 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000177\modulesynopsis{Read QuickTime movies frame by frame for further processing.}
Jack Jansen945bf5f2001-09-11 21:24:07 +0000178
179\module{videoreader} reads and decodes QuickTime movies and passes
180a stream of images to your program. It also provides some support for
181audio tracks.
182
Fred Drake4d0d6212000-10-14 05:08:34 +0000183\section{\module{W} --- Widgets built on \module{FrameWork}}
184\declaremodule{standard}{W}
185 \platform{Mac}
Fred Drakeac968682002-01-17 04:51:55 +0000186\modulesynopsis{Widgets for the Mac, built on top of \refmodule{FrameWork}.}
Fred Drake4d0d6212000-10-14 05:08:34 +0000187
188The \module{W} widgets are used extensively in the \program{IDE}.
Jack Jansen945bf5f2001-09-11 21:24:07 +0000189
190\section{\module{waste} --- non-Apple \program{TextEdit} replacement}
191\declaremodule{standard}{waste}
192 \platform{Mac}
193\modulesynopsis{Interface to the ``WorldScript-Aware Styled Text Engine.''}
194
195\begin{seealso}
196 \seetitle[http://www.merzwaren.com/waste/]{About WASTE}{Information
197 about the WASTE widget and library, including
198 documentation and downloads.}
199\end{seealso}
200