We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

(the eff-bot guide to) The Standard Python Library

[home] [track changes (rss)]

Based in part on over 3,000 newsgroup articles written by Python veteran Fredrik Lundh since 1995, this book provides brief descriptions and sample scripts for all standard modules in the Python 2.0 library.

For more information on the book and the print editions, see (the eff-bot guide to) The Standard Python Library.

Note that the book was written for Python 2.0, but most of the code still works in current versions.

You can get the chapters in PDF form here.

Table of contents

Preface
Core Modules
More Standard Modules
Threads and Processes
Data Representation
File Formats
Mail and News Message Processing
Network Protocols
Internationalization
Multimedia Modules
Data Storage
Tools and Utilities
Platform Specific Modules
Implementation Support Modules
Other Modules

Copyright © 1999-2005 by Fredrik Lundh


Individual pages:

Overviews (15)

Core Modules [core-modules-index]
Data Representation [data-representation-index]
Data Storage [data-storage-index]
File Formats [file-formats-index]
Implementation Support Modules [implementation-support-modules-index]
Internationalization [internationalization-index]
Mail and News Message Processing [mail-and-news-message-processing-index]
More Standard Modules [more-standard-modules-index]
Multimedia Modules [multimedia-modules-index]
Network Protocols [network-protocols-index]
Other Modules [other-modules-index]
Platform Specific Modules [platform-specific-modules-index]
Preface [preface-index]
Threads and Processes [threads-and-processes-index]
Tools and Utilities [tools-and-utilities-index]

Articles (249)

A

The aifc module [aifc]
The anydbm module [anydbm]
The array module [array]
The asynchat module [asynchat]
The asyncore module [asyncore]
The atexit module [atexit]
The audiodev module [audiodev]

B

The base64 module [base64]
The BaseHTTPServer module [basehttpserver]
The Bastion module [bastion]
The bdb module [bdb]
The binascii module [binascii]
The binhex module [binhex]
The bisect module [bisect]
The bsddb Package [bsddb]
The __builtin__ module [builtin]
The bz2 Module [bz2]

C

The calendar module [calendar]
The cgi module [cgi]
The CGIHTTPServer module [cgihttpserver]
The cgitb Module [cgitb]
The cmath module [cmath]
The cmd module [cmd]
The cmp module [cmp]
The cmpcache module [cmpcache]
The code module [code]
The codecs Module [codecs]
The colorsys module [colorsys]
The commands module [commands]
The compileall module [compileall]
The compiler Package [compiler]
The ConfigParser module [configparser]
The Cookie module [cookie]
The copy module [copy]
The copy_reg module [copy-reg]
The cPickle module [cpickle]
The crypt module [crypt]
The cStringIO module [cstringio]
The csv Module [csv]
The curses module [curses]

D

The datetime Module [datetime]
The dbhash module [dbhash]
The dbm module [dbm]
The difflib Module [difflib]
The dircache module [dircache]
The dircmp module [dircmp]
The dis module [dis]
The distutils Package [distutils]
The doctest Module [doctest]
The DocXMLRPCServer Module [docxmlrpcserver]
The dospath module [dospath]
The dumbdbm module [dumbdbm]
The dummy_thread Module [dummy-thread]
The dummy_threading Module [dummy-threading]

E

The email Package [email]
The encodings Package [encodings]
The encodings.base64_codec Module [encodings-base64-codec]
The encodings.hex_codec Module [encodings-hex-codec]
The encodings.quopri_codec Module [encodings-quopri-codec]
The encodings.rot_13 Module [encodings-rot-13]
The encodings.uu_codec Module [encodings-uu-codec]
The encodings.zlib_codec Module [encodings-zlib-codec]
The errno module [errno]
The exceptions module [exceptions]

F

The fcntl module [fcntl]
The filecmp module [filecmp]
The fileinput module [fileinput]
The find module [find]
The fnmatch module [fnmatch]
The formatter module [formatter]
The ftplib module [ftplib]
The __future__ Module [future]

G

The gc module [gc]
The gdbm module [gdbm]
The getopt module [getopt]
The getpass module [getpass]
The glob module [glob]
The gopherlib module [gopherlib]
The grep module [grep]
The grp module [grp]
The gzip module [gzip]

H

The hashlib module [hashlib]
The heapq Module [heapq]
The hmac Module [hmac]
The hotshot Package [hotshot]
The htmlentitydefs module [htmlentitydefs]
The htmllib module [htmllib]
The HTMLParser Module [htmlparser]
The httplib module [httplib]

I

The idlelib Package [idlelib]
The ihooks module [ihooks]
The imaplib module [imaplib]
The imghdr module [imghdr]
The imp module [imp]
The inspect Module [inspect]
The itertools Module [itertools]

K

The keyword module [keyword]
The knee module [knee]

L

The linecache module [linecache]
The locale module [locale]
The logging Package [logging]

M

The macpath module [macpath]
The macurl2path module [macurl2path]
The mailbox module [mailbox]
The mailcap module [mailcap]
The markupbase Module [markupbase]
The marshal module [marshal]
The math module [math]
The md5 module [md5]
The mimetools module [mimetools]
The mimetypes module [mimetypes]
The MimeWriter module [mimewriter]
The mimify module [mimify]
The mmap module [mmap]
The modulefinder Module [modulefinder]
The msvcrt module [msvcrt]
The multifile module [multifile]

N

The netrc module [netrc]
The new module [new]
The nis module [nis]
The nntplib module [nntplib]
The nt module [nt]
The ntpath module [ntpath]
The nturl2path module [nturl2path]

O

The opcode Module [opcode]
The operator module [operator]
The optparse Module [optparse]
The os module [os]
The os2emxpath Module [os2emxpath]
The os.path module [os-path]

P

The packmail module [packmail]
The parser module [parser]
The pdb module [pdb]
The pickle module [pickle]
The pickletools Module [pickletools]
The pipes module [pipes]
The pkgutil Module [pkgutil]
The platform Module [platform]
The popen2 module [popen2]
The poplib module [poplib]
The posix module [posix]
The posixfile module [posixfile]
The posixpath module [posixpath]
The pprint module [pprint]
The pre module [pre]
The profile module [profile]
The pstats module [pstats]
The pwd module [pwd]
The pyclbr module [pyclbr]
The py_compile module [py-compile]
The pydoc Module [pydoc]

Q

The Queue module [queue]
The quopri module [quopri]

R

The random module [random]
The re module [re]
The readline module [readline]
The reconvert module [reconvert]
The regex module [regex]
The regex_syntax module [regex-syntax]
The regsub module [regsub]
The repr module [repr]
The resource module [resource]
The rexec module [rexec]
The rfc822 module [rfc822]
The rlcompleter module [rlcompleter]
The robotparser module [robotparser]
The rotor module [rotor]

S

The sched module [sched]
The select module [select]
The sets Module [sets]
The sgmllib module [sgmllib]
The sha module [sha]
The shelve module [shelve]
The shlex module [shlex]
The shutil module [shutil]
The signal module [signal]
The SimpleHTTPServer module [simplehttpserver]
The SimpleXMLRPCServer module [simplexmlrpcserver]
The smtpd Module [smtpd]
The smtplib module [smtplib]
The sndhdr module [sndhdr]
The socket module [socket]
The SocketServer module [socketserver]
The soundex module [soundex]
The spwd module [spwd]
The sre module [sre]
The stat module [stat]
The statcache module [statcache]
The statvfs module [statvfs]
The string module [string]
The StringIO module [stringio]
The stringprep Module [stringprep]
The strop module [strop]
The struct module [struct]
The sunau module [sunau]
The sunaudio module [sunaudio]
The symbol module [symbol]
The symtable Module [symtable]
The sys module [sys]
The syslog module [syslog]

T

The tabnanny module [tabnanny]
The tarfile Module [tarfile]
The telnetlib module [telnetlib]
The tempfile module [tempfile]
The termios module [termios]
The textwrap Module [textwrap]
The this Module [this]
The thread module [thread]
The threading module [threading]
The time module [time]
The timeit Module [timeit]
The timing module [timing]
The token module [token]
The tokenize module [tokenize]
The trace Module [trace]
The traceback module [traceback]
The tty module [tty]
The types module [types]
The tzparse module [tzparse]

U

The ucnhash module [ucnhash]
The unicodedata module [unicodedata]
The unittest Module [unittest]
The urllib module [urllib]
The urllib2 module (In Progress) [urllib2]
The urlparse module [urlparse]
The UserDict module [userdict]
The UserList module [userlist]
The UserString module [userstring]
The util module [util]
The uu module [uu]

W

The warnings Module [warnings]
The wave module [wave]
The weakref Module [weakref]
The webbrowser module [webbrowser]
The whatsound module [whatsound]
The whichdb module [whichdb]
The whrandom module [whrandom]
The _winreg module [winreg]
The winsound module [winsound]

X

The xdrlib module [xdrlib]
The xml.dom Package [xml-dom]
The xmllib module [xmllib]
The xml.parsers.expat module [xml-parsers-expat]
The xmlrpclib Module [xmlrpclib]
The xml.sax Package [xml-sax]
The xreadlines Module [xreadlines]

Z

The zipfile module [zipfile]
The zipimport Module [zipimport]
The zlib module [zlib]