API

stdlibs.module_names: FrozenSet[str]

Known stdlibs for any release of Python 3.x

Shortcut for stdlibs.py3.module_names.

stdlibs.stdlib_module_names(version=None)

Return a set of known module names for a Python release in KNOWN_VERSIONS.

If passed stdlibs.ALL, this returns stdlibs.py.module_names. If passed None, or no arguments, returns the equivalent module names for the active major Python version.

Prefer using stdlibs.module_names or a specific Versioned Module directly.

Parameters

version (Optional[str]) –

Return type

FrozenSet[str]

stdlibs.KNOWN_VERSIONS: List[str] = ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11']

All supported Python major releases

stdlibs.ALL = 'all'

Combined 3.x and 2.x stdlibs

Version Modules

Generated modules for each major Python release in KNOWN_VERSIONS.

stdlibs.py3.module_names: FrozenSet[str]

Known stdlib modules for Python 3.x.

stdlibs.py2.module_names: FrozenSet[str]

Known stdlib modules for Python 2.x.

stdlibs.py.module_names: FrozenSet[str]

Known stdlib modules for Python 3.x and 2.x.

stdlibs.py311.module_names: FrozenSet[str]

Known stdlib modules for Python 3.11.

stdlibs.py310.module_names: FrozenSet[str]

Known stdlib modules for Python 3.10.

stdlibs.py39.module_names: FrozenSet[str]

Known stdlib modules for Python 3.9.

stdlibs.py38.module_names: FrozenSet[str]

Known stdlib modules for Python 3.8.

stdlibs.py37.module_names: FrozenSet[str]

Known stdlib modules for Python 3.7.

stdlibs.py36.module_names: FrozenSet[str]

Known stdlib modules for Python 3.6.

stdlibs.py35.module_names: FrozenSet[str]

Known stdlib modules for Python 3.5.

stdlibs.py34.module_names: FrozenSet[str]

Known stdlib modules for Python 3.4.

stdlibs.py33.module_names: FrozenSet[str]

Known stdlib modules for Python 3.3.

stdlibs.py32.module_names: FrozenSet[str]

Known stdlib modules for Python 3.2.

stdlibs.py31.module_names: FrozenSet[str]

Known stdlib modules for Python 3.1.

stdlibs.py30.module_names: FrozenSet[str]

Known stdlib modules for Python 3.0.

stdlibs.py27.module_names: FrozenSet[str]

Known stdlib modules for Python 2.7.

stdlibs.py26.module_names: FrozenSet[str]

Known stdlib modules for Python 2.6.

stdlibs.py25.module_names: FrozenSet[str]

Known stdlib modules for Python 2.5.

stdlibs.py24.module_names: FrozenSet[str]

Known stdlib modules for Python 2.4.

stdlibs.py23.module_names: FrozenSet[str]

Known stdlib modules for Python 2.3.