Skip to main content

Visualise Python project type completeness

Project description

Generate a treemap graph from Pyright verifytypes output.

PyPI version License Python versions supported Built with uv Checked with Ruff Checked with Pyright

A simple cli tool to visualise the state of a Python project's type completeness, from the output of pyright's --outputjson --verifytypes command:

Sample graph output for prefect

The interactive graph depicts a projects modules as a tree, with each the size of each module based on the number of exported symbols.

Usage

Use a Python tool manager like uv tool or pipx:

$ uv tool install pyright
$ uv tool install pyright-analysis

Then generate a type compleness JSON report for your package, and transform the report into a graph:

$ pyright --outputjson --ignoreexternal --verifytypes PACKAGE > PACKAGE.json
$ pyright-analysis PACKAGE.json

This will open the resulting graph in your browser.

Full help documentation is available on the command-line:

pyright-analysis help output

Features

  • Interactive responsive graph. Hover over each package to get more detail about symbol counts and completeness, or click on packages to zoom in.
  • Export options:
    • Full stand-alone HTML page.
    • HTML div snippet with configurable HTML id.
    • Static image export as PNG, JPG, WebP, SVG or PDF.
    • Plotly JSON graph representation.

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

pyright_analysis-1.0.0rc2.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyright_analysis-1.0.0rc2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file pyright_analysis-1.0.0rc2.tar.gz.

File metadata

  • Download URL: pyright_analysis-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pyright_analysis-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 8e2867b32c19028e16f8fbcd9b6bbbff76f69b91bcd6bbccff2c97d6d3f659ae
MD5 904378479704d2adbac7b9fbf681b8b5
BLAKE2b-256 e031e1b9d481b29e132a7150bd950ff39075c3be33cfafe1bd6a4f2a56570acf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyright_analysis-1.0.0rc2.tar.gz:

Publisher: ci-cd.yml on mjpieters/pyright-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyright_analysis-1.0.0rc2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyright_analysis-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 a689ed5c2c35c21f3f8c410647f7b36ac69cef9872c7b9c19ad1b8969c4994c4
MD5 9dd43890e2a2c472044d8a23e0519eb3
BLAKE2b-256 75e83804811147e0f4d7066567adb18186d32febf7f16e679193989dc3422bac

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyright_analysis-1.0.0rc2-py3-none-any.whl:

Publisher: ci-cd.yml on mjpieters/pyright-analysis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page