The initial idea behind this dataset was to explore type coverage among the most widely used libraries on PyPI, and to help systematize adding such stubs to typeshed.
For parsing, I adapted the core logic from typeshed’s stubsabot..
The list of the most popular PyPI packages was originally taken from the top-pypi-packages dump, thanks to Hugo van Kemenade.
Column | Type | Description |
---|---|---|
package |
string | The name of the PyPI project. |
has_py_typed |
boolean | True if the package bundles inline type hints (includes a py.typed file), otherwise False . |
has_types_package |
boolean / null | Indicates whether a types-<package> stub package exists on PyPI. |