Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 1 | \chapter{Undocumented Modules \label{undocumented-modules}} |
| 2 | |
| 3 | |
| 4 | The modules in this chapter are poorly documented (if at all). If you |
| 5 | wish to contribute documentation of any of these modules, please get in |
Fred Drake | 8da359b | 2001-07-14 02:09:32 +0000 | [diff] [blame] | 6 | touch with |
| 7 | \ulink{\email{python-docs@python.org}}{mailto:python-docs@python.org}. |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 8 | |
| 9 | \localmoduletable |
| 10 | |
| 11 | |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 12 | \section{\module{applesingle} --- AppleSingle decoder} |
| 13 | \declaremodule{standard}{applesingle} |
| 14 | \platform{Mac} |
| 15 | \modulesynopsis{Rudimentary decoder for AppleSingle format files} |
| 16 | |
| 17 | |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 18 | \section{\module{buildtools} --- Helper module for BuildApplet and Friends} |
| 19 | \declaremodule{standard}{buildtools} |
| 20 | \platform{Mac} |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 21 | \modulesynopsis{Helper module for BuildApplet, BuildApplication and |
| 22 | macfreeze} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 23 | |
| 24 | |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 25 | \section{\module{py_resource} --- Resources from Python code} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 26 | \declaremodule[pyresource]{standard}{py_resource} |
| 27 | \platform{Mac} |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 28 | \modulesynopsis{Helper to create \texttt{'PYC '} resources for compiled |
| 29 | applications} |
| 30 | |
| 31 | This module is primarily used as a help module for BuildApplet and |
| 32 | BuildApplication. It is able to store compiled Python code as |
| 33 | \texttt{'PYC '} resources in a file. |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 34 | |
| 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 |
| 42 | accompanying ``cfrg'' resources. It can parse them and merge them, and is |
| 43 | used by BuildApplication to combine all plugin modules to a single |
| 44 | executable. |
| 45 | |
| 46 | |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 47 | \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 | |
| 52 | Importing \module{icopen} will replace the builtin \method{open()} |
| 53 | with a version that uses Internet Config to set file type and creator |
| 54 | for new files. |
| 55 | |
| 56 | |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 57 | \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 Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 72 | StandardFile calls, but are implemented with Navigation Services through the |
| 73 | \refmodule{Nav}\refbimodindex{Nav} module. Importing it |
| 74 | will replace the methods in \refmodule{macfs}\refbimodindex{macfs} with these, |
| 75 | if Navigation Services is |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 76 | available on your machine. |
| 77 | |
| 78 | |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 79 | \section{\module{macresource} --- Locate script resources} |
| 80 | \declaremodule{standard}{macresource} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 81 | \platform{Mac} |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 82 | \modulesynopsis{Locate script resources} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 83 | |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 84 | \module{macresource} helps scripts finding their resources, such as |
| 85 | dialogs and menus, without requiring special case code for when the |
| 86 | script is run under MacPython, as a MacPython applet or under OSX Python. |
| 87 | |
Fred Drake | ee0fe0b | 2001-09-12 00:43:13 +0000 | [diff] [blame] | 88 | \section{\module{Nav} --- NavServices calls} |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 89 | \declaremodule{standard}{Nac} |
| 90 | \platform{Mac} |
| 91 | \modulesynopsis{Interface to Navigation Services} |
| 92 | |
| 93 | A low-level interface to Navigation Services. |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 94 | |
| 95 | |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 96 | \section{\module{mactty} --- Serial line connections} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 97 | \declaremodule{standard}{mactty} |
| 98 | \platform{Mac} |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 99 | \modulesynopsis{Easy access serial to line connections} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 100 | |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 101 | This 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 |
| 109 | development environment. It is a helper module for |
| 110 | \refmodule{distutils}\refbimodindex{distutils} but can be used separately for more |
| 111 | control. |
| 112 | |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 113 | |
| 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 Drake | 8875c86 | 2001-04-10 20:32:16 +0000 | [diff] [blame] | 120 | allows you to easily send your browser to a given URL. A related |
| 121 | module that may be of interest is the \module{webbrowser} module, |
| 122 | documented in the \citetitle[../lib/lib.html]{Python Library |
| 123 | Reference}. |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 124 | |
| 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 |
| 132 | allows access to the fields by name. It also has methods to convert |
| 133 | to and from \module{PIL} images. |
| 134 | |
| 135 | |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 136 | \section{\module{preferences} --- Application preferences manager} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 137 | \declaremodule{standard}{preferences} |
| 138 | \platform{Mac} |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 139 | \modulesynopsis{Nice application preferences manager with support for |
| 140 | defaults} |
| 141 | |
| 142 | The \module{preferences} module allows storage of user preferences in |
| 143 | the system-wide preferences folder, with defaults coming from the |
| 144 | application itself and the possibility to override preferences for |
| 145 | specific situations. |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 146 | |
| 147 | |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 148 | \section{\module{pythonprefs} --- Preferences manager for Python} |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 149 | \declaremodule{standard}{pythonprefs} |
| 150 | \platform{Mac} |
Fred Drake | 12060e5 | 2001-07-10 14:19:45 +0000 | [diff] [blame] | 151 | \modulesynopsis{Specialized preferences manager for the Python |
| 152 | interpreter} |
| 153 | |
| 154 | This module is a specialization of the \refmodule{preferences} module |
| 155 | that allows reading and writing of the preferences for the Python |
| 156 | interpreter. |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 157 | |
| 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 |
| 165 | without displaying it (or without displaying the stdout window |
| 166 | altogether, if set with \program{EditPythonPrefs}) until you try to read from |
| 167 | stdin or disable the buffering, at which point all the saved output is |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 168 | sent to the window. Good for programs with graphical user interfaces |
Fred Drake | 8da359b | 2001-07-14 02:09:32 +0000 | [diff] [blame] | 169 | that do want to display their output at a crash. |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 170 | |
| 171 | |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 172 | \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 |
| 178 | a stream of images to your program. It also provides some support for |
| 179 | audio tracks. |
| 180 | |
Fred Drake | 4d0d621 | 2000-10-14 05:08:34 +0000 | [diff] [blame] | 181 | \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 | |
| 186 | The \module{W} widgets are used extensively in the \program{IDE}. |
Jack Jansen | 945bf5f | 2001-09-11 21:24:07 +0000 | [diff] [blame] | 187 | |
| 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 | |