Skip to main content

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

typescore-0.8.tar.gz (55.4 kB view details)

Uploaded Source

Built Distribution

typescore-0.8-py2.py3-none-any.whl (7.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file typescore-0.8.tar.gz.

File metadata

  • Download URL: typescore-0.8.tar.gz
  • Upload date:
  • Size: 55.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for typescore-0.8.tar.gz
Algorithm Hash digest
SHA256 134e3999e3b51b00cd535eccba0b4b9d52f7e299ac4c5d7a051b8c09563dd7be
MD5 6b514c557cc04a83845fb00db1d66685
BLAKE2b-256 d0a2be716cf1b1fd60e6a2fb7f481089f7fe71b14a6e6aa9ab0bd2199a72d2dd

See more details on using hashes here.

File details

Details for the file typescore-0.8-py2.py3-none-any.whl.

File metadata

  • Download URL: typescore-0.8-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

Hashes for typescore-0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 498dc881224f01a0ef7dc05528b910236dfcc2b9c2641620c285bdf725da47f9
MD5 822761c750af3266fe4e01d2276a534a
BLAKE2b-256 d66a1d5f0cb04e29894c03fe6948cb3e0d1b188a8c33746edb2afb016e82e2e3

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