On this page
  1. stdlib_module
  2. Exploring the Standard Library
  3. Standard Library by Topic
  4. Text Processing
  5. Binary Data & Codecs
  6. Data Types & Collections
  7. Numeric & Mathematical
  8. Functional Programming & Iterators
  9. File & Directory Access
  10. Data Persistence & Archiving
  11. File Formats & Config
  12. Cryptography & Hashing
  13. OS, Processes & Concurrency
  14. Internet, Protocols & Markup
  15. Multimedia & GUI
  16. Development, Typing & Debugging
  17. Runtime, Packaging & Language Services
  18. Alphabetical Index (All 194 Public Modules)

stdlib_module

Prev: __builtins__ | Up: python3 | Next: python3
Rel: python3, __builtins__
Ref: docs.python.org — The Python Standard Library
Tags: #public #python3 #stdlib #index


Exploring the Standard Library

import sys
public_modules = sorted(m for m in sys.stdlib_module_names if not m.startswith('_'))
print(public_modules)

Standard Library by Topic

Text Processing

difflib, re, readline, rlcompleter, string, stringprep, textwrap, unicodedata

Binary Data & Codecs

codecs, struct

Data Types & Collections

array, bisect, calendar, collections, copy, datetime, enum, graphlib, heapq, pprint, reprlib, types, weakref, zoneinfo

Numeric & Mathematical

cmath, decimal, fractions, math, numbers, random, statistics

Functional Programming & Iterators

functools, itertools, operator

File & Directory Access

filecmp, fileinput, fnmatch, genericpath, glob, io, linecache, ntpath, os, pathlib, posixpath, shutil, stat, tempfile, time

Data Persistence & Archiving

bz2, compression, copyreg, dbm, gzip, lzma, marshal, pickle, shelve, sqlite3, tarfile, zipfile, zlib

File Formats & Config

configparser, csv, netrc, plistlib, tomllib

Cryptography & Hashing

hashlib, hmac, secrets

OS, Processes & Concurrency

argparse, asyncio, concurrent, contextvars, ctypes, curses, errno, fcntl, getopt, getpass, grp, io, logging, mmap, msvcrt, multiprocessing, nt, optparse, os, platform, posix, pty, pwd, queue, resource, sched, select, selectors, signal, socket, ssl, subprocess, syslog, termios, threading, time, tty, winreg, winsound

Internet, Protocols & Markup

base64, binascii, email, ftplib, html, http, imaplib, ipaddress, json, mailbox, mimetypes, nturl2path, poplib, quopri, smtplib, socketserver, urllib, uuid, webbrowser, wsgiref, xml, xmlrpc

Multimedia & GUI

cmd, colorsys, gettext, idlelib, locale, shlex, tkinter, turtle, turtledemo, wave

Development, Typing & Debugging

annotationlib, bdb, cProfile, doctest, faulthandler, pdb, profile, pstats, pydoc, pydoc_data, timeit, trace, tracemalloc, typing, unittest

Runtime, Packaging & Language Services

abc, antigravity, ast, atexit, builtins, code, codeop, compileall, contextlib, dataclasses, dis, ensurepip, gc, importlib, inspect, keyword, modulefinder, opcode, pickletools, pkgutil, py_compile, pyclbr, pyexpat, runpy, site, sre_compile, sre_constants, sre_parse, symtable, sys, sysconfig, tabnanny, this, token, tokenize, traceback, venv, warnings, zipapp, zipimport

Alphabetical Index (All 194 Public Modules)

Linked from

Related notes