The Python Standard Library

“The Python Standard Library” is a comprehensive resource that provides a wide range of modules and packages for Python developers. It covers essential functionalities like file I/O, networking, data manipulation, and more. The library aims to streamline development by offering pre-built tools, reducing the need for external dependencies. With a focus on efficiency and productivity, it serves as a foundational component for Python programming, catering to both beginners and experienced developers. The document emphasizes the importance of leveraging the standard library to enhance code quality, maintainability, and overall development speed in Python projects.

Concurrent Execution

 The Python Standard Library

Concurrent Execution The modules described in this chapter provide support for concurrent execution of code. The appropriate choice of tool will depend on the task to be executed (CPU bound vs IO bou...

📚 Read more at The Python Standard Library
🔎 Find similar documents

— Subprocess management

 The Python Standard Library

subprocess — Subprocess management Source code: Lib/subprocess.py The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. Th...

📚 Read more at The Python Standard Library
🔎 Find similar documents

— Low-level networking interface

 The Python Standard Library

socket — Low-level networking interface Source code: Lib/socket.py This module provides access to the BSD socket interface. It is available on all modern Unix systems, Windows, MacOS, and probably ad...

📚 Read more at The Python Standard Library
🔎 Find similar documents

Structured Markup Processing Tools

 The Python Standard Library

Structured Markup Processing Tools Python supports a variety of modules to work with various forms of structured data markup. This includes modules to work with the Standard Generalized Markup Langua...

📚 Read more at The Python Standard Library
🔎 Find similar documents

— HTTP modules

 The Python Standard Library

http — HTTP modules Source code: Lib/http/__init__.py http is a package that collects several modules for working with the HyperText Transfer Protocol: http.client is a low-level HTTP protocol client...

📚 Read more at The Python Standard Library
🔎 Find similar documents

— SMTP protocol client

 The Python Standard Library

smtplib — SMTP protocol client Source code: Lib/smtplib.py The smtplib module defines an SMTP client session object that can be used to send mail to any internet machine with an SMTP or ESMTP listene...

📚 Read more at The Python Standard Library
🔎 Find similar documents

— Print or retrieve a stack traceback

 The Python Standard Library

traceback — Print or retrieve a stack traceback Source code: Lib/traceback.py This module provides a standard interface to extract, format and print stack traces of Python programs. It exactly mimics...

📚 Read more at The Python Standard Library
🔎 Find similar documents

— Constants used with Python parse trees

 The Python Standard Library

token — Constants used with Python parse trees Source code: Lib/token.py This module provides constants which represent the numeric values of leaf nodes of the parse tree (terminal tokens). Refer to ...

📚 Read more at The Python Standard Library
🔎 Find similar documents

— The shadow password database

 The Python Standard Library

spwd — The shadow password database This module provides access to the Unix shadow password database. It is available on various Unix versions. You must have enough privileges to access the shadow pa...

📚 Read more at The Python Standard Library
🔎 Find similar documents

— Completion function for GNU readline

 The Python Standard Library

rlcompleter — Completion function for GNU readline Source code: Lib/rlcompleter.py The rlcompleter module defines a completion function suitable for the readline module by completing valid Python ide...

📚 Read more at The Python Standard Library
🔎 Find similar documents

Built-in Functions

 The Python Standard Library

Built-in Functions The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. Built-in Functions A abs() aiter() a...

📚 Read more at The Python Standard Library
🔎 Find similar documents

Built-in Types

 The Python Standard Library

Built-in Types The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, classes, instances and exception...

📚 Read more at The Python Standard Library
🔎 Find similar documents