The compiled-in module names are in sys.builtin_module_names. For all importable modules, see pkgutil.iter_modules.

Run these in a clean virtualenv to get (almost) only the modules that come with Python itself.


Note that a “popularity poll” will necessarily include modules that use old, discouraged naming conventions because they were written before today's guidelines were put in place, and can't change because need to be backwards compatible. It might be useful for something, but not for answering best-practice questions such as “How should I name my functions?”. For that, see the PEP8, the Python style guide, especially the “Naming Conventions” section.

Answer from Petr Viktorin on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › built-in-modules-in-python
Built-in Modules in Python - GeeksforGeeks
1 month ago - Python comes with a large collection ... tasks. These modules cover areas such as mathematics, file handling, dates, regular expressions, data formats, system operations and databases. Common applications include:...
🌐
W3Schools
w3schools.com › python › python_modules.asp
Python Modules
There are several built-in modules in Python, which you can import whenever you like.
Discussions

How to get a list of built-in modules in python? - Stack Overflow
I would like to get a list of names of built-in modules in python such that I can test the popularity of function's naming conventions (underline, CamelCase or mixedCase). I know there is a Global More on stackoverflow.com
🌐 stackoverflow.com
What is a built-in Python module you use all the time but ...
News about the programming language Python. If you have something to teach others post here. If you have questions or are a newbie use r/learnpython More on reddit.com
🌐 r/Python
Any Guide on python built-in modules?

The Python Module of the Week site gives an overview of many of the modules in the standard library, with some example code. The associated book might be worth looking at, but I've never used it.

More on reddit.com
🌐 r/learnpython
8
10
March 25, 2022
What are some useful and underrated built in python modules?
There are many built-in Python packages that are incredibly useful but are often underrated or overlooked. Here are a few examples: collections: This package provides specialized container datatypes that are alternatives to the built-in container types like lists, tuples, and dictionaries. It includes useful classes like defaultdict, Counter, and deque. itertools: This package provides a collection of tools for working with iterators, including functions like cycle, chain, and islice. functools: This package provides functions for working with higher-order functions and functions that operate on other functions. It includes functions like partial, reduce, and lru_cache. contextlib: This package provides utilities for working with context managers, including the contextmanager decorator and the ExitStack context manager. os: This package provides a way to interact with the underlying operating system, including functions for working with files and directories, environment variables, and processes. sys: This package provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. json: This package provides functions for encoding and decoding JSON data. More on reddit.com
🌐 r/learnpython
56
200
April 2, 2023
People also ask

Can I modify Python built-in modules?
No, you should avoid modifying built-in modules. Changes can break functionality across your code. If customization is needed, create your own module that imports and extends the built-in module’s functions.
🌐
upgrad.com
upgrad.com › home › blog › data science › python built-in modules: supercharge your coding today!
Python Built-in Modules That Will Make Your Coding Easier!
How do I import a built-in module in Python?
Use the import keyword followed by the module name. For example, import math allows access to math functions. You can also import specific functions using from module import function.
🌐
upgrad.com
upgrad.com › home › blog › data science › python built-in modules: supercharge your coding today!
Python Built-in Modules That Will Make Your Coding Easier!
Which built-in modules are used for file handling in Python?
Common file handling modules include os for directory operations, shutil for file copying and moving, pathlib for path management, and fileinput for reading multiple files efficiently.
🌐
upgrad.com
upgrad.com › home › blog › data science › python built-in modules: supercharge your coding today!
Python Built-in Modules That Will Make Your Coding Easier!
🌐
Python
docs.python.org › 3 › py-modindex.html
Python Module Index — Python 3.15.2 documentation
index · modules | Python » · 3.15.2 Documentation » · Python Module Index · | Theme · Auto · Light · Dark | _ | 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 · « · index · modules | Python » ·
🌐
Tutorial Teacher
tutorialsteacher.com › python › python-builtin-modules
Python Built-in Modules
Built-in modules are written in C and integrated with the Python shell. Each built-in module contains resources for certain system-specific functionalities such as OS management, disk IO, etc.
🌐
Upgrad
upgrad.com › home › blog › data science › python built-in modules: supercharge your coding today!
Python Built-in Modules That Will Make Your Coding Easier!
October 7, 2025 - A module is a single Python file containing functions or classes, while a package is a collection of modules organized in folders with an __init__.py file. Built-in modules are often part of Python’s standard library packages.
🌐
Python
docs.python.org › 3 › library › index.html
The Python standard library — Python 3.15.2 documentation
The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible to Python programmers, as well as modules written in Python that provide standardized solutions for many problems that occur in everyday programming.
Find elsewhere
🌐
W3Schools
w3schools.com › python › gloss_python_module_built-in.asp
Python Built-in Modules
Python Examples Python Compiler Python Exercises Python Quiz Python Challenges Python Practice Problems Python Server Python Syllabus Python Study Plan Python Interview Q&A Python Training ... There are several built-in modules in Python, which you can import whenever you like.
🌐
KnowledgeHut
knowledgehut.com › https://www.knowledgehut.com › tutorials › programming tutorials › python - built-in modules
Python Built-In Modules Tutorial | Learn Python Modules
However they are not available for use automatically. These functions are defined in modules. A module is a file containing definition of functions, classes, variables, constants or any other Python object.
🌐
Medium
medium.com › @tanayharchande20783 › commonly-used-python-built-in-modules-explained-3a25297020a8
Commonly Used Python Built-in Modules Explained | by Tanay harchande | Medium
October 29, 2025 - A module in Python is a file that contains Python code — functions, variables, or classes — that you can reuse in your programs. Python’s built-in modules are part of the standard library, so you don’t need to install them separately
🌐
W3Schools
w3schools.com › python › python_ref_modules.asp
Python Standard Library Modules (3.13)
This page lists the built-in modules that ship with the Python 3.13 Standard Library.
🌐
Tutlane
tutlane.com › tutorial › python › python-built-in-modules
Python Built-in Modules - Tutlane
As discussed in the python module chapter, the module is a file that will contain a set of functions, variables, classes, etc., to use in your applications. Python has a set of built-in modules such as math, os, sys, etc., to use in any python script file.
🌐
Sunscrapers
sunscrapers.com › blog › 30-built-in-python-modules-you-should-be-using-now
30 Built-In Python Modules You Should Be Using | Sunscrapers
December 19, 2023 - Modules and libraries help to speed up the dev process, saving plenty of time. Here are 30 built-in Python modules you better be using in your project.
🌐
Tutorialspoint
tutorialspoint.com › python › python_modules.htm
Python - Modules
Python's standard library comes bundled with a large number of modules. They are called built-in modules. Most of these built-in modules are written in C (as the reference implementation of Python is in C), and pre-compiled into the library.
🌐
WsCube Tech
wscubetech.com › resources › python › modules
Modules in Python: All Types With Examples
August 6, 2026 - Master Python modules with examples. Learn built-in and user-defined modules, creating modules, import statements, aliases, the standard library and more.
🌐
The Knowledge Academy
theknowledgeacademy.com › blog › python-built-in-modules
Python Built-in Modules Every Software Professional Should Know
December 23, 2023 - Python’s built-in modules, including os, sys, math, and json, offer powerful tools for file operations, system tasks, and data handling without extra installations.
🌐
Medium
cycoderx.medium.com › 5-essential-built-in-modules-for-every-python-developer-31ac8be2a18c
5 Essential Built-in Modules for Every Python Developer! 🐍 | by CyCoderX | Medium
August 8, 2024 - It's like a backstage pass that lets us access things like command-line arguments and information about the Python version running our code. # Import the sys module import sys # Get the Python version python_version = sys.version print("Python version:", python_version) # Get the platform information platform = sys.platform print("Platform information:", platform) # Get the Python path python_path = sys.path print("Python path:", python_path) # Access command-line arguments arguments = sys.argv # Print the command-line arguments print("Command-line arguments:", arguments) # Get the first argument passed in first_argument = sys.argv[1] if len(sys.argv) > 1 else None print("First argument passed in:", first_argument) # Terminate the program with a specific exit code exit_code = 0 # Example exit code sys.exit(exit_code) # Terminate the program with the specified exit code
🌐
YouTube
youtube.com › watch
Python Standard Library (Built-in Modules) - Python Fundamentals 6.2 - YouTube
Go on a tour of the Python Standard Library and learn about what the different built-in modules of Python have to offer!📕 Links 📕🔗 Python Standard Library...
Published: June 24, 2021
🌐
Programiz
programiz.com › python-programming › modules
Python Modules (With Examples)
August 21, 2024 - This makes our code organized and easier to maintain. Module is a file that contains code to perform a specific task. A module may contain variables, functions, classes etc. Let's see an example, Let us create a module.
🌐
Real Python
realpython.com › python-modules-packages
Python Modules and Packages – An Introduction – Real Python
3 days ago - A module can be written in Python itself. A module can be written in C and loaded dynamically at run-time, like the re (regular expression) module. A built-in module is intrinsically contained in the interpreter, like the itertools module.