skillfed

stdlib-list

A list of Python Standard Libraries (2.7 through 3.14).

stdlib-list v0.12.0 1.6M downloads/30d#3,700 on PyPI141
Permissive license Active released

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-list

uv

uv add stdlib-list

poetry

poetry add stdlib-list

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software Development :: Libraries :: Python Modules

Tags

python standard library liststdlib module namescheck if module is builtinstandard library detectionpython version stdlibbuiltin modules list
introspectionlegacy-python

More Python Modules packages