Skip to main content

sphinx-needs-trace

A Sphinx extension for projects that use sphinx-needs: see in the report what is traced and what is missing.

  • traceability-findings: the findings of the sphinx-needs schema rules as a table.
  • traceability-totals: total, traced and missing per type.
  • trace-graph: a link to an interactive trace graph page with search and a view per trace item.
  • merge_needs_files: merge the needs.json files of several builds of one product into one file that needimport reads.

A trace item is one element of the trace chain: a requirement, a spec, an implementation, a test, a test result. sphinx-needs calls it a "need".

Installation

pip install sphinx-needs-trace

It needs Python 3.11 or newer and sphinx-needs 9.3 or newer.

Usage

In conf.py:

extensions = ["sphinx_needs", "sphinx_needs_trace"]

On a page:

.. traceability-totals::

.. traceability-findings::

.. trace-graph::

The documentation describes the directives, the graph page and the merge functions.

Third-party code

The package contains a copy of Cytoscape.js 3.35.0 (src/sphinx_needs_trace/static/cytoscape.min.js), which draws the trace graph. Cytoscape.js is under the MIT licence; its licence text is next to the copy in cytoscape.LICENSE.

Development

pipx install pypeline-runner
pypeline run

pypeline run creates the virtual environment with uv, runs pre-commit, the tests and the docs build. uv and pipx are needed on macOS, Ubuntu and Windows; there are no other system dependencies.

Licence

MIT, see LICENSE.

Metadata

Release files for sphinx-needs-trace 0.1.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-needs-trace 0.1.0
File Size Uploaded Provenance Actions
sphinx_needs_trace-0.1.0.tar.gz 155.2 kB With provenance Details for sphinx_needs_trace-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-needs-trace 0.1.0
File Interpreter ABI Platform Actions
sphinx_needs_trace-0.1.0-py3-none-any.whl Python 3 none any Details for sphinx_needs_trace-0.1.0-py3-none-any.whl

Total release size: 313.3 kB

Release files / sphinx_needs_trace-0.1.0.tar.gz

Download URL sphinx_needs_trace-0.1.0.tar.gz
Size 155.2 kB
Tags Source
SHA-256 checksum
How to use checksums
620c3e7a5b7b65f8eec7e83953063ebbe4aa9f452ec55898e8dc5482c4c1e88e
BLAKE2b-256 checksum
How to use checksums
6c84aa3ca85fa5489a896e4fb6e2d97163c7ddfe8742193acb152d14cab421ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Release files / sphinx_needs_trace-0.1.0-py3-none-any.whl

Download URL sphinx_needs_trace-0.1.0-py3-none-any.whl
Size 158.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ec4f2d9bebb2ede19294f67ad1e63c425ca79bfcaaaa7a16155a53e06666333
BLAKE2b-256 checksum
How to use checksums
c1c61488dd2ba78e5701e4ec6e6eecf287f9922419a729ec1ec629cc7f19d6cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 29, 2026.

Transparency log

Security for sphinx-needs-trace 0.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.

Select from 2 files

Attestation for sphinx_needs_trace-0.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 Nov 29, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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