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 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 37 | mailbox.py -- handle Unix style, MMDF style, and MH style mailboxes |
| 38 | |
Guido van Rossum | cfaf143 | 1997-07-16 15:48:20 +0000 | [diff] [blame^] | 39 | gzip.py -- compression using zlib (compatible with gzip) |
| 40 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 41 | |
| 42 | \section{Miscellaneous useful utilities} |
| 43 | |
| 44 | Some of these are very old and/or not very robust; marked with ``hmm''. |
| 45 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 46 | calendar.py -- Calendar printing functions |
| 47 | |
| 48 | cmp.py -- Efficiently compare files |
| 49 | |
| 50 | cmpcache.py -- Efficiently compare files (uses statcache) |
| 51 | |
| 52 | dircache.py -- like os.listdir, but caches results |
| 53 | |
| 54 | dircmp.py -- class to build directory diff tools on |
| 55 | |
| 56 | linecache.py -- Cache lines from files (used by pdb) |
| 57 | |
| 58 | pipes.py -- Conversion pipeline templates (hmm) |
| 59 | |
Guido van Rossum | 5bbf0f7 | 1997-04-30 19:41:48 +0000 | [diff] [blame] | 60 | popen2.py -- improved popen, can read AND write simultaneously |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 61 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 62 | statcache.py -- Maintain a cache of file stats |
| 63 | |
| 64 | colorsys.py -- Conversion between RGB and other color systems |
| 65 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 66 | dbhash.py -- (g)dbm-like wrapper for bsdhash.hashopen |
| 67 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 68 | mhlib.py -- MH interface |
| 69 | |
| 70 | pty.py -- Pseudo terminal utilities |
| 71 | |
| 72 | tty.py -- Terminal utilities |
| 73 | |
| 74 | cmd.py -- build line-oriented command interpreters (used by pdb) |
| 75 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 76 | bdb.py -- A generic Python debugger base class (used by pdb) |
| 77 | |
| 78 | ihooks.py -- Import hook support (for ni and rexec) |
| 79 | |
Guido van Rossum | cfaf143 | 1997-07-16 15:48:20 +0000 | [diff] [blame^] | 80 | pprint.py -- support to pretty-print lists, tuples, & dictionaries recursively |
| 81 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 82 | |
| 83 | \section{Parsing Python} |
| 84 | |
| 85 | (One could argue that these should all be documented together with the |
| 86 | parser module; in fact the parser module section already references |
| 87 | the token and symbol modules.) |
| 88 | |
| 89 | token.py -- Tokens (from ``token.h'') |
| 90 | |
| 91 | symbol.py -- Symbols (from ``graminit.h'') |
| 92 | |
Guido van Rossum | cfaf143 | 1997-07-16 15:48:20 +0000 | [diff] [blame^] | 93 | keyword.py -- Keywords (from ``graminit.c'') |
| 94 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 95 | tokenize.py -- regular expression that recognizes Python tokens |
| 96 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 97 | pyclbr.py -- Parse a Python file and retrieve classes and methods |
| 98 | |
| 99 | |
| 100 | \section{Platform specific modules} |
| 101 | |
| 102 | ntpath.py -- equivalent of posixpath on 32-bit Windows |
| 103 | |
| 104 | dospath.py -- equivalent of posixpath on MS-DOS |
| 105 | |
| 106 | macpath.py -- equivalent of posixpath on Mac |
| 107 | |
| 108 | |
| 109 | \section{Code objects and files, debugger etc.} |
| 110 | |
| 111 | compileall.py -- force "compilation" of all .py files in a directory |
| 112 | |
| 113 | py_compile.py -- "compile" a .py file to a .pyc file |
| 114 | |
| 115 | codehack.py -- extract a function name from a code object |
| 116 | |
| 117 | dis.py -- Disassembler for Python bytecode objects |
| 118 | |
| 119 | repr.py -- Redo the `...` (representation) but with limits on most |
| 120 | sizes (used by pdb) |
| 121 | |
Guido van Rossum | cfaf143 | 1997-07-16 15:48:20 +0000 | [diff] [blame^] | 122 | copy_reg.py -- helper to provide extensibility for pickle/cPickle |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 123 | |
| 124 | |
| 125 | \section{Multimedia} |
| 126 | |
| 127 | audiodev.py -- Plays audio files |
| 128 | |
| 129 | sunau.py -- parse Sun and NeXT audio files |
| 130 | |
| 131 | sunaudio.py -- interpret sun audio headers |
| 132 | |
| 133 | toaiff.py -- Convert "arbitrary" sound files to AIFF files |
| 134 | |
| 135 | sndhdr.py -- recognizing sound files |
| 136 | |
| 137 | wave.py -- parse WAVE files |
| 138 | |
| 139 | whatsound.py -- recognizing sound files |
| 140 | |
| 141 | |
| 142 | \section{Oddities} |
| 143 | |
| 144 | These modules are probably also obsolete, or just not very useful. |
| 145 | |
| 146 | Queue.py -- A multi-producer, multi-consumer queue |
Guido van Rossum | cfaf143 | 1997-07-16 15:48:20 +0000 | [diff] [blame^] | 147 | p |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 148 | bisect.py -- Bisection algorithms |
| 149 | |
| 150 | dump.py -- Print python code that reconstructs a variable |
| 151 | |
| 152 | emacs.py -- Execute Emacs code from a Python interpreter |
| 153 | |
| 154 | find.py -- find files matching pattern in directory tree |
| 155 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 156 | fpformat.py -- General floating point formatting functions -- obsolete |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 157 | |
| 158 | grep.py -- grep |
| 159 | |
| 160 | mutex.py -- Mutual exclusion -- for use with module sched |
| 161 | |
Guido van Rossum | 5bbf0f7 | 1997-04-30 19:41:48 +0000 | [diff] [blame] | 162 | packmail.py -- create a self-unpacking \UNIX{} shell archive |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 163 | |
| 164 | poly.py -- Polynomials |
| 165 | |
| 166 | sched.py -- event scheduler class |
| 167 | |
| 168 | shutil.py -- utility functions usable in a shell-like program |
| 169 | |
| 170 | util.py -- useful functions that don't fit elsewhere |
| 171 | |
| 172 | zmod.py -- Compute properties of mathematical "fields" |
| 173 | |
| 174 | tzparse.py -- Parse a timezone specification (unfinished) |
| 175 | |
| 176 | |
| 177 | \section{Obsolete} |
| 178 | |
Guido van Rossum | cfaf143 | 1997-07-16 15:48:20 +0000 | [diff] [blame^] | 179 | newdir.py -- New dir() function (the standard dir() is now just as good) |
| 180 | |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 181 | addpack.py -- standard support for "packages" (use ni instead) |
| 182 | |
Guido van Rossum | 1508538 | 1997-04-03 23:49:28 +0000 | [diff] [blame] | 183 | fmt.py -- text formatting abstractions (too slow) |
Guido van Rossum | 612316f | 1997-03-14 04:12:52 +0000 | [diff] [blame] | 184 | |
| 185 | Para.py -- helper for fmt.py |
| 186 | |
| 187 | lockfile.py -- wrapper around FCNTL file locking (use |
| 188 | fcntl.lockf/flock intead) |
| 189 | |
| 190 | tb.py -- Print tracebacks, with a dump of local variables (use |
| 191 | pdb.pm() or traceback.py instead) |
| 192 | |
| 193 | |
| 194 | \section{Extension modules} |
| 195 | |
Guido van Rossum | 8d2893b | 1997-03-27 20:57:52 +0000 | [diff] [blame] | 196 | bsddbmodule.c -- Interface to the Berkeley DB interface (yet another |
| 197 | dbm clone). |
| 198 | |
| 199 | cmathmodule.c -- Exactly the same as math, except takes complex |
| 200 | arguments and returns complex results. |
| 201 | |
| 202 | cursesmodule.c -- Curses interface. |
| 203 | |
Guido van Rossum | b9ee9c2 | 1997-06-02 17:34:02 +0000 | [diff] [blame] | 204 | dbhashmodule.c -- Obsolete; this functionality is now provided by |
| 205 | bsddbmodule.c. |
Guido van Rossum | 8d2893b | 1997-03-27 20:57:52 +0000 | [diff] [blame] | 206 | |
| 207 | dlmodule.c -- A highly experimental and dangerous device for calling |
| 208 | arbitrary C functions in arbitrary shared libraries. |
| 209 | |
| 210 | newmodule.c -- Tommy Burnette's `new' module (creates new empty |
| 211 | objects of certain kinds) -- dangerous. |
| 212 | |
| 213 | nismodule.c -- NIS (a.k.a. Sun's Yellow Pages) interface. |
| 214 | |
| 215 | timingmodule.c -- Measure time intervals to high resolution (obsolete |
| 216 | -- use time.clock() instead). |
| 217 | |
Guido van Rossum | 5bbf0f7 | 1997-04-30 19:41:48 +0000 | [diff] [blame] | 218 | resource.c -- Interface to getrusage() and friends. |
| 219 | |
Guido van Rossum | b9ee9c2 | 1997-06-02 17:34:02 +0000 | [diff] [blame] | 220 | stdwinmodule.c -- Interface to STDWIN (an old, unsupported |
| 221 | platform-independent GUI package). Obsolete; use Tkinter for a |
| 222 | platform-independent GUI instead. |
| 223 | |
Guido van Rossum | 8d2893b | 1997-03-27 20:57:52 +0000 | [diff] [blame] | 224 | The following are SGI specific: |
| 225 | |
| 226 | clmodule.c -- Interface to the SGI compression library. |
| 227 | |
| 228 | svmodule.c -- Interface to the ``simple video'' board on SGI Indigo |
| 229 | (obsolete hardware). |