0% found this document useful (0 votes)
31 views7 pages

Python 3.13 Module Index Overview

The document is the Python Module Index for Python 3.13.5, providing an overview of available modules and their functionalities. It lists various modules categorized alphabetically, including core modules like 'os', 'sys', and 'json', as well as deprecated modules. The index serves as a reference for developers to find and understand the purpose of different modules in Python.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views7 pages

Python 3.13 Module Index Overview

The document is the Python Module Index for Python 3.13.5, providing an overview of available modules and their functionalities. It lists various modules categorized alphabetically, including core modules like 'os', 'sys', and 'json', as well as deprecated modules. The index serves as a reference for developers to find and understand the purpose of different modules in Python.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

31/07/2025, 11:09 Python Module Index — Python 3.13.

5 documentation

Python Module Index


_|a|b|c|d|e|f|g|h|i|j|k|l|m|n|o|p|q|r|s|t|u|v|w|x|z

_
__future__ Future statement definitions
__main__ The environment where top-level code is run. Covers command-line interfaces, import-
time behavior, and ``__name__ == '__main__'``.
_thread Low-level threading API.
_tkinter A binary module that contains the low-level interface to Tcl/Tk.

a
abc Abstract base classes according to :pep:`3119`.
aifc Deprecated: Removed in 3.13.
argparse Command-line option and argument parsing library.
array Space efficient arrays of uniformly typed numeric values.
ast Abstract Syntax Tree classes and manipulation.
asynchat Deprecated: Removed in 3.12.
asyncio Asynchronous I/O.
asyncore Deprecated: Removed in 3.12.
atexit Register and execute cleanup functions.
audioop Deprecated: Removed in 3.13.

b
base64 RFC 4648: Base16, Base32, Base64 Data Encodings; Base85 and Ascii85
bdb Debugger framework.
binascii Tools for converting between binary and various ASCII-encoded binary representations.
bisect Array bisection algorithms for binary searching.
builtins The module that provides the built-in namespace.
bz2 Interfaces for bzip2 compression and decompression.

c
calendar Functions for working with calendars, including some emulation of the Unix cal
program.
cgi Deprecated: Removed in 3.13.
cgitb Deprecated: Removed in 3.13.
chunk Deprecated: Removed in 3.13.
cmath Mathematical functions for complex numbers.
cmd Build line-oriented command interpreters.

[Link] 1/7
31/07/2025, 11:09 Python Module Index — Python 3.13.5 documentation

code Facilities to implement read-eval-print loops.


codecs Encode and decode data and streams.
codeop Compile (possibly incomplete) Python code.
collections Container datatypes
colorsys Conversion functions between RGB and other color systems.
compileall Tools for byte-compiling all Python source files in a directory tree.
concurrent
configparser Configuration file parser.
contextlib Utilities for with-statement contexts.
contextvars Context Variables
copy Shallow and deep copy operations.
copyreg Register pickle support functions.
cProfile
crypt Deprecated: Removed in 3.13.
csv Write and read tabular data to and from delimited files.
ctypes A foreign function library for Python.
curses (Unix) An interface to the curses library, providing portable terminal handling.

d
dataclasses Generate special methods on user-defined classes.
datetime Basic date and time types.
dbm Interfaces to various Unix "database" formats.
decimal Implementation of the General Decimal Arithmetic Specification.
difflib Helpers for computing differences between objects.
dis Disassembler for Python bytecode.
distutils Deprecated: Removed in 3.12.
doctest Test pieces of code within docstrings.

e
email Package supporting the parsing, manipulating, and generating email messages.
encodings Encodings package
ensurepip Bootstrapping the "pip" installer into an existing Python installation or virtual
environment.
enum Implementation of an enumeration class.
errno Standard errno system symbols.

f
faulthandler Dump the Python traceback.
fcntl (Unix) The fcntl() and ioctl() system calls.
filecmp Compare files efficiently.
fileinput Loop over standard input or a list of files.
fnmatch Unix shell style filename pattern matching.
[Link] 2/7
31/07/2025, 11:09 Python Module Index — Python 3.13.5 documentation

fractions Rational numbers.


ftplib FTP protocol client (requires sockets).
functools Higher-order functions and operations on callable objects.

g
gc Interface to the cycle-detecting garbage collector.
getopt Portable parser for command line options; support both short and long option names.
getpass Portable reading of passwords and retrieval of the userid.
gettext Multilingual internationalization services.
glob Unix shell style pathname pattern expansion.
graphlib Functionality to operate with graph-like structures
grp (Unix) The group database (getgrnam() and friends).
gzip Interfaces for gzip compression and decompression using file objects.

h
hashlib Secure hash and message digest algorithms.
heapq Heap queue algorithm (a.k.a. priority queue).
hmac Keyed-Hashing for Message Authentication (HMAC) implementation
html Helpers for manipulating HTML.
http HTTP status codes and messages

i
idlelib Implementation package for the IDLE shell/editor.
imaplib IMAP4 protocol client (requires sockets).
imghdr Deprecated: Removed in 3.13.
imp Deprecated: Removed in 3.12.
importlib The implementation of the import machinery.
inspect Extract information and source code from live objects.
io Core tools for working with streams.
ipaddress IPv4/IPv6 manipulation library.
itertools Functions creating iterators for efficient looping.

j
json Encode and decode the JSON format.

k
keyword Test whether a string is a keyword in Python.

l
linecache Provides random access to individual lines from text files.
locale Internationalization services.
logging Flexible event logging system for applications.
[Link] 3/7
31/07/2025, 11:09 Python Module Index — Python 3.13.5 documentation

lzma A Python wrapper for the liblzma compression library.

m
mailbox Manipulate mailboxes in various formats
mailcap Deprecated: Removed in 3.13.
marshal Convert Python objects to streams of bytes and back (with different constraints).
math Mathematical functions (sin() etc.).
mimetypes Mapping of filename extensions to MIME types.
mmap Interface to memory-mapped files for Unix and Windows.
modulefinder Find modules used by a script.
msilib Deprecated: Removed in 3.13.
msvcrt (Windows) Miscellaneous useful routines from the MS VC++ runtime.
multiprocessing Process-based parallelism.

n
netrc Loading of .netrc files.
nis Deprecated: Removed in 3.13.
nntplib Deprecated: Removed in 3.13.
numbers Numeric abstract base classes (Complex, Real, Integral, etc.).

o
operator Functions corresponding to the standard operators.
optparse Command-line option parsing library.
os Miscellaneous operating system interfaces.
ossaudiodev Deprecated: Removed in 3.13.

p
pathlib Object-oriented filesystem paths
pdb The Python debugger for interactive interpreters.
pickle Convert Python objects to streams of bytes and back.
pickletools Contains extensive comments about the pickle protocols and pickle-machine opcodes, as
well as some useful functions.
pipes Deprecated: Removed in 3.13.
pkgutil Utilities for the import system.
platform Retrieves as much platform identifying data as possible.
plistlib Generate and parse Apple plist files.
poplib POP3 protocol client (requires sockets).
posix (Unix) The most common POSIX system calls (normally used via module os).
pprint Data pretty printer.
profile Python source profiler.
pstats Statistics object for use with the profiler.
pty (Unix) Pseudo-Terminal Handling for Unix.
[Link] 4/7
31/07/2025, 11:09 Python Module Index — Python 3.13.5 documentation

pwd (Unix) The password database (getpwnam() and friends).


py_compile Generate byte-code files from Python source files.
pyclbr Supports information extraction for a Python module browser.
pydoc Documentation generator and online help system.

q
queue A synchronized queue class.
quopri Encode and decode files using the MIME quoted-printable encoding.

r
random Generate pseudo-random numbers with various common distributions.
re Regular expression operations.
readline (Unix) GNU readline support for Python.
reprlib Alternate repr() implementation with size limits.
resource (Unix) An interface to provide resource usage information on the current process.
rlcompleter Python identifier completion, suitable for the GNU readline library.
runpy Locate and run Python modules without importing them first.

s
sched General purpose event scheduler.
secrets Generate secure random numbers for managing secrets.
select Wait for I/O completion on multiple streams.
selectors High-level I/O multiplexing.
shelve Python object persistence.
shlex Simple lexical analysis for Unix shell-like languages.
shutil High-level file operations, including copying.
signal Set handlers for asynchronous events.
site Module responsible for site-specific configuration.
sitecustomize
smtpd Deprecated: Removed in 3.12.
smtplib SMTP protocol client (requires sockets).
sndhdr Deprecated: Removed in 3.13.
socket Low-level networking interface.
socketserver A framework for network servers.
spwd Deprecated: Removed in 3.13.
sqlite3 A DB-API 2.0 implementation using SQLite 3.x.
ssl TLS/SSL wrapper for socket objects
stat Utilities for interpreting the results of [Link](), [Link]() and [Link]().
statistics Mathematical statistics functions
string Common string operations.
stringprep String preparation, as per RFC 3453
struct Interpret bytes as packed binary data.
[Link] 5/7
31/07/2025, 11:09 Python Module Index — Python 3.13.5 documentation

subprocess Subprocess management.


sunau Deprecated: Removed in 3.13.
symtable Interface to the compiler's internal symbol tables.
sys Access system-specific parameters and functions.
sysconfig Python's configuration information
syslog (Unix) An interface to the Unix syslog library routines.

t
tabnanny Tool for detecting white space related problems in Python source files in a directory tree.
tarfile Read and write tar-format archive files.
telnetlib Deprecated: Removed in 3.13.
tempfile Generate temporary files and directories.
termios (Unix) POSIX style tty control.
test Regression tests package containing the testing suite for Python.
textwrap Text wrapping and filling
threading Thread-based parallelism.
time Time access and conversions.
timeit Measure the execution time of small code snippets.
tkinter Interface to Tcl/Tk for graphical user interfaces
token Constants representing terminal nodes of the parse tree.
tokenize Lexical scanner for Python source code.
tomllib Parse TOML files.
trace Trace or track Python statement execution.
traceback Print or retrieve a stack traceback.
tracemalloc Trace memory allocations.
tty (Unix) Utility functions that perform common terminal control operations.
turtle An educational framework for simple graphics applications
turtledemo A viewer for example turtle scripts
types Names for built-in types.
typing Support for type hints (see :pep:`484`).

u
unicodedata Access the Unicode Database.
unittest Unit testing framework for Python.
urllib
usercustomize
uu Deprecated: Removed in 3.13.
uuid UUID objects (universally unique identifiers) according to RFC 4122

v
venv Creation of virtual environments.

[Link] 6/7
31/07/2025, 11:09 Python Module Index — Python 3.13.5 documentation

w
warnings Issue warning messages and control their disposition.
wave Provide an interface to the WAV sound format.
weakref Support for weak references and weak dictionaries.
webbrowser Easy-to-use controller for web browsers.
winreg (Windows) Routines and objects for manipulating the Windows registry.
winsound Access to the sound-playing machinery for Windows.
(Windows)
wsgiref WSGI Utilities and Reference Implementation.

x
xdrlib Deprecated: Removed in 3.13.
xml Package containing XML processing modules
xmlrpc Server and client modules implementing XML-RPC.

z
zipapp Manage executable Python zip archives
zipfile Read and write ZIP-format archive files.
zipimport Support for importing Python modules from ZIP archives.
zlib Low-level interface to compression and decompression routines compatible with gzip.
zoneinfo IANA time zone support

[Link] 7/7

Common questions

Powered by AI

The "collections" module provides specialized container datatypes offering greater functionality and efficiency, enhancing or simplifying common operations compared to built-in types. For instance, "deque" provides optimized appends and pops from both ends, "Counter" simplifies counting hashable objects, and "OrderedDict" maintains order of insertion, which built-in dictionaries do not guarantee (in earlier Python versions before 3.7 where order became standardized). These enhancements allow for more intuitive and performant data handling in certain scenarios .

The "sysconfig" module is crucial for obtaining configuration details about the Python installation, aiding in adjusting programs to different environments. It provides functions to access details about the build environment, paths for library and include files, and defines values used during Python's compilation. By exposing these environment-specific configurations, "sysconfig" helps developers write portable code that can adapt dynamically to different system settings, ensuring compatibility and optimal performance across various platforms .

The "argparse" module in Python is used for parsing command-line arguments, providing tools to define the arguments and their types, automatically generate help and usage messages, and handle invalid arguments. It enhances command-line interfaces by simplifying the process of handling complex argument structures, ensuring consistent input validation, and improving user experience with auto-generated help descriptions .

The "itertools" module provides a set of fast, memory-efficient tools that are primarily used to construct complex iterators for iteration tasks, particularly with large datasets. It includes functions such as "chain", "groupby", "islice", and "combinations", which allow for intricate sequence processing without the need to create intermediate data structures, thereby saving memory and improving performance. By facilitating operations over iterables, such as generating permutations or combinations, "itertools" enables effective and elegant data manipulation that scales well with large datasets .

The "dataclasses" module in Python facilitates the creation of classes by automatically generating special methods like __init__, __repr__, and __eq__. This reduces boilerplate code significantly, allowing developers to focus on defining fields and their types instead of implementing repetitive methods. By using decorators, developers can easily add default values, specify field order, and implement immutable classes. The simplified syntax enhances readability, reduces the chance of errors in repetitive code, and streamlines maintenance, making "dataclasses" particularly effective for data-centric applications .

The "asyncio" module in Python is designed for asynchronous I/O operations and provides a non-blocking event loop, allowing the management of tasks without concurrent threads. It efficiently handles large numbers of I/O-bound connections by using coroutines. Conversely, the "threading" module creates separate threads in the same process, suitable for tasks that are CPU-bound or that require true parallel execution, such as certain mathematical computations. The unique advantage of "asyncio" is its low overhead for I/O-bound tasks and its ability to manage large numbers of simultaneous connections, while "threading" is preferable for tasks that need true concurrency, albeit with increased complexity related to thread management and potential race conditions .

The restructuring of Python's HTTP libraries into distinct entities like "http" and "urllib" is designed to increase modularity and simplify the handling of HTTP operations. This separation allows developers to utilize specific functionalities without the overhead of unnecessary components, leading to more efficient code that is easier to maintain and extend. By disentangling low-level HTTP protocol manipulation from higher-level URL handling, developers can work more effectively with both granular control and ease of use for networking tasks .

The "copy" function performs a shallow copy of an object, meaning it creates a new object but does not create copies of nested objects; instead, it copies references to them. This is suitable for simple objects where mutable inner objects are not a concern. In contrast, "deepcopy" creates a full, independent copy of the original object and its contents, recursively copying all objects found within the parent object. This is essential for deep copies of complex objects where changes to nested objects should not affect the original reference structure .

The deprecation of modules like "cgi" and "imghdr" in Python 3.13 represents a shift towards more modern, secure, and efficient modules. For developers, this implies the necessity to update legacy codebases to use alternative libraries that offer better performance and security. While this transition might require an investment in upgrading the code, it also encourages developers to adopt best practices and leverage more robust modern solutions, such as Flask or Django for web-related functionality and external libraries for image type recognition .

The "contextlib" module simplifies resource management by providing utilities that support the "with" statement. It enables concise and readable code for the setup and teardown of resources, ensuring proper acquisition and release without needing explicit try-finally blocks. Key utilities include "contextmanager", which makes it easy to define a context manager using generator syntax, and "closing", which automatically closes objects when the block is exited. These utilities improve code efficiency and reliability, particularly in scenarios involving file handling or network connections .

You might also like