--- id: stdlib-list version: "0.12.0" license: unclear license_treatment: permissive maintenance: active --- # stdlib-list — A list of Python Standard Libraries (2.7 through 3.14). License: permissive · Maintenance: active · Downloads: 1.6M/mo ## 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 above — 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 pip install stdlib-list uv add stdlib-list 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_current - Install friction: low - Maintenance: active - Downloads: 1.6M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags python standard library list, stdlib module names, check if module is builtin, standard library detection, python version stdlib, builtin modules list, introspection, legacy-python [View on SkillFed](https://skillfed.io/packages/stdlib-list) · [View on PyPI](https://pypi.org/project/stdlib-list/)