Selected Python libraries.
Goal: Learn about selected Python libraries.
Some of the libraries are crucial to the flexibility which Python offers the programmer. Here is the list of selected libraries that come with python distribution:
Python Libraries:
sys - provides access to some of the state of the Python interpreter. Some of this state is very useful, and some is just in the 'nice-to-have' category.
types - constants for the builtin types.
traceback - support for examining the call stack (mostly useful as a piece of debugging support).
pickle - convert Python objects to/from portable byte-streams (c.f. Java 1.1's new object serialization interface)
shelve - Python persistent object storage
copy - shallow and deep object copying operations
marshal - more byte stream conversions.
imp - access to import implementation.
__builtin__ - access to all builtin Python Identifiers.
__main__ - the top level object
string - string manipulation
regex - regular expression support
regsub - regular expression based substitution and splitting
struct - convert from packed binary (C structs) to/from stings
math - standard mathematical functions and constants
rand - pseudo-random number generator
whrandom - Wichmann-Hill random number generator
array - high efficiency array implementation
os - portable OS API
time - time related functions
getopt - standard C getopt functionality
tempfile - generate temp file name
signal - access to POSIX signals
socket - BSD socket style network interface
select - BSD select interface
thread - lightweight process threads
posix - access to POSIX system calls
posixpath - pathname functions from POSIX
pwd - UNIX passwd file access routines
grp - UNIX group file access
dbm - BSD ndbm file access method
gdbm - any guesses?
anydbm - generic dbm-style interface (uses whatever your system prefers)
bsddb - BSD keyed db file access routines
curses - terminal independent I/O
termios - POSIX tty control API
fcntl - POSIX file and I/O control interfaces
posixfile - file object with support for locking
pdb - command line debugger
wdb - windowed debugger using STDWIN
profile - code execution profiler
pstats - view profiler statistics
dis - Python bytecode disassembler
glob - UNIX file name expansion
grep - file searching capabilities
util - the stuff that didn't belong anywhere obvious
cgi - form handling at the HTTPD server
urllib - open a URL using sockets
httplib - HTTP protocol
ftplib - FTP protocol
gopherlib - GOPHER protocol
nntplib - NNTP protocol
urlparse - parse URL strings to tuples
htmllib - HTML parser
sgmllib - SGML parser subset (enough to build the HTML parser)
rfc822 - mail header parser
mimetools - MIME message header parser
audioop - manipulate audio samples
imageop - manipulate images
aifc - audio file access for AIFF/AIFC formats
jpeg - image file access for JPEG format
rgbimg - image file access for SGI RGB files (doesn't require SGI)
md5 - RSA's MD5 message digest algorithm
mpz - GNU multiple precision integer library
rotor - rotor based encryption engine (i.e. German WWII Enigma)
Tkinter - standard Python GUI API
stdwin - access to STDWIN window system
stdwinevents - plumbing for above
rect - more plumbing
SGI IRIX - vendor specific interfaces
Macintosh - as above
Windows/MFC - as above
Linux - as above?
sunaudiodev - as above