stdlibs
List of packages in the stdlib
Decision gist · record as of 2026-08-14
Yes. This is a lightweight, actively maintained reference package with zero dependencies, permissive licensing, and clear utility for static analysis and tooling. Install it if you're building linters, import sorters, or any tool that needs to reliably distinguish standard library modules from third-party ones across multiple Python versions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or newer.
- Low install friction with no runtime dependencies.
- Actively maintained; last release 169 days ago with repository activity as recent as 2026-07-01.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing use in both open-source and proprietary projects with minimal restrictions.
last release 2026-02-26 (169 days) · last repo commit 2026-07-01 · 12 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,672,943 downloads/mo, #2,948 on PyPI
Alternatives
Verify before relying
pip install stdlibs
from stdlibs import module_names
print("os" in module_names) # True
from stdlibs.py36 import module_names as py36_names
print("zoneinfo" in py36_names) # False- Whether the package captures all private/importable modules that ship with stable CPython releases as claimed in the description.
What it is and what it does
stdlibs is a reference package that maintains a static inventory of Python standard library modules across multiple CPython versions. It solves the problem of determining which modules are part of the standard library for a given Python version—useful for static analysis tools, linters, and import sorters that need to distinguish standard library imports from third-party ones.
The package provides module name lists for each major CPython release from 2.3 onward, plus combined views across all 2.x and 3.x releases. On Python 3.10+, the runtime provides `sys.stdlib_module_names`, but stdlibs exists to offer historical records, pre-release listings, and a broader set of importable modules that aren't always included in the official runtime list. It's used by tools like Ruff and µsort.
Use it for
- Determine whether a module name belongs to the standard library for a specific Python version in static analysis.
- Track which stdlib modules were added or removed between Python versions for compatibility checking.
- Distinguish standard library imports from third-party packages in import sorting and linting tools.
- Generate diffs of stdlib module availability across Python versions for documentation or tooling.
- Support pre-3.10 Python versions where `sys.stdlib_module_names` is unavailable.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a lightweight, actively maintained reference package with zero dependencies, permissive licensing, and clear utility for static analysis and tooling. Install it if you're building linters, import sorters, or any tool that needs to reliably distinguish standard library modules from third-party ones across multiple Python versions.
Install
stdlibs on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained; last release 169 days ago with repository activity as recent as 2026-07-01.
Requires Python 3.8 or newer.
License in practice
Licensed under MIT (permissive), allowing use in both open-source and proprietary projects with minimal restrictions.
Quickstart
pip install stdlibs
from stdlibs import module_names
print("os" in module_names) # True
from stdlibs.py36 import module_names as py36_names
print("zoneinfo" in py36_names) # False
Verify before relying
- Whether the package captures all private/importable modules that ship with stable CPython releases as claimed in the description.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 169 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,672,943 / month, #2,948 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseTopic :: UtilitiesTyping :: Typed |
Evidence: stdlibs-2026.2.26-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “standard library listing”
- stdlibsProvides a static listing of all known modules in Python's standard…
- rets-pythonPython 3 client library for querying and retrieving real estate data…
- django-allow-cidrA Django middleware that extends ALLOWED_HOSTS validation to support…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also stdlib-list · astpretty · lib · classify-imports · sgmllib3k · typing · usort · tokenize-rt · types-contextvars · session-info2