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.
Links and license
STV’s own code is licensed under the MIT License. Bundled browser components retain their MIT, ISC, BSD-3-Clause, Apache-2.0, EPL-1.0 and EPL-2.0 terms. Distributions include the required notices and source references; see the licensing documentation.
Metadata
Release files for sphinx-traceability-view 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinx_traceability_view-1.1.0.tar.gz | 1.1 MB | With provenance | Details for sphinx_traceability_view-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_traceability_view-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for sphinx_traceability_view-1.1.0-py3-none-any.whl |
Total release size: 2.1 MB
Release files / sphinx_traceability_view-1.1.0.tar.gz
| Download URL | sphinx_traceability_view-1.1.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e964833b68488b722bc761a0116155e589b3928813abeaa8d61a5824bf73785
|
|
BLAKE2b-256 checksum How to use checksums |
cd975de972dd784240cfa549dde9e56b9fd6829dc6502fa735c299c60cd8a856
|
| 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 Oct 25, 2026.
Transparency logRelease files / sphinx_traceability_view-1.1.0-py3-none-any.whl
| Download URL | sphinx_traceability_view-1.1.0-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cfed985248b3f328d46c5ffb57a15b5c4d89c9be0f4296e0c3568bba18549eb
|
|
BLAKE2b-256 checksum How to use checksums |
075f60d7d684b8c0449d38727403e34e924e3fe44a15f004c2bb20d9e599dda7
|
| 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 Oct 25, 2026.
Transparency logSecurity for sphinx-traceability-view 1.1.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.
Attestation for sphinx_traceability_view-1.1.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 Oct 25, 2026.
Transparency logA 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.