blob: 08e62fb3d0f84f1c74ffdd726c94d221ee09c459 [file] [log] [blame]
Guido van Rossum612316f1997-03-14 04:12:52 +00001\chapter{Undocumented Modules}
2
3Here's a quick listing of modules that are currently undocumented, but
4that should be documented. Feel free to contribute documentation for
5them! (The idea and most contents for this chapter were taken from a
6posting by Fredrik Lundh; I have revised some modules' status.)
7
8
9\section{Fundamental, and pretty straightforward to document}
10
Guido van Rossum612316f1997-03-14 04:12:52 +000011ni.py -- New import scheme with package support
12
Guido van Rossum612316f1997-03-14 04:12:52 +000013
14\section{Frameworks; somewhat harder to document, but
15well worth the effort}
16
17Tkinter.py -- Interface to Tcl/Tk for graphical user interfaces;
Guido van Rossum15085381997-04-03 23:49:28 +000018Fredrik Lundh is working on this one!
Guido van Rossum612316f1997-03-14 04:12:52 +000019
20BaseHTTPServer.py -- HTTP server base class
21
22CGIHTTPServer.py -- CGI-savvy HTTP Server
23
24SimpleHTTPServer.py -- Simple HTTP Server
25
Guido van Rossum612316f1997-03-14 04:12:52 +000026
27\section{Stuff useful to a lot of people, including the CGI crowd}
28
29MimeWriter.py -- Generic MIME writer
30
31mimify.py -- Mimification and unmimification of mail messages
32
33multifile.py -- make each part of a multipart message ``feel'' like
34
Guido van Rossumcfaf1431997-07-16 15:48:20 +000035gzip.py -- compression using zlib (compatible with gzip)
36
Guido van Rossum612316f1997-03-14 04:12:52 +000037
38\section{Miscellaneous useful utilities}
39
40Some of these are very old and/or not very robust; marked with ``hmm''.
41
Guido van Rossum612316f1997-03-14 04:12:52 +000042calendar.py -- Calendar printing functions
43
44cmp.py -- Efficiently compare files
45
46cmpcache.py -- Efficiently compare files (uses statcache)
47
48dircache.py -- like os.listdir, but caches results
49
50dircmp.py -- class to build directory diff tools on
51
52linecache.py -- Cache lines from files (used by pdb)
53
54pipes.py -- Conversion pipeline templates (hmm)
55
Guido van Rossum5bbf0f71997-04-30 19:41:48 +000056popen2.py -- improved popen, can read AND write simultaneously
Guido van Rossum612316f1997-03-14 04:12:52 +000057
Guido van Rossum612316f1997-03-14 04:12:52 +000058statcache.py -- Maintain a cache of file stats
59
60colorsys.py -- Conversion between RGB and other color systems
61
Guido van Rossum15085381997-04-03 23:49:28 +000062dbhash.py -- (g)dbm-like wrapper for bsdhash.hashopen
63
Guido van Rossum612316f1997-03-14 04:12:52 +000064mhlib.py -- MH interface
65
66pty.py -- Pseudo terminal utilities
67
68tty.py -- Terminal utilities
69
70cmd.py -- build line-oriented command interpreters (used by pdb)
71
Guido van Rossum612316f1997-03-14 04:12:52 +000072bdb.py -- A generic Python debugger base class (used by pdb)
73
74ihooks.py -- Import hook support (for ni and rexec)
75
Guido van Rossum612316f1997-03-14 04:12:52 +000076\section{Parsing Python}
77
78(One could argue that these should all be documented together with the
79parser module; in fact the parser module section already references
80the token and symbol modules.)
81
82token.py -- Tokens (from ``token.h'')
83
84symbol.py -- Symbols (from ``graminit.h'')
85
Guido van Rossumcfaf1431997-07-16 15:48:20 +000086keyword.py -- Keywords (from ``graminit.c'')
87
Guido van Rossum612316f1997-03-14 04:12:52 +000088tokenize.py -- regular expression that recognizes Python tokens
89
Guido van Rossum612316f1997-03-14 04:12:52 +000090pyclbr.py -- Parse a Python file and retrieve classes and methods
91
92
93\section{Platform specific modules}
94
95ntpath.py -- equivalent of posixpath on 32-bit Windows
96
97dospath.py -- equivalent of posixpath on MS-DOS
98
99macpath.py -- equivalent of posixpath on Mac
100
101
102\section{Code objects and files, debugger etc.}
103
104compileall.py -- force "compilation" of all .py files in a directory
105
106py_compile.py -- "compile" a .py file to a .pyc file
107
108codehack.py -- extract a function name from a code object
109
110dis.py -- Disassembler for Python bytecode objects
111
112repr.py -- Redo the `...` (representation) but with limits on most
113sizes (used by pdb)
114
Guido van Rossumcfaf1431997-07-16 15:48:20 +0000115copy_reg.py -- helper to provide extensibility for pickle/cPickle
Guido van Rossum612316f1997-03-14 04:12:52 +0000116
117
118\section{Multimedia}
119
120audiodev.py -- Plays audio files
121
122sunau.py -- parse Sun and NeXT audio files
123
124sunaudio.py -- interpret sun audio headers
125
126toaiff.py -- Convert "arbitrary" sound files to AIFF files
127
128sndhdr.py -- recognizing sound files
129
130wave.py -- parse WAVE files
131
132whatsound.py -- recognizing sound files
133
134
135\section{Oddities}
136
137These modules are probably also obsolete, or just not very useful.
138
139Queue.py -- A multi-producer, multi-consumer queue
Guido van Rossumcfaf1431997-07-16 15:48:20 +0000140p
Guido van Rossum612316f1997-03-14 04:12:52 +0000141bisect.py -- Bisection algorithms
142
143dump.py -- Print python code that reconstructs a variable
144
145emacs.py -- Execute Emacs code from a Python interpreter
146
147find.py -- find files matching pattern in directory tree
148
Guido van Rossum15085381997-04-03 23:49:28 +0000149fpformat.py -- General floating point formatting functions -- obsolete
Guido van Rossum612316f1997-03-14 04:12:52 +0000150
151grep.py -- grep
152
153mutex.py -- Mutual exclusion -- for use with module sched
154
Guido van Rossum5bbf0f71997-04-30 19:41:48 +0000155packmail.py -- create a self-unpacking \UNIX{} shell archive
Guido van Rossum612316f1997-03-14 04:12:52 +0000156
157poly.py -- Polynomials
158
159sched.py -- event scheduler class
160
161shutil.py -- utility functions usable in a shell-like program
162
163util.py -- useful functions that don't fit elsewhere
164
165zmod.py -- Compute properties of mathematical "fields"
166
167tzparse.py -- Parse a timezone specification (unfinished)
168
169
170\section{Obsolete}
171
Guido van Rossumcfaf1431997-07-16 15:48:20 +0000172newdir.py -- New dir() function (the standard dir() is now just as good)
173
Guido van Rossum612316f1997-03-14 04:12:52 +0000174addpack.py -- standard support for "packages" (use ni instead)
175
Guido van Rossum15085381997-04-03 23:49:28 +0000176fmt.py -- text formatting abstractions (too slow)
Guido van Rossum612316f1997-03-14 04:12:52 +0000177
178Para.py -- helper for fmt.py
179
180lockfile.py -- wrapper around FCNTL file locking (use
181fcntl.lockf/flock intead)
182
183tb.py -- Print tracebacks, with a dump of local variables (use
184pdb.pm() or traceback.py instead)
185
186
187\section{Extension modules}
188
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000189bsddbmodule.c -- Interface to the Berkeley DB interface (yet another
190dbm clone).
191
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000192cursesmodule.c -- Curses interface.
193
Guido van Rossumb9ee9c21997-06-02 17:34:02 +0000194dbhashmodule.c -- Obsolete; this functionality is now provided by
195bsddbmodule.c.
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000196
197dlmodule.c -- A highly experimental and dangerous device for calling
198arbitrary C functions in arbitrary shared libraries.
199
200newmodule.c -- Tommy Burnette's `new' module (creates new empty
201objects of certain kinds) -- dangerous.
202
203nismodule.c -- NIS (a.k.a. Sun's Yellow Pages) interface.
204
205timingmodule.c -- Measure time intervals to high resolution (obsolete
206-- use time.clock() instead).
207
Guido van Rossum5bbf0f71997-04-30 19:41:48 +0000208resource.c -- Interface to getrusage() and friends.
209
Guido van Rossumb9ee9c21997-06-02 17:34:02 +0000210stdwinmodule.c -- Interface to STDWIN (an old, unsupported
211platform-independent GUI package). Obsolete; use Tkinter for a
212platform-independent GUI instead.
213
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000214The following are SGI specific:
215
216clmodule.c -- Interface to the SGI compression library.
217
218svmodule.c -- Interface to the ``simple video'' board on SGI Indigo
219(obsolete hardware).