{"id":20269605,"url":"https://github.com/omnilib/stdlibs","last_synced_at":"2025-08-20T14:31:30.309Z","repository":{"id":38208265,"uuid":"351644610","full_name":"omnilib/stdlibs","owner":"omnilib","description":"What's in the Python stdlib","archived":false,"fork":false,"pushed_at":"2024-09-01T17:22:30.000Z","size":159,"stargazers_count":8,"open_issues_count":5,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-26T07:14:39.137Z","etag":null,"topics":["hacktoberfest","python","standard-library","stdlib"],"latest_commit_sha":null,"homepage":"https://stdlibs.omnilib.dev","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omnilib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-26T03:00:17.000Z","updated_at":"2024-08-25T21:57:20.000Z","dependencies_parsed_at":"2023-02-17T08:31:15.557Z","dependency_job_id":"bfab0833-43fb-45e3-b759-6785392ea5a6","html_url":"https://github.com/omnilib/stdlibs","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnilib%2Fstdlibs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnilib%2Fstdlibs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnilib%2Fstdlibs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omnilib%2Fstdlibs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omnilib","download_url":"https://codeload.github.com/omnilib/stdlibs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230431103,"owners_count":18224655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","python","standard-library","stdlib"],"created_at":"2024-11-14T12:26:02.216Z","updated_at":"2024-12-19T12:09:56.985Z","avatar_url":"https://github.com/omnilib.png","language":"Python","readme":"# stdlibs\n\nSimple list of top-level packages in Python's stdlib\n\n[![license](https://img.shields.io/pypi/l/stdlibs.svg)](https://github.com/omnilib/stdlibs/blob/master/LICENSE)\n[![version](https://img.shields.io/pypi/v/stdlibs.svg)](https://pypi.org/project/stdlibs)\n[![changelog](https://img.shields.io/badge/change-log-blue)](https://stdlibs.omnilib.dev/en/latest/changelog.html)\n[![documentation](https://readthedocs.org/projects/stdlibs/badge/?version=latest)](https://stdlibs.omnilib.dev)\n\nThis package provides a static listing of all known modules in the Python standard\nlibrary, with separate lists available for each major release dating back to Python 2.3.\nIt also includes combined lists of all module names that were ever available in any\n3.x release, any 2.x release, or both.\n\nNote: On Python versions 3.10 or newer, a list of module names for the active runtime\nis available `sys.stdlib_module_names`. This package exists to provide an historical\nrecord for use with static analysis and other tooling.\n\nThis package only includes listings for CPython releases. If other runtimes would be\nuseful, open an issue and start a discussion on how best that can be accomodated.\n\n\nInstall\n-------\n\nYou can install it from PyPI:\n\n```shell-session\n$ pip install stdlibs\n```\n\n\nUsage\n-----\n\nThe recommended usage is to reference `stdlibs.module_names` — the top-level\nnames that are valid in some version of Python 3.x on some platform.  This is a\nsuperset of top-level names you may have, and a superset of those in\n`sys.stdlib_module_names`.\n\n```pycon\n\u003e\u003e\u003e from stdlibs import module_names\n\u003e\u003e\u003e print(\"os\" in module_names)\nTrue\n\u003e\u003e\u003e print(\"zoneinfo\" in module_names)  # 3.9+\nTrue\n\n```\n\nIf you need a specific version, those are available as other modules:\n\n```pycon\n\u003e\u003e\u003e from stdlibs.py36 import module_names as module_names_py36\n\u003e\u003e\u003e print(\"os\" in module_names_py36)\nTrue\n\u003e\u003e\u003e print(\"zoneinfo\" in module_names_py36)\nFalse\n\n```\n\nIf you intend to process more than one version, you may find the string api\neasier:\n\n```pycon\n\u003e\u003e\u003e from stdlibs import stdlib_module_names, KNOWN_VERSIONS\n\u003e\u003e\u003e [v for v in KNOWN_VERSIONS if \"dataclasses\" in stdlib_module_names(v)]\n['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']\n\u003e\u003e\u003e\n\u003e\u003e\u003e sorted(stdlib_module_names(\"3.7\") - stdlib_module_names(\"3.6\"))\n['_abc', '_contextvars', '_py_abc', '_queue', '_uuid', '_xxtestfuzz', 'contextvars', 'dataclasses']\n\u003e\u003e\u003e\n\u003e\u003e\u003e from moreorless.click import unified_diff\n\u003e\u003e\u003e prev = None\n\u003e\u003e\u003e buf = []\n\u003e\u003e\u003e for v in KNOWN_VERSIONS:\n...     cur = ''.join([f\"{name}\\n\" for name in sorted(stdlib_module_names(v))])\n...     if prev:\n...         buf.append(unified_diff(prev, cur, f\"new-in-{v}\"))\n...     prev = cur\n\u003e\u003e\u003e print(''.join(''.join(buf).splitlines(True)[:10]), end='')\n--- a/new-in-2.4\n+++ b/new-in-2.4\n@@ -19,7 +19,6 @@\n DocXMLRPCServer\n ERRNO\n EasyDialogs\n-FCNTL\n FILE\n FL\n FileDialog\n\n```\n\nRegenerating\n------------\n\nIf there might have been new release tarballs, first execute\n`stdlibs.fetch_releases` which will update `stdlibs/releases.toml`.\n\nThen execute `stdlibs.fetch` which will download all those release tarballs, and\ncreate/update the appropriate `stdlibs/py*.py` files with the changes.  A fresh\nrun takes about two minutes, but is much faster on subsequent runs.\n\n```shell-session\n$ make distclean virtualenv\n$ source .venv/bin/activate\n(.venv) $ python -m stdlibs.fetch_releases\n(.venv) $ python -m stdlibs.fetch\n```\n\n\nLicense\n-------\n\nstdlibs is copyright [Amethyst Reese](https://noswap.com), and licensed under\nthe MIT license.  I am providing code in this repository to you under an open\nsource license.  This is my personal repository; the license you receive to\nmy code is from me and not from my employer. See the `LICENSE` file for details.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnilib%2Fstdlibs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomnilib%2Fstdlibs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomnilib%2Fstdlibs/lists"}