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