Skip to main content

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

Project description

This package includes lists of all of the standard libraries for Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and 3.6, 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.5.0.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

stdlib_list-0.5.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stdlib-list-0.5.0.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for stdlib-list-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5311a95812ebce3c5ad0b1f6ded798ce6f945d157075d166a5426c2da75a6625
MD5 a24d045958482553b9b17e40640ce169
BLAKE2b-256 868ab01ef5ec5e307e96cdce1c861aeb9ac3df1499a6a87859f687247dd25014

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stdlib_list-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for stdlib_list-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe30e9fc98304de4207f545311c75a6ad7701719bbeb1ac018a0fcf6aa70c0ce
MD5 af30349d0dcf8feb29a408849f6f518b
BLAKE2b-256 14854bdbceb14c9a75507d3991066e5fed8415acc231957d4d9529cc8ec7e3fc

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