Skip to main content

theoworks-sphinx-build

The minimum TheoWorks Sphinx extension for a customer's own sphinx-build. It runs inside a sphinx-needs build and emits exactly the artifacts that genuinely require an in-build render:

  • theoworks-schema.json — the RESOLVED needs_* metamodel, captured after every extension's setup() has run (so an extension-registered metamodel, e.g. a bundle bringing its own needs_types, is recoverable even though it never appears as a conf.py literal).
  • theoworks-directive-images.json — the needuml/needsequence diagram-image location manifest (only when PlantUML rendered one).
  • theoworks-directive-results.json — the computed needtable/needlist/ needextract/needbar/needpie result manifest (only when a computed directive occurs).

This is deliberately not the full TheoWorks toolchain. theoworks init / validate / trace / build-index, the rich needs-graph read model, and the byte-stable RST editor all live in the proprietary theoworks-cli image / self-host server / VS Code extension — never in this package. theoworks-sphinx-build ships zero of that surface; its only dependency on TheoWorks IP is a small, vendored directive-block scanner + two content-address hashes (never the byte-stable serializer, validation, or packs).

Install

pip install theoworks-sphinx-build

Usage

Add the extension to your project's conf.py (after sphinx_needs) — note the importable module name stays theoworks_sphinx, even though the PyPI distribution is theoworks-sphinx-build (so an existing extensions = [..., "theoworks_sphinx"], including anything TheoWorks has already scaffolded for you, keeps working unchanged):

extensions = ["sphinx_needs", "theoworks_sphinx"]

Then build as usual:

sphinx-build -b html docs public

If the package is not installed, a TheoWorks-scaffolded conf.py degrades gracefully — the build still succeeds and still produces needs.json (the floor); you only lose the richer previews above.

Metadata

Release files for theoworks-sphinx-build 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 theoworks-sphinx-build 0.1.0
File Size Uploaded Provenance Actions
theoworks_sphinx_build-0.1.0.tar.gz 52.1 kB Without provenance Details for theoworks_sphinx_build-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 100.8 kB

Release files / theoworks_sphinx_build-0.1.0.tar.gz

Download URL theoworks_sphinx_build-0.1.0.tar.gz
Size 52.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ebf77d53d753564433dc857b365ba294beb1c3a6a78e5dd2bec1f3cd5392fca3
BLAKE2b-256 checksum
How to use checksums
5605146c676acb635ddfc23c9cd8efcc58d84b995d3f496084e510d42a0776e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

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

Download URL theoworks_sphinx_build-0.1.0-py3-none-any.whl
Size 48.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b952da3530cba09d918aef5729fe77044539f751badfcd58d2f0089c19bbdd0b
BLAKE2b-256 checksum
How to use checksums
ca417cbf15caec5c0a20eba30ad930b86bcef00affdcfcf521e3e1cca4a293e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for theoworks-sphinx-build 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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