typescore - generate typing completeness scores (and more) for a set of packages
typescore generates typing completeness scores (and more) for a set of packages.
typescore [--packages <packages>] [--scores <scorefile>] [--sep <sep>] [--verbose] [<package>...] typescore --help typescore --version Options: --packages <packages> File containing the list of packages. --scores <scorefile> The output file (if not stdout). --sep <sep> CSV column separator. [default: ,] -v, --verbose Include package info in the output. -h, --help Show this help. -V, --version Show the version.
typescore uses pyright to score the typing completeness of a set of Python
packages. It reads this list from
<packages> and writes the results to
<scorefile>. If errors prevent it from scoring a package it will set the
score to 0%.
The output has the form:
--verbose is specified:
typed is a Boolean and tells whether the package had a
Note: we only score top-level modules, not submodules. The assumption is that scores for top-level modules would be reasonably representative of the packages all-up.
<packages> should have one package name per line. It can be a CSV file with
the package name as the first column, in which case other columns will be
included in the score file output (the
extra_columns). A typical extra column
might be the package rank on PyPI downloads.
While it would be useful to be able to measure the coverage scores on stub packages too, pyright does not support doing so. As a result, you should evaluate whether a stub package is better than the inline types for a package yourself beffore making use of it.
See latest-scores.md for results in markdown form.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for typescore-0.11-py2.py3-none-any.whl