typescore - generate typing completeness scores for a set of packages
Project description
typescore - generate typing completeness scores for a set of packages
Usage:
typescore <packages> [--verbose] [--scores <scorefile>] [--sep <sep>]
typescore --help
typescore --version
Options:
--scores <scorefile> The output file. [default: scores.csv]
--sep <sep> CSV column separator. [default: ,]
--verbose Include package info in the output.
--help Show this help.
--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:
package,typed,module,score,extra_columns
or, if --verbose is specified:
package,version,typed,module,score,package_description,extra_columns
'typed' is a Boolean and tells whether the package had a py.typed file.
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. However, we do generate separate scores for each top level module in a package (so matplotlib would result in 3 lines, one each for 'matplotlib', 'mpl_toolkits' and 'pylab'.
<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 ('extra_columns'). A typical extra column might be the package rank on PyPI downloads.
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
Built Distribution
File details
Details for the file typescore-0.3.tar.gz
.
File metadata
- Download URL: typescore-0.3.tar.gz
- Upload date:
- Size: 51.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1a51a41e9a25a98ae11eec13c194941826547c73f64092e71316cd16731c79c |
|
MD5 | e0ca20d245b677ccf7cecbf623c8c12b |
|
BLAKE2b-256 | bfc9fa3759dc365cf4a29f4507a03f333a16196253475f5d5bd2b4eda7234266 |
File details
Details for the file typescore-0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: typescore-0.3-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b026a7e303d3f7158f31f7784ad9f6c12dfc0835a13d1d351bf20359384d8c |
|
MD5 | 85dfc8c40ffb371b04bbe6caa8753708 |
|
BLAKE2b-256 | ec222073a29719b8ebafeaadb331ed50e9f33eaad086cb231e0ecdbf8004597b |