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