Skip to main content

A list of Python Standard Libraries (2.6-7, 3.2-8).

Project description

Python Standard Library List

This package includes lists of all of the standard libraries for Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, and 3.9 along with the code for scraping the official Python docs to get said lists.

Listing the modules in the standard library? Wait, why on Earth would you care about that?!

Because knowing whether or not a module is part of the standard library will come in handy in a project of mine. And I'm not the only one who would find this useful. Or, the TL;DR answer is that it's handy in situations when you're analyzing Python code and would like to find module dependencies.

After googling for a way to generate a list of Python standard libraries (and looking through the answers to the previously-linked Stack Overflow question), I decided that I didn't like the existing solutions. So, I started by writing a scraper for the TOC of the Python Module Index for each of the versions of Python above.

However, web scraping can be a fragile affair. Thanks to a suggestion by @ncoghlan, and some further help from @birkenfeld and @epc, the population of the lists is now done by grabbing and parsing the Sphinx object inventory for the official Python docs of each relevant version.

Usage

>>> from stdlib_list import stdlib_list
>>> libraries = stdlib_list("2.7")
>>> libraries[:10]
['AL', 'BaseHTTPServer', 'Bastion', 'CGIHTTPServer', 'ColorPicker', 'ConfigParser', 'Cookie', 'DEVICE', 'DocXMLRPCServer', 'EasyDialogs']

For more details, check out the docs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stdlib-list-0.7.0.tar.gz (70.5 kB view details)

Uploaded Source

Built Distribution

stdlib_list-0.7.0-py3-none-any.whl (60.8 kB view details)

Uploaded Python 3

File details

Details for the file stdlib-list-0.7.0.tar.gz.

File metadata

  • Download URL: stdlib-list-0.7.0.tar.gz
  • Upload date:
  • Size: 70.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200529 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for stdlib-list-0.7.0.tar.gz
Algorithm Hash digest
SHA256 66c1c1724a12667cdb35be9f43181c3e6646c194e631efaaa93c1f2c2c7a1f7f
MD5 a51551a2b627781d184dd6f4faebbf68
BLAKE2b-256 9848b78879379c2648e13a0cd9296aa851f8d6b10924c8edf012ecbe74ee65d9

See more details on using hashes here.

File details

Details for the file stdlib_list-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: stdlib_list-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 60.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200529 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for stdlib_list-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ed79a0badf4f666aad046cde364ccac68ca1438a211ec74b0153e0eb5642a3e
MD5 67d0c7f5f88744ba763685ce561dd13a
BLAKE2b-256 01ff14394967130e95720c30ba2bbe4b4e25695afd5304bd128134116e293c0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page