This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Superseded by theoworks-sphinx-build; see theoworks.io
theoworks-core
Core library for TheoWorks — a byte-stable, round-trip toolkit for sphinx-needs requirements projects.
theoworks-core is pure Python with no runtime dependencies. It provides:
- Byte-stable RST round-trip — parse and re-serialize
.. <type>::need directives (and surrounding prose) with minimal, clean diffs. - Schema model — load a project's need types, fields, and links from
conf.py, a pack manifest, or observed usage. - Validation — check needs against the resolved schema and summarize findings (errors / warnings).
- Traceability — compute link coverage and gaps across a needs graph.
- Packs — starter project templates (
default,blank,aspice,vmodel) used to scaffold a new project.
Install
pip install theoworks-core
Usage
from theoworks_core import parse_document, serialize_document
doc = parse_document(open("docs/index.rst", encoding="utf-8").read())
for block in doc.blocks:
print(block)
# Round-trips byte-for-byte:
assert serialize_document(doc) == open("docs/index.rst", encoding="utf-8").read()
Scaffold a new project:
from theoworks_core import scaffold_project
scaffold_project("my-project", name="My Project", pack="aspice")
Related packages
theoworks-sphinx— the Sphinx extension that emits the needs graph (needs.json).theoworks-cli— thetheoworkscommand-line interface.
License
Apache-2.0. See LICENSE.
Metadata
Release files for theoworks-core 0.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 |
|---|---|---|---|---|
| theoworks_core-0.1.0.tar.gz | 70.0 kB | Without provenance | Details for theoworks_core-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| theoworks_core-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for theoworks_core-0.1.0-py3-none-any.whl |
Total release size: 120.9 kB
Release files / theoworks_core-0.1.0.tar.gz
| Download URL | theoworks_core-0.1.0.tar.gz |
|---|---|
| Size | 70.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4371fec8a8e30292db598bb0b60f6ebc0b945939f9bb4731158e0ffd01e30bf4
|
|
BLAKE2b-256 checksum How to use checksums |
a3da194b228dc9cd1cf2e97eb107ddcbad3f802ada2ac566ce245aae5e8ecd84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / theoworks_core-0.1.0-py3-none-any.whl
| Download URL | theoworks_core-0.1.0-py3-none-any.whl |
|---|---|
| Size | 50.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9febbdb4224c5d88417bf68eb6dae294b2c0e8c2483abdc9baa5a0dc251de5e2
|
|
BLAKE2b-256 checksum How to use checksums |
d640513a8cd45c6963e8fdc0deb95bd30421e9b19de085b9bcd97a686a2e59d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for theoworks-core 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.