Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 1 | \chapter{Undocumented Modules} |
| 2 | |
| 3 | Here's a quick listing of modules that are currently undocumented, but |
| 4 | that should be documented. Feel free to contribute documentation for |
| 5 | them! (The idea and most contents for this chapter were taken from a |
| 6 | posting by Fredrik Lundh; I have revised some modules' status.) |
| 7 | |
| 8 | |
| 9 | \section{Fundamental, and pretty straightforward to document} |
| 10 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 11 | ni.py -- New import scheme with package support |
| 12 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 13 | |
| 14 | \section{Frameworks; somewhat harder to document, but |
| 15 | well worth the effort} |
| 16 | |
| 17 | Tkinter.py -- Interface to Tcl/Tk for graphical user interfaces; |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 18 | Fredrik Lundh is working on this one! |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 19 | |
| 20 | BaseHTTPServer.py -- HTTP server base class |
| 21 | |
| 22 | CGIHTTPServer.py -- CGI-savvy HTTP Server |
| 23 | |
| 24 | SimpleHTTPServer.py -- Simple HTTP Server |
| 25 | |
| 26 | SocketServer.py -- Generic socket server classes |
| 27 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 28 | |
| 29 | \section{Stuff useful to a lot of people, including the CGI crowd} |
| 30 | |
| 31 | MimeWriter.py -- Generic MIME writer |
| 32 | |
| 33 | mimify.py -- Mimification and unmimification of mail messages |
| 34 | |
| 35 | multifile.py -- make each part of a multipart message ``feel'' like |
| 36 | |
| 37 | base64.py -- Conversions to/from base64 transport encoding |
| 38 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 39 | mailbox.py -- handle Unix style, MMDF style, and MH style mailboxes |
| 40 | |
| 41 | quopri.py -- Conversions to/from quoted-printable transport encoding |
| 42 | |
| 43 | |
| 44 | \section{Miscellaneous useful utilities} |
| 45 | |
| 46 | Some of these are very old and/or not very robust; marked with ``hmm''. |
| 47 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 48 | fnmatch.py -- filename globbing (low level interface) |
| 49 | |
| 50 | calendar.py -- Calendar printing functions |
| 51 | |
| 52 | cmp.py -- Efficiently compare files |
| 53 | |
| 54 | cmpcache.py -- Efficiently compare files (uses statcache) |
| 55 | |
| 56 | dircache.py -- like os.listdir, but caches results |
| 57 | |
| 58 | dircmp.py -- class to build directory diff tools on |
| 59 | |
| 60 | linecache.py -- Cache lines from files (used by pdb) |
| 61 | |
| 62 | pipes.py -- Conversion pipeline templates (hmm) |
| 63 | |
| 64 | popen2.py -- improved popen? (read AND write simultaneously) (hmm) |
| 65 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 66 | statcache.py -- Maintain a cache of file stats |
| 67 | |
| 68 | colorsys.py -- Conversion between RGB and other color systems |
| 69 | |
| 70 | commands.py -- executing commands and looking at their output and |
| 71 | status |
| 72 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 73 | dbhash.py -- (g)dbm-like wrapper for bsdhash.hashopen |
| 74 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 75 | dumbdbm.py -- A dumb and slow but simple dbm clone (anydbm's last |
| 76 | resort) |
| 77 | |
| 78 | mhlib.py -- MH interface |
| 79 | |
| 80 | pty.py -- Pseudo terminal utilities |
| 81 | |
| 82 | tty.py -- Terminal utilities |
| 83 | |
| 84 | cmd.py -- build line-oriented command interpreters (used by pdb) |
| 85 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 86 | bdb.py -- A generic Python debugger base class (used by pdb) |
| 87 | |
| 88 | ihooks.py -- Import hook support (for ni and rexec) |
| 89 | |
| 90 | |
| 91 | \section{Parsing Python} |
| 92 | |
| 93 | (One could argue that these should all be documented together with the |
| 94 | parser module; in fact the parser module section already references |
| 95 | the token and symbol modules.) |
| 96 | |
| 97 | token.py -- Tokens (from ``token.h'') |
| 98 | |
| 99 | symbol.py -- Symbols (from ``graminit.h'') |
| 100 | |
| 101 | tokenize.py -- regular expression that recognizes Python tokens |
| 102 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 103 | pyclbr.py -- Parse a Python file and retrieve classes and methods |
| 104 | |
| 105 | |
| 106 | \section{Platform specific modules} |
| 107 | |
| 108 | ntpath.py -- equivalent of posixpath on 32-bit Windows |
| 109 | |
| 110 | dospath.py -- equivalent of posixpath on MS-DOS |
| 111 | |
| 112 | macpath.py -- equivalent of posixpath on Mac |
| 113 | |
| 114 | |
| 115 | \section{Code objects and files, debugger etc.} |
| 116 | |
| 117 | compileall.py -- force "compilation" of all .py files in a directory |
| 118 | |
| 119 | py_compile.py -- "compile" a .py file to a .pyc file |
| 120 | |
| 121 | codehack.py -- extract a function name from a code object |
| 122 | |
| 123 | dis.py -- Disassembler for Python bytecode objects |
| 124 | |
| 125 | repr.py -- Redo the `...` (representation) but with limits on most |
| 126 | sizes (used by pdb) |
| 127 | |
| 128 | newdir.py -- New dir() function |
| 129 | |
| 130 | |
| 131 | \section{Multimedia} |
| 132 | |
| 133 | audiodev.py -- Plays audio files |
| 134 | |
| 135 | sunau.py -- parse Sun and NeXT audio files |
| 136 | |
| 137 | sunaudio.py -- interpret sun audio headers |
| 138 | |
| 139 | toaiff.py -- Convert "arbitrary" sound files to AIFF files |
| 140 | |
| 141 | sndhdr.py -- recognizing sound files |
| 142 | |
| 143 | wave.py -- parse WAVE files |
| 144 | |
| 145 | whatsound.py -- recognizing sound files |
| 146 | |
| 147 | |
| 148 | \section{Oddities} |
| 149 | |
| 150 | These modules are probably also obsolete, or just not very useful. |
| 151 | |
| 152 | Queue.py -- A multi-producer, multi-consumer queue |
| 153 | |
| 154 | bisect.py -- Bisection algorithms |
| 155 | |
| 156 | dump.py -- Print python code that reconstructs a variable |
| 157 | |
| 158 | emacs.py -- Execute Emacs code from a Python interpreter |
| 159 | |
| 160 | find.py -- find files matching pattern in directory tree |
| 161 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 162 | fpformat.py -- General floating point formatting functions -- obsolete |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 163 | |
| 164 | grep.py -- grep |
| 165 | |
| 166 | mutex.py -- Mutual exclusion -- for use with module sched |
| 167 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 168 | packmail.py -- create a self-unpacking \Unix{} shell archive |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 169 | |
| 170 | poly.py -- Polynomials |
| 171 | |
| 172 | sched.py -- event scheduler class |
| 173 | |
| 174 | shutil.py -- utility functions usable in a shell-like program |
| 175 | |
| 176 | util.py -- useful functions that don't fit elsewhere |
| 177 | |
| 178 | zmod.py -- Compute properties of mathematical "fields" |
| 179 | |
| 180 | tzparse.py -- Parse a timezone specification (unfinished) |
| 181 | |
| 182 | |
| 183 | \section{Obsolete} |
| 184 | |
| 185 | addpack.py -- standard support for "packages" (use ni instead) |
| 186 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 187 | fmt.py -- text formatting abstractions (too slow) |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 188 | |
| 189 | Para.py -- helper for fmt.py |
| 190 | |
| 191 | lockfile.py -- wrapper around FCNTL file locking (use |
| 192 | fcntl.lockf/flock intead) |
| 193 | |
| 194 | tb.py -- Print tracebacks, with a dump of local variables (use |
| 195 | pdb.pm() or traceback.py instead) |
| 196 | |
| 197 | |
| 198 | \section{Extension modules} |
| 199 | |
Guido van Rossum | 8d2893b | 1997-03-27 20:57:52 +0000 | [diff] [blame] | 200 | bsddbmodule.c -- Interface to the Berkeley DB interface (yet another |
| 201 | dbm clone). |
| 202 | |
| 203 | cmathmodule.c -- Exactly the same as math, except takes complex |
| 204 | arguments and returns complex results. |
| 205 | |
| 206 | cursesmodule.c -- Curses interface. |
| 207 | |
| 208 | dbhashmodule.c -- Obsolete. |
| 209 | |
| 210 | dlmodule.c -- A highly experimental and dangerous device for calling |
| 211 | arbitrary C functions in arbitrary shared libraries. |
| 212 | |
| 213 | newmodule.c -- Tommy Burnette's `new' module (creates new empty |
| 214 | objects of certain kinds) -- dangerous. |
| 215 | |
| 216 | nismodule.c -- NIS (a.k.a. Sun's Yellow Pages) interface. |
| 217 | |
| 218 | timingmodule.c -- Measure time intervals to high resolution (obsolete |
| 219 | -- use time.clock() instead). |
| 220 | |
| 221 | The following are SGI specific: |
| 222 | |
| 223 | clmodule.c -- Interface to the SGI compression library. |
| 224 | |
| 225 | svmodule.c -- Interface to the ``simple video'' board on SGI Indigo |
| 226 | (obsolete hardware). |