blob: a7c10992e137d858218a790707173b57ba48a40e [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 Rossum08157f81997-08-21 02:29:19 +000011cPickle.c -- mostly the same as pickle but no subclassing
12
13cStringIO.c -- mostly the same as StringIO but no subclassing
14
Guido van Rossum612316f1997-03-14 04:12:52 +000015
Fred Drakea007c131997-12-29 21:32:26 +000016\section{Frameworks; somewhat harder to document, but well worth the effort}
Guido van Rossum612316f1997-03-14 04:12:52 +000017
18Tkinter.py -- Interface to Tcl/Tk for graphical user interfaces;
Guido van Rossum15085381997-04-03 23:49:28 +000019Fredrik Lundh is working on this one!
Guido van Rossum612316f1997-03-14 04:12:52 +000020
Guido van Rossum612316f1997-03-14 04:12:52 +000021CGIHTTPServer.py -- CGI-savvy HTTP Server
22
23SimpleHTTPServer.py -- Simple HTTP Server
24
Guido van Rossum612316f1997-03-14 04:12:52 +000025
26\section{Stuff useful to a lot of people, including the CGI crowd}
27
28MimeWriter.py -- Generic MIME writer
29
Guido van Rossum612316f1997-03-14 04:12:52 +000030multifile.py -- make each part of a multipart message ``feel'' like
31
Guido van Rossum00f15691997-11-24 17:50:09 +000032fileinput.py -- convenient loop over the lines in a list of input files.
33
Guido van Rossum612316f1997-03-14 04:12:52 +000034
35\section{Miscellaneous useful utilities}
36
37Some of these are very old and/or not very robust; marked with ``hmm''.
38
Guido van Rossum612316f1997-03-14 04:12:52 +000039calendar.py -- Calendar printing functions
40
41cmp.py -- Efficiently compare files
42
43cmpcache.py -- Efficiently compare files (uses statcache)
44
45dircache.py -- like os.listdir, but caches results
46
47dircmp.py -- class to build directory diff tools on
48
49linecache.py -- Cache lines from files (used by pdb)
50
51pipes.py -- Conversion pipeline templates (hmm)
52
Guido van Rossum5bbf0f71997-04-30 19:41:48 +000053popen2.py -- improved popen, can read AND write simultaneously
Guido van Rossum612316f1997-03-14 04:12:52 +000054
Guido van Rossum612316f1997-03-14 04:12:52 +000055statcache.py -- Maintain a cache of file stats
56
57colorsys.py -- Conversion between RGB and other color systems
58
Guido van Rossum15085381997-04-03 23:49:28 +000059dbhash.py -- (g)dbm-like wrapper for bsdhash.hashopen
60
Guido van Rossum612316f1997-03-14 04:12:52 +000061mhlib.py -- MH interface
62
63pty.py -- Pseudo terminal utilities
64
65tty.py -- Terminal utilities
66
67cmd.py -- build line-oriented command interpreters (used by pdb)
68
Guido van Rossum612316f1997-03-14 04:12:52 +000069bdb.py -- A generic Python debugger base class (used by pdb)
70
71ihooks.py -- Import hook support (for ni and rexec)
72
Guido van Rossum90858221997-08-15 02:52:46 +000073
Guido van Rossum612316f1997-03-14 04:12:52 +000074\section{Parsing Python}
75
76(One could argue that these should all be documented together with the
Fred Drakec2112541997-10-06 21:41:30 +000077parser module.)
Guido van Rossumcfaf1431997-07-16 15:48:20 +000078
Guido van Rossum90858221997-08-15 02:52:46 +000079tokenize.py -- regular expression that recognizes Python tokens; also
80contains helper code for colorizing Python source code.
Guido van Rossum612316f1997-03-14 04:12:52 +000081
Guido van Rossum612316f1997-03-14 04:12:52 +000082pyclbr.py -- Parse a Python file and retrieve classes and methods
83
84
85\section{Platform specific modules}
86
87ntpath.py -- equivalent of posixpath on 32-bit Windows
88
89dospath.py -- equivalent of posixpath on MS-DOS
90
Guido van Rossum612316f1997-03-14 04:12:52 +000091
92\section{Code objects and files, debugger etc.}
93
94compileall.py -- force "compilation" of all .py files in a directory
95
96py_compile.py -- "compile" a .py file to a .pyc file
97
Guido van Rossum612316f1997-03-14 04:12:52 +000098repr.py -- Redo the `...` (representation) but with limits on most
99sizes (used by pdb)
100
Guido van Rossumcfaf1431997-07-16 15:48:20 +0000101copy_reg.py -- helper to provide extensibility for pickle/cPickle
Guido van Rossum612316f1997-03-14 04:12:52 +0000102
103
104\section{Multimedia}
105
106audiodev.py -- Plays audio files
107
108sunau.py -- parse Sun and NeXT audio files
109
110sunaudio.py -- interpret sun audio headers
111
112toaiff.py -- Convert "arbitrary" sound files to AIFF files
113
114sndhdr.py -- recognizing sound files
115
116wave.py -- parse WAVE files
117
118whatsound.py -- recognizing sound files
119
120
121\section{Oddities}
122
123These modules are probably also obsolete, or just not very useful.
124
Guido van Rossum73369351997-11-18 15:30:13 +0000125bisect.py -- Bisection algorithms (this is actually useful at times)
Guido van Rossum612316f1997-03-14 04:12:52 +0000126
127dump.py -- Print python code that reconstructs a variable
128
Guido van Rossum612316f1997-03-14 04:12:52 +0000129find.py -- find files matching pattern in directory tree
130
Guido van Rossum15085381997-04-03 23:49:28 +0000131fpformat.py -- General floating point formatting functions -- obsolete
Guido van Rossum612316f1997-03-14 04:12:52 +0000132
133grep.py -- grep
134
135mutex.py -- Mutual exclusion -- for use with module sched
136
Guido van Rossum5bbf0f71997-04-30 19:41:48 +0000137packmail.py -- create a self-unpacking \UNIX{} shell archive
Guido van Rossum612316f1997-03-14 04:12:52 +0000138
139poly.py -- Polynomials
140
141sched.py -- event scheduler class
142
143shutil.py -- utility functions usable in a shell-like program
144
145util.py -- useful functions that don't fit elsewhere
146
147zmod.py -- Compute properties of mathematical "fields"
148
149tzparse.py -- Parse a timezone specification (unfinished)
150
151
152\section{Obsolete}
153
Guido van Rossumcfaf1431997-07-16 15:48:20 +0000154newdir.py -- New dir() function (the standard dir() is now just as good)
155
Guido van Rossum612316f1997-03-14 04:12:52 +0000156addpack.py -- standard support for "packages" (use ni instead)
157
Guido van Rossum15085381997-04-03 23:49:28 +0000158fmt.py -- text formatting abstractions (too slow)
Guido van Rossum612316f1997-03-14 04:12:52 +0000159
160Para.py -- helper for fmt.py
161
162lockfile.py -- wrapper around FCNTL file locking (use
163fcntl.lockf/flock intead)
164
165tb.py -- Print tracebacks, with a dump of local variables (use
166pdb.pm() or traceback.py instead)
167
Guido van Rossum61c27031997-07-18 21:08:07 +0000168codehack.py -- extract function name or line number from a function
169code object (these are now accessible as attributes: co.co_name,
170func.func_name, co.co_firstlineno)
171
Guido van Rossum612316f1997-03-14 04:12:52 +0000172
173\section{Extension modules}
174
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000175bsddbmodule.c -- Interface to the Berkeley DB interface (yet another
176dbm clone).
177
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000178cursesmodule.c -- Curses interface.
179
Guido van Rossumb9ee9c21997-06-02 17:34:02 +0000180dbhashmodule.c -- Obsolete; this functionality is now provided by
181bsddbmodule.c.
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000182
183dlmodule.c -- A highly experimental and dangerous device for calling
184arbitrary C functions in arbitrary shared libraries.
185
186newmodule.c -- Tommy Burnette's `new' module (creates new empty
187objects of certain kinds) -- dangerous.
188
189nismodule.c -- NIS (a.k.a. Sun's Yellow Pages) interface.
190
191timingmodule.c -- Measure time intervals to high resolution (obsolete
192-- use time.clock() instead).
193
Guido van Rossum5bbf0f71997-04-30 19:41:48 +0000194resource.c -- Interface to getrusage() and friends.
195
Guido van Rossumb9ee9c21997-06-02 17:34:02 +0000196stdwinmodule.c -- Interface to STDWIN (an old, unsupported
197platform-independent GUI package). Obsolete; use Tkinter for a
198platform-independent GUI instead.
199
Guido van Rossum8d2893b1997-03-27 20:57:52 +0000200The following are SGI specific:
201
202clmodule.c -- Interface to the SGI compression library.
203
204svmodule.c -- Interface to the ``simple video'' board on SGI Indigo
205(obsolete hardware).