Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 1 | \chapter{Undocumented Modules} |
Fred Drake | 710c035 | 1998-02-18 15:47:17 +0000 | [diff] [blame] | 2 | \label{undoc} |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 3 | |
| 4 | Here's a quick listing of modules that are currently undocumented, but |
| 5 | that should be documented. Feel free to contribute documentation for |
| 6 | them! (The idea and most contents for this chapter were taken from a |
| 7 | posting by Fredrik Lundh; I have revised some modules' status.) |
| 8 | |
| 9 | |
| 10 | \section{Fundamental, and pretty straightforward to document} |
| 11 | |
Guido van Rossum | 08157f8 | 1997-08-21 02:29:19 +0000 | [diff] [blame] | 12 | cPickle.c -- mostly the same as pickle but no subclassing |
| 13 | |
| 14 | cStringIO.c -- mostly the same as StringIO but no subclassing |
| 15 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 16 | |
Fred Drake | a007c13 | 1997-12-29 21:32:26 +0000 | [diff] [blame] | 17 | \section{Frameworks; somewhat harder to document, but well worth the effort} |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 18 | |
| 19 | Tkinter.py -- Interface to Tcl/Tk for graphical user interfaces; |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 20 | Fredrik Lundh is working on this one! |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 21 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 22 | CGIHTTPServer.py -- CGI-savvy HTTP Server |
| 23 | |
| 24 | SimpleHTTPServer.py -- Simple HTTP Server |
| 25 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 26 | |
| 27 | \section{Stuff useful to a lot of people, including the CGI crowd} |
| 28 | |
| 29 | MimeWriter.py -- Generic MIME writer |
| 30 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 31 | multifile.py -- make each part of a multipart message ``feel'' like |
| 32 | |
Guido van Rossum | 00f1569 | 1997-11-24 17:50:09 +0000 | [diff] [blame] | 33 | fileinput.py -- convenient loop over the lines in a list of input files. |
| 34 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 35 | |
| 36 | \section{Miscellaneous useful utilities} |
| 37 | |
| 38 | Some of these are very old and/or not very robust; marked with ``hmm''. |
| 39 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 40 | calendar.py -- Calendar printing functions |
| 41 | |
Guido van Rossum | 5de1eb9 | 1997-12-30 04:41:56 +0000 | [diff] [blame] | 42 | ConfigParser.py -- Parse a file of sectioned configuration parameters |
| 43 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 44 | cmp.py -- Efficiently compare files |
| 45 | |
| 46 | cmpcache.py -- Efficiently compare files (uses statcache) |
| 47 | |
| 48 | dircache.py -- like os.listdir, but caches results |
| 49 | |
| 50 | dircmp.py -- class to build directory diff tools on |
| 51 | |
| 52 | linecache.py -- Cache lines from files (used by pdb) |
| 53 | |
| 54 | pipes.py -- Conversion pipeline templates (hmm) |
| 55 | |
Guido van Rossum | 5bbf0f7 | 1997-04-30 19:41:48 +0000 | [diff] [blame] | 56 | popen2.py -- improved popen, can read AND write simultaneously |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 57 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 58 | statcache.py -- Maintain a cache of file stats |
| 59 | |
| 60 | colorsys.py -- Conversion between RGB and other color systems |
| 61 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 62 | dbhash.py -- (g)dbm-like wrapper for bsdhash.hashopen |
| 63 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 64 | mhlib.py -- MH interface |
| 65 | |
| 66 | pty.py -- Pseudo terminal utilities |
| 67 | |
| 68 | tty.py -- Terminal utilities |
| 69 | |
| 70 | cmd.py -- build line-oriented command interpreters (used by pdb) |
| 71 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 72 | bdb.py -- A generic Python debugger base class (used by pdb) |
| 73 | |
| 74 | ihooks.py -- Import hook support (for ni and rexec) |
| 75 | |
Guido van Rossum | 9085822 | 1997-08-15 02:52:46 +0000 | [diff] [blame] | 76 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 77 | \section{Parsing Python} |
| 78 | |
| 79 | (One could argue that these should all be documented together with the |
Fred Drake | c211254 | 1997-10-06 21:41:30 +0000 | [diff] [blame] | 80 | parser module.) |
Guido van Rossum | cfaf143 | 1997-07-16 15:48:20 +0000 | [diff] [blame] | 81 | |
Guido van Rossum | 9085822 | 1997-08-15 02:52:46 +0000 | [diff] [blame] | 82 | tokenize.py -- regular expression that recognizes Python tokens; also |
| 83 | contains helper code for colorizing Python source code. |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 84 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 85 | pyclbr.py -- Parse a Python file and retrieve classes and methods |
| 86 | |
| 87 | |
| 88 | \section{Platform specific modules} |
| 89 | |
| 90 | ntpath.py -- equivalent of posixpath on 32-bit Windows |
| 91 | |
| 92 | dospath.py -- equivalent of posixpath on MS-DOS |
| 93 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 94 | |
| 95 | \section{Code objects and files, debugger etc.} |
| 96 | |
| 97 | compileall.py -- force "compilation" of all .py files in a directory |
| 98 | |
| 99 | py_compile.py -- "compile" a .py file to a .pyc file |
| 100 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 101 | repr.py -- Redo the `...` (representation) but with limits on most |
| 102 | sizes (used by pdb) |
| 103 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 104 | |
| 105 | \section{Multimedia} |
| 106 | |
| 107 | audiodev.py -- Plays audio files |
| 108 | |
| 109 | sunau.py -- parse Sun and NeXT audio files |
| 110 | |
| 111 | sunaudio.py -- interpret sun audio headers |
| 112 | |
| 113 | toaiff.py -- Convert "arbitrary" sound files to AIFF files |
| 114 | |
| 115 | sndhdr.py -- recognizing sound files |
| 116 | |
| 117 | wave.py -- parse WAVE files |
| 118 | |
| 119 | whatsound.py -- recognizing sound files |
| 120 | |
| 121 | |
| 122 | \section{Oddities} |
| 123 | |
| 124 | These modules are probably also obsolete, or just not very useful. |
| 125 | |
Guido van Rossum | 7336935 | 1997-11-18 15:30:13 +0000 | [diff] [blame] | 126 | bisect.py -- Bisection algorithms (this is actually useful at times) |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 127 | |
| 128 | dump.py -- Print python code that reconstructs a variable |
| 129 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 130 | find.py -- find files matching pattern in directory tree |
| 131 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 132 | fpformat.py -- General floating point formatting functions -- obsolete |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 133 | |
| 134 | grep.py -- grep |
| 135 | |
| 136 | mutex.py -- Mutual exclusion -- for use with module sched |
| 137 | |
Guido van Rossum | 5bbf0f7 | 1997-04-30 19:41:48 +0000 | [diff] [blame] | 138 | packmail.py -- create a self-unpacking \UNIX{} shell archive |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 139 | |
| 140 | poly.py -- Polynomials |
| 141 | |
| 142 | sched.py -- event scheduler class |
| 143 | |
| 144 | shutil.py -- utility functions usable in a shell-like program |
| 145 | |
| 146 | util.py -- useful functions that don't fit elsewhere |
| 147 | |
| 148 | zmod.py -- Compute properties of mathematical "fields" |
| 149 | |
| 150 | tzparse.py -- Parse a timezone specification (unfinished) |
| 151 | |
| 152 | |
| 153 | \section{Obsolete} |
| 154 | |
Guido van Rossum | cfaf143 | 1997-07-16 15:48:20 +0000 | [diff] [blame] | 155 | newdir.py -- New dir() function (the standard dir() is now just as good) |
| 156 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 157 | addpack.py -- standard support for "packages" (use ni instead) |
| 158 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 159 | fmt.py -- text formatting abstractions (too slow) |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 160 | |
| 161 | Para.py -- helper for fmt.py |
| 162 | |
| 163 | lockfile.py -- wrapper around FCNTL file locking (use |
| 164 | fcntl.lockf/flock intead) |
| 165 | |
| 166 | tb.py -- Print tracebacks, with a dump of local variables (use |
| 167 | pdb.pm() or traceback.py instead) |
| 168 | |
Guido van Rossum | 61c2703 | 1997-07-18 21:08:07 +0000 | [diff] [blame] | 169 | codehack.py -- extract function name or line number from a function |
| 170 | code object (these are now accessible as attributes: co.co_name, |
| 171 | func.func_name, co.co_firstlineno) |
| 172 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 173 | |
| 174 | \section{Extension modules} |
| 175 | |
Guido van Rossum | 8d2893b | 1997-03-27 20:57:52 +0000 | [diff] [blame] | 176 | bsddbmodule.c -- Interface to the Berkeley DB interface (yet another |
| 177 | dbm clone). |
| 178 | |
Guido van Rossum | 8d2893b | 1997-03-27 20:57:52 +0000 | [diff] [blame] | 179 | cursesmodule.c -- Curses interface. |
| 180 | |
Guido van Rossum | b9ee9c2 | 1997-06-02 17:34:02 +0000 | [diff] [blame] | 181 | dbhashmodule.c -- Obsolete; this functionality is now provided by |
| 182 | bsddbmodule.c. |
Guido van Rossum | 8d2893b | 1997-03-27 20:57:52 +0000 | [diff] [blame] | 183 | |
| 184 | dlmodule.c -- A highly experimental and dangerous device for calling |
| 185 | arbitrary C functions in arbitrary shared libraries. |
| 186 | |
| 187 | newmodule.c -- Tommy Burnette's `new' module (creates new empty |
| 188 | objects of certain kinds) -- dangerous. |
| 189 | |
| 190 | nismodule.c -- NIS (a.k.a. Sun's Yellow Pages) interface. |
| 191 | |
| 192 | timingmodule.c -- Measure time intervals to high resolution (obsolete |
| 193 | -- use time.clock() instead). |
| 194 | |
Guido van Rossum | b9ee9c2 | 1997-06-02 17:34:02 +0000 | [diff] [blame] | 195 | stdwinmodule.c -- Interface to STDWIN (an old, unsupported |
| 196 | platform-independent GUI package). Obsolete; use Tkinter for a |
| 197 | platform-independent GUI instead. |
| 198 | |
Guido van Rossum | 8d2893b | 1997-03-27 20:57:52 +0000 | [diff] [blame] | 199 | The following are SGI specific: |
| 200 | |
| 201 | clmodule.c -- Interface to the SGI compression library. |
| 202 | |
| 203 | svmodule.c -- Interface to the ``simple video'' board on SGI Indigo |
| 204 | (obsolete hardware). |
Guido van Rossum | 9bdc436 | 1998-03-03 02:00:14 +0000 | [diff] [blame^] | 205 | |
| 206 | The following is Windows specific: |
| 207 | |
| 208 | msvcrtmodule.c (in directory PC) -- define a number of Windows |
| 209 | specific goodies like \code{khbit()}, \code{getch()} and |
| 210 | \code{setmode()}. (Windows 95 and NT only.) |