mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
More source links
This commit is contained in:
parent
1a90f9c52f
commit
469271d4ea
@ -4,6 +4,9 @@
|
||||
.. module:: dummy_threading
|
||||
:synopsis: Drop-in replacement for the threading module.
|
||||
|
||||
**Source code:** :source:`Lib/dummy_threading.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides a duplicate interface to the :mod:`threading` module. It
|
||||
is meant to be imported when the :mod:`_thread` module is not provided on a
|
||||
|
@ -6,6 +6,9 @@
|
||||
.. moduleauthor:: Jeffrey Yasskin <jyasskin at gmail.com>
|
||||
.. sectionauthor:: Jeffrey Yasskin <jyasskin at gmail.com>
|
||||
|
||||
**Source code:** :source:`Lib/fractions.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`fractions` module provides support for rational number arithmetic.
|
||||
|
||||
|
@ -9,6 +9,10 @@
|
||||
pair: FTP; protocol
|
||||
single: FTP; ftplib (standard module)
|
||||
|
||||
**Source code:** :source:`Lib/ftp.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module defines the class :class:`FTP` and a few related items. The
|
||||
:class:`FTP` class implements the client side of the FTP protocol. You can use
|
||||
this to write Python programs that perform a variety of automated FTP jobs, such
|
||||
|
@ -5,6 +5,10 @@
|
||||
:synopsis: Portable parser for command line options; support both short and
|
||||
long option names.
|
||||
|
||||
**Source code:** :source:`Lib/getopt.py`
|
||||
|
||||
--------------
|
||||
|
||||
.. note::
|
||||
The :mod:`getopt` module is a parser for command line options whose API is
|
||||
designed to be familiar to users of the C :c:func:`getopt` function. Users who
|
||||
|
@ -6,6 +6,9 @@
|
||||
.. moduleauthor:: Barry A. Warsaw <barry@zope.com>
|
||||
.. sectionauthor:: Barry A. Warsaw <barry@zope.com>
|
||||
|
||||
**Source code:** :source:`Lib/gettext.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`gettext` module provides internationalization (I18N) and localization
|
||||
(L10N) services for your Python modules and applications. It supports both the
|
||||
|
@ -4,6 +4,10 @@
|
||||
.. module:: gzip
|
||||
:synopsis: Interfaces for gzip compression and decompression using file objects.
|
||||
|
||||
**Source code:** :source:`Lib/gzip.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides a simple interface to compress and decompress files just
|
||||
like the GNU programs :program:`gzip` and :program:`gunzip` would.
|
||||
|
||||
|
@ -11,6 +11,10 @@
|
||||
single: message digest, MD5
|
||||
single: secure hash algorithm, SHA1, SHA224, SHA256, SHA384, SHA512
|
||||
|
||||
**Source code:** :source:`Lib/hashlib.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module implements a common interface to many different secure hash and
|
||||
message digest algorithms. Included are the FIPS secure hash algorithms SHA1,
|
||||
SHA224, SHA256, SHA384, and SHA512 (defined in FIPS 180-2) as well as RSA's MD5
|
||||
|
@ -7,6 +7,9 @@
|
||||
.. moduleauthor:: Gerhard Häring <ghaering@users.sourceforge.net>
|
||||
.. sectionauthor:: Gerhard Häring <ghaering@users.sourceforge.net>
|
||||
|
||||
**Source code:** :source:`Lib/hmac.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module implements the HMAC algorithm as described by :rfc:`2104`.
|
||||
|
||||
|
@ -11,6 +11,10 @@
|
||||
|
||||
.. index:: module: urllib.request
|
||||
|
||||
**Source code:** :source:`Lib/http/client.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module defines classes which implement the client side of the HTTP and
|
||||
HTTPS protocols. It is normally not used directly --- the module
|
||||
:mod:`urllib.request` uses it to handle URLs that use HTTP and HTTPS.
|
||||
|
@ -6,6 +6,9 @@
|
||||
.. moduleauthor:: John J. Lee <jjl@pobox.com>
|
||||
.. sectionauthor:: John J. Lee <jjl@pobox.com>
|
||||
|
||||
**Source code:** :source:`Lib/http/cookiejar.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`http.cookiejar` module defines classes for automatic handling of HTTP
|
||||
cookies. It is useful for accessing web sites that require small pieces of data
|
||||
|
@ -6,6 +6,9 @@
|
||||
.. moduleauthor:: Timothy O'Malley <timo@alum.mit.edu>
|
||||
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
|
||||
|
||||
**Source code:** :source:`Lib/http/cookies.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`http.cookies` module defines classes for abstracting the concept of
|
||||
cookies, an HTTP state management mechanism. It supports both simple string-only
|
||||
|
@ -11,6 +11,10 @@
|
||||
single: URL
|
||||
single: httpd
|
||||
|
||||
**Source code:** :source:`Lib/http/server.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module defines classes for implementing HTTP servers (Web servers).
|
||||
|
||||
One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` subclass.
|
||||
|
@ -16,6 +16,10 @@
|
||||
pair: IMAP4_SSL; protocol
|
||||
pair: IMAP4_stream; protocol
|
||||
|
||||
**Source code:** :source:`Lib/imaplib.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module defines three classes, :class:`IMAP4`, :class:`IMAP4_SSL` and
|
||||
:class:`IMAP4_stream`, which encapsulate a connection to an IMAP4 server and
|
||||
implement a large subset of the IMAP4rev1 client protocol as defined in
|
||||
|
@ -4,6 +4,9 @@
|
||||
.. module:: imghdr
|
||||
:synopsis: Determine the type of image contained in a file or byte stream.
|
||||
|
||||
**Source code:** :source:`Lib/imghdr.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`imghdr` module determines the type of image contained in a file or
|
||||
byte stream.
|
||||
|
@ -6,6 +6,9 @@
|
||||
.. moduleauthor:: Ka-Ping Yee <ping@lfw.org>
|
||||
.. sectionauthor:: Ka-Ping Yee <ping@lfw.org>
|
||||
|
||||
**Source code:** :source:`Lib/inspect.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`inspect` module provides several useful functions to help get
|
||||
information about live objects such as modules, classes, methods, functions,
|
||||
|
@ -4,6 +4,9 @@
|
||||
.. module:: mailcap
|
||||
:synopsis: Mailcap file handling.
|
||||
|
||||
**Source code:** :source:`Lib/mailcap.py`
|
||||
|
||||
--------------
|
||||
|
||||
Mailcap files are used to configure how MIME-aware applications such as mail
|
||||
readers and Web browsers react to files with different MIME types. (The name
|
||||
|
@ -8,6 +8,10 @@
|
||||
|
||||
.. index:: pair: MIME; content type
|
||||
|
||||
**Source code:** :source:`Lib/mimetypes.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`mimetypes` module converts between a filename or URL and the MIME type
|
||||
associated with the filename extension. Conversions are provided from filename
|
||||
to MIME type and from MIME type to filename extension; encodings are not
|
||||
|
@ -7,6 +7,9 @@
|
||||
.. module:: modulefinder
|
||||
:synopsis: Find modules used by a script.
|
||||
|
||||
**Source code:** :source:`Lib/modulefinder.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides a :class:`ModuleFinder` class that can be used to determine
|
||||
the set of modules imported by a script. ``modulefinder.py`` can also be run as
|
||||
|
@ -7,6 +7,9 @@
|
||||
.. moduleauthor:: Eric S. Raymond <esr@snark.thyrsus.com>
|
||||
.. sectionauthor:: Eric S. Raymond <esr@snark.thyrsus.com>
|
||||
|
||||
**Source code:** :source:`Lib/netrc.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :class:`netrc` class parses and encapsulates the netrc file format used by
|
||||
the Unix :program:`ftp` program and other FTP clients.
|
||||
|
@ -10,6 +10,10 @@
|
||||
pair: NNTP; protocol
|
||||
single: Network News Transfer Protocol
|
||||
|
||||
**Source code:** :source:`Lib/nntplib.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module defines the class :class:`NNTP` which implements the client side of
|
||||
the Network News Transfer Protocol. It can be used to implement a news reader
|
||||
or poster, or automated news processors. It is compatible with :rfc:`3977`
|
||||
|
@ -4,14 +4,16 @@
|
||||
.. module:: optparse
|
||||
:synopsis: Command-line option parsing library.
|
||||
:deprecated:
|
||||
|
||||
.. deprecated:: 2.7
|
||||
The :mod:`optparse` module is deprecated and will not be developed further;
|
||||
development will continue with the :mod:`argparse` module.
|
||||
|
||||
.. moduleauthor:: Greg Ward <gward@python.net>
|
||||
.. sectionauthor:: Greg Ward <gward@python.net>
|
||||
|
||||
**Source code:** :source:`Lib/optparse.py`
|
||||
|
||||
--------------
|
||||
|
||||
.. deprecated:: 2.7
|
||||
The :mod:`optparse` module is deprecated and will not be developed further;
|
||||
development will continue with the :mod:`argparse` module.
|
||||
|
||||
:mod:`optparse` is a more convenient, flexible, and powerful library for parsing
|
||||
command-line options than the old :mod:`getopt` module. :mod:`optparse` uses a
|
||||
|
@ -6,6 +6,9 @@
|
||||
:synopsis: A Python interface to Unix shell pipelines.
|
||||
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
|
||||
|
||||
**Source code:** :source:`Lib/pipes.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`pipes` module defines a class to abstract the concept of a *pipeline*
|
||||
--- a sequence of converters from one file to another.
|
||||
|
@ -4,6 +4,10 @@
|
||||
.. module:: pkgutil
|
||||
:synopsis: Utilities for the import system.
|
||||
|
||||
**Source code:** :source:`Lib/pkgutil.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides utilities for the import system, in particular package
|
||||
support.
|
||||
|
||||
|
@ -6,6 +6,9 @@
|
||||
.. moduleauthor:: Marc-Andre Lemburg <mal@egenix.com>
|
||||
.. sectionauthor:: Bjorn Pettersen <bpettersen@corp.fairisaac.com>
|
||||
|
||||
**Source code:** :source:`Lib/platform.py`
|
||||
|
||||
--------------
|
||||
|
||||
.. note::
|
||||
|
||||
|
@ -11,6 +11,10 @@
|
||||
pair: plist; file
|
||||
single: property list
|
||||
|
||||
**Source code:** :source:`Lib/plistlib.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides an interface for reading and writing the "property list"
|
||||
XML files used mainly by Mac OS X.
|
||||
|
||||
|
@ -8,6 +8,10 @@
|
||||
|
||||
.. index:: pair: POP3; protocol
|
||||
|
||||
**Source code:** :source:`Lib/poplib.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module defines a class, :class:`POP3`, which encapsulates a connection to a
|
||||
POP3 server and implements the protocol as defined in :rfc:`1725`. The
|
||||
:class:`POP3` class supports both the minimal and optional command sets.
|
||||
|
@ -9,6 +9,9 @@ The Python Profilers
|
||||
.. module:: profile
|
||||
:synopsis: Python source profiler.
|
||||
|
||||
**Source code:** :source:`Lib/profile.py` and :source:`Lib/pstats.py`
|
||||
|
||||
--------------
|
||||
|
||||
.. _profiler-introduction:
|
||||
|
||||
|
@ -8,6 +8,10 @@
|
||||
|
||||
.. index:: pair: file; byte-code
|
||||
|
||||
**Source code:** :source:`Lib/py_compile.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`py_compile` module provides a function to generate a byte-code file
|
||||
from a source file, and another function used when the module source file is
|
||||
invoked as a script.
|
||||
|
@ -12,6 +12,10 @@
|
||||
single: documentation; online
|
||||
single: help; online
|
||||
|
||||
**Source code:** :source:`Lib/pydoc.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`pydoc` module automatically generates documentation from Python
|
||||
modules. The documentation can be presented as pages of text on the console,
|
||||
served to a Web browser, or saved to HTML files.
|
||||
|
@ -5,6 +5,9 @@
|
||||
:synopsis: Python identifier completion, suitable for the GNU readline library.
|
||||
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
|
||||
|
||||
**Source code:** :source:`Lib/rlcompleter.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`rlcompleter` module defines a completion function suitable for the
|
||||
:mod:`readline` module by completing valid Python identifiers and keywords.
|
||||
|
@ -4,6 +4,9 @@
|
||||
.. module:: site
|
||||
:synopsis: A standard way to reference site-specific modules.
|
||||
|
||||
**Source code:** :source:`Lib/site.py`
|
||||
|
||||
--------------
|
||||
|
||||
**This module is automatically imported during initialization.** The automatic
|
||||
import can be suppressed using the interpreter's :option:`-S` option.
|
||||
|
@ -7,8 +7,9 @@
|
||||
.. moduleauthor:: Barry Warsaw <barry@zope.com>
|
||||
.. sectionauthor:: Moshe Zadka <moshez@moshez.org>
|
||||
|
||||
**Source code:** :source:`Lib/smtpd.py`
|
||||
|
||||
|
||||
--------------
|
||||
|
||||
This module offers several classes to implement SMTP (email) servers.
|
||||
|
||||
@ -166,4 +167,4 @@ SMTPChannel Objects
|
||||
DATA Sets the internal state to :attr:`DATA` and stores remaining lines
|
||||
from the client in :attr:`received_data` until the terminator
|
||||
"\r\n.\r\n" is received.
|
||||
======== ===================================================================
|
||||
======== ===================================================================
|
||||
|
@ -10,6 +10,10 @@
|
||||
pair: SMTP; protocol
|
||||
single: Simple Mail Transfer Protocol
|
||||
|
||||
**Source code:** :source:`Lib/smtplib.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`smtplib` module defines an SMTP client session object that can be used
|
||||
to send mail to any Internet machine with an SMTP or ESMTP listener daemon. For
|
||||
details of SMTP and ESMTP operation, consult :rfc:`821` (Simple Mail Transfer
|
||||
|
@ -10,6 +10,10 @@
|
||||
single: A-LAW
|
||||
single: u-LAW
|
||||
|
||||
**Source code:** :source:`Lib/sndhdr.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`sndhdr` provides utility functions which attempt to determine the type
|
||||
of sound data which is in a file. When these functions are able to determine
|
||||
what type of sound data is stored in a file, they return a tuple ``(type,
|
||||
|
@ -4,6 +4,10 @@
|
||||
.. module:: socketserver
|
||||
:synopsis: A framework for network servers.
|
||||
|
||||
**Source code:** :source:`Lib/socketserver.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`socketserver` module simplifies the task of writing network servers.
|
||||
|
||||
There are four basic server classes: :class:`TCPServer` uses the Internet TCP
|
||||
|
@ -12,6 +12,10 @@
|
||||
|
||||
.. index:: TLS, SSL, Transport Layer Security, Secure Sockets Layer
|
||||
|
||||
**Source code:** :source:`Lib/ssl.py`
|
||||
|
||||
--------------
|
||||
|
||||
This module provides access to Transport Layer Security (often known as "Secure
|
||||
Sockets Layer") encryption and peer authentication facilities for network
|
||||
sockets, both client-side and server-side. This module uses the OpenSSL
|
||||
|
@ -6,6 +6,9 @@
|
||||
os.lstat() and os.fstat().
|
||||
.. sectionauthor:: Skip Montanaro <skip@automatrix.com>
|
||||
|
||||
**Source code:** :source:`Lib/stat.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`stat` module defines constants and functions for interpreting the
|
||||
results of :func:`os.stat`, :func:`os.fstat` and :func:`os.lstat` (if they
|
||||
|
@ -5,6 +5,9 @@
|
||||
:synopsis: Provide an interface to the Sun AU sound format.
|
||||
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
|
||||
|
||||
**Source code:** :source:`Lib/sunau.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`sunau` module provides a convenient interface to the Sun AU sound
|
||||
format. Note that this module is interface-compatible with the modules
|
||||
|
@ -8,6 +8,10 @@
|
||||
|
||||
.. index:: single: protocol; Telnet
|
||||
|
||||
**Source code:** :source:`Lib/telnetlib.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`telnetlib` module provides a :class:`Telnet` class that implements the
|
||||
Telnet protocol. See :rfc:`854` for details about the protocol. In addition, it
|
||||
provides symbolic constants for the protocol characters (see below), and for the
|
||||
|
@ -6,6 +6,9 @@
|
||||
.. module:: warnings
|
||||
:synopsis: Issue warning messages and control their disposition.
|
||||
|
||||
**Source code:** :source:`Lib/warnings.py`
|
||||
|
||||
--------------
|
||||
|
||||
Warning messages are typically issued in situations where it is useful to alert
|
||||
the user of some condition in a program, where that condition (normally) doesn't
|
||||
|
@ -6,6 +6,10 @@
|
||||
.. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
|
||||
.. Documentations stolen from comments in file.
|
||||
|
||||
**Source code:** :source:`Lib/wave.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`wave` module provides a convenient interface to the WAV sound format.
|
||||
It does not support compression/decompression, but it does support mono/stereo.
|
||||
|
||||
|
@ -8,6 +8,9 @@
|
||||
.. moduleauthor:: Martin von Löwis <martin@loewis.home.cs.tu-berlin.de>
|
||||
.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
|
||||
|
||||
**Source code:** :source:`Lib/weakref.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`weakref` module allows the Python programmer to create :dfn:`weak
|
||||
references` to objects.
|
||||
|
@ -6,6 +6,9 @@
|
||||
.. moduleauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
|
||||
.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
|
||||
|
||||
**Source code:** :source:`Lib/webbrowser.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`webbrowser` module provides a high-level interface to allow displaying
|
||||
Web-based documents to users. Under most circumstances, simply calling the
|
||||
|
@ -9,6 +9,10 @@
|
||||
single: XDR
|
||||
single: External Data Representation
|
||||
|
||||
**Source code:** :source:`Lib/xdrlib.py`
|
||||
|
||||
--------------
|
||||
|
||||
The :mod:`xdrlib` module supports the External Data Representation Standard as
|
||||
described in :rfc:`1014`, written by Sun Microsystems, Inc. June 1987. It
|
||||
supports most of the data types described in the RFC.
|
||||
|
@ -6,6 +6,10 @@
|
||||
.. moduleauthor:: James C. Ahlstrom <jim@interet.com>
|
||||
.. sectionauthor:: James C. Ahlstrom <jim@interet.com>
|
||||
|
||||
**Source code:** :source:`Lib/zipfile.py`
|
||||
|
||||
--------------
|
||||
|
||||
The ZIP file format is a common archive and compression standard. This module
|
||||
provides tools to create, read, write, append, and list a ZIP file. Any
|
||||
advanced use of this module will require an understanding of the format, as
|
||||
|
Loading…
Reference in New Issue
Block a user