Skip to main content

STV: Sphinx Traceability View

STV adds interactive traceability graphs to Sphinx documentation built with Sphinx-Needs. Explore relationships between requirements and architecture, expand links, inspect rendered Need details, and save the visible view as SVG. Generated HTML works offline, including when opened directly from disk.

Installation

Install in the Python environment used to build your documentation:

python -m pip install sphinx-traceability-view

Browser assets are included; documentation authors do not need Node.js.

Minimal example

Create docs/conf.py with the following content. This example explicitly maps its two Need types; existing projects must map all their own types instead of replacing their schema:

project = "Traceability example"
extensions = ["sphinx_traceability_view"]
needs_types = [
    {"directive": "shr", "title": "Stakeholder requirement", "prefix": "SH_",
     "color": "#ddeeff", "style": "node"},
    {"directive": "swr", "title": "Software requirement", "prefix": "SW_",
     "color": "#eeffdd", "style": "node"},
]
needs_links = {"traces": {"incoming": "Traced by", "outgoing": "Traces"}}
traceability_view_model = {
    "levels": ["stakeholder", "software"],
    "types": {
        "shr": {"level": "stakeholder", "role": "stakeholder"},
        "swr": {"level": "software"},
    },
}

STV loads Sphinx-Needs automatically. Create docs/index.rst:

Traceability example
====================

.. shr:: Explore requirements
   :id: SH_001
   :traces: SW_001

   Readers can explore related requirements.

.. swr:: Render an interactive graph
   :id: SW_001

   The documentation contains a traceability view.

.. traceability-view:: SH_001

Build and open docs/_build/html/index.html in your browser:

python -m sphinx -W -b html docs docs/_build/html

Compatibility

  • Python: declared minimum 3.10; recorded development verification uses 3.13.17.

  • Sphinx 8.1.3 and Sphinx-Needs 8.2.0 are the pinned host dependencies. Compatibility with other versions has not been established.

  • Recorded automated browser verification uses Windows 11 and desktop Firefox 158.0.1. Other operating systems have not been qualified.

  • Manual checks were also reported for desktop Edge, Android Chrome and iPhone Safari, without recorded browser versions. These are supplementary checks rather than a versioned support guarantee. Complex graphs benefit from a larger screen; touch interaction is not separately qualified.

Metadata

Release files for sphinx-traceability-view 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-traceability-view 1.2.0
File Size Uploaded Provenance Actions
sphinx_traceability_view-1.2.0.tar.gz 1.1 MB With provenance Details for sphinx_traceability_view-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-traceability-view 1.2.0
File Interpreter ABI Platform Actions
sphinx_traceability_view-1.2.0-py3-none-any.whl Python 3 none any Details for sphinx_traceability_view-1.2.0-py3-none-any.whl

Total release size: 2.1 MB

Release files / sphinx_traceability_view-1.2.0.tar.gz

Download URL sphinx_traceability_view-1.2.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
7fed3e71cd96910f013bf30def789a02075a5b13df2011b15f990be888d7d7a4
BLAKE2b-256 checksum
How to use checksums
66c1e10d9629aeed040b1e22e3d772d686a45c831f198c2834034d9d5c166679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / sphinx_traceability_view-1.2.0-py3-none-any.whl

Download URL sphinx_traceability_view-1.2.0-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dfc02d224353df0d207eb10e14c4d03226bc8024f9c9382a4fe18cd849f928ec
BLAKE2b-256 checksum
How to use checksums
1f62fa05521b4d7a05f18d80baa0c54cdce8c770f40b55425829c0b606799c14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for sphinx-traceability-view 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sphinx_traceability_view-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page