stdlib-list
A list of Python Standard Libraries (2.7 through 3.14).
What it is and what it does
stdlib-list is a reference package that bundles pre-computed lists of standard library module names for multiple Python versions. It lets you query which modules belong to the standard library for a given Python version (2.6 through 3.14), which is useful when you need to distinguish standard library imports from third-party packages in code analysis or dependency detection tasks.
The package is a simple data lookup tool with no external dependencies. However, the description itself notes that for Python 3.10 and newer, the standard library now exposes sys.stdlib_module_names and sys.builtin_module_names, making this package redundant for modern Python versions. It remains relevant for projects that must support older Python versions or need a unified interface across multiple versions.
Use it for:
- Detect whether an imported module is part of the standard library or a third-party package during static analysis.
- Build tools or linters that need to categorize imports by source across multiple Python versions.
- Legacy Python 2.7 or early Python 3 projects that need stdlib membership data without relying on runtime introspection.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides lists of Python standard library module names for Python versions 2.6 through 3.14, useful for distinguishing standard library imports from third-party packages.
Yes, if you support Python versions older than 3.10 and need to programmatically check stdlib membership. No, if you target only Python 3.10 or newer — use sys.stdlib_module_names instead. The package is well-maintained, has no security issues, and installs with zero friction, but its utility is narrowing as Python versions advance.
Install
stdlib-list on PyPI
pip
pip install stdlib-listuv
uv add stdlib-listpoetry
poetry add stdlib-listInstalling stdlib-list
Before you install
Low friction: pure Python wheel with no runtime dependencies. Actively maintained as of 2025-10-24 with recent commits; repository is not archived.
License in practice
MIT license (permissive) — you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
from stdlib_list import stdlib_list
libraries = stdlib_list("3.9")
print(libraries)
Requires Python 3.9 or newer; for Python 3.10 and newer, consider using sys.stdlib_module_names instead (built into the standard library).
Verify before relying
- Whether the library's data for Python 3.11–3.14 is complete and accurate relative to those Python releases.
- Performance characteristics when querying large version ranges or calling the function repeatedly.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 294 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,636,519/month — #3,700 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: stdlib_list-0.12.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
stdlibsProvides a static listing of all known modules…
permissive · top 5,000 on PyPI
configparserProvides an updated ConfigParser implementation…
permissive · top 5,000 on PyPI
typingProvides type hints and annotations for Python…
permissive · top 5,000 on PyPI
classify-importsParses, classifies, and sorts Python import…
permissive · top 15,000 on PyPI
aspy.refactor-importsParses, classifies, and manipulates Python…
permissive · top 15,000 on PyPI
asyncioThis package is an obsolete backport of…
permissive · top 1,000 on PyPI
libProvides zero-dependency Python bindings to…
permissive · top 15,000 on PyPI
configparser2Backport of Python 3's configparser module to…
permissive · top 15,000 on PyPI
importlib-resourcesProvides a backport of Python's standard…
permissive · top 1,000 on PyPI
chialisp-stdlibProvides path access to Chialisp standard…
unclear · top 15,000 on PyPI