typescore - generate typing completeness scores (and more) 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.7.tar.gz
.
File metadata
- Download URL: typescore-0.7.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc1b2a8ce56cb5fe76632a2930b51e53bf586257a0a5168a1165c50c9bf47c61 |
|
MD5 | 8d6c7268a3493bbbc74c988770fbb5a1 |
|
BLAKE2b-256 | 1d5b61f27d3b53ec854b95715fbb8ab0c5231e7fd3052dff33f6ee203f917969 |
File details
Details for the file typescore-0.7-py2.py3-none-any.whl
.
File metadata
- Download URL: typescore-0.7-py2.py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45015a5599179bb7859c9aa9c21475b559d3af82840ff8f1adc3bf19b449f5e7 |
|
MD5 | 92152106448b65855f9303b47bd9d6b2 |
|
BLAKE2b-256 | bcefe32ccb1ec090ef6f98c8977e7dbe010a2e6f0968b439e986aa5b8a4b81b8 |