thalamus-arch
A structural gate for a Python repository. The repository declares its design in
arch/model.yaml: the source roots to walk, the layers its modules fall into, which
layer may depend on which, and the exceptions it accepts, each with its reason.
thalamus-arch measures the import graph under that declared policy and reports where
the code and the declaration disagree.
thalamus-arch scanmeasures the import graph: modules, dependencies, propagation cost and cycles. With--writeit regenerates the measured half ofarch/model.yamland leaves the authored half byte for byte. With--checkit exits 1 when the committed file no longer matches a fresh scan.thalamus-arch rules --gateexits 1 on a dependency the declared layers forbid and the model does not accept, and 2 on an accepted exception that no longer happens.thalamus-arch dead --gateexits 1 on a definition under the source roots that nothing outside the test roots refers to.thalamus-arch refsreports names that comments point at and the tree no longer holds. It has no gate.thalamus-arch diff <commit>recomputes both sides and compares them.thalamus-arch showprints the declared model and the last scan.
Every subcommand takes --repo. It defaults to the git repository holding the current
directory.
It depends on PyYAML and pluggy and on nothing from thalamus. Installed beside
thalamus, it also answers as thalamus arch,
through the thalamus entry-point group.
pip install thalamus-arch installs it, or uv tool install thalamus-arch as a
command of its own. In a checkout of the thalamus repository, uv sync installs it into
the development environment. The repository's own arch/model.yaml is a worked
example of every block.
Metadata
Release files for thalamus-arch 0.1.1
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 |
|---|---|---|---|---|
| thalamus_arch-0.1.1.tar.gz | 51.8 kB | With provenance | Details for thalamus_arch-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thalamus_arch-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for thalamus_arch-0.1.1-py3-none-any.whl |
Total release size: 110.8 kB
Release files / thalamus_arch-0.1.1.tar.gz
| Download URL | thalamus_arch-0.1.1.tar.gz |
|---|---|
| Size | 51.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b3bd4aa23bc5010e746da01ecf61182df0633e8e3955d1a53fd5623a3ffd5f1
|
|
BLAKE2b-256 checksum How to use checksums |
4b95b335d7ffcb1941a792dc6d77a1d767e33dcbad51512c980093d43a0b0c83
|
| 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 27, 2026.
Transparency logRelease files / thalamus_arch-0.1.1-py3-none-any.whl
| Download URL | thalamus_arch-0.1.1-py3-none-any.whl |
|---|---|
| Size | 59.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2412f2fc6aa90251eb778a7c228d5b814fd1aa857d719d70b4cb354b360a0fb7
|
|
BLAKE2b-256 checksum How to use checksums |
376d7f958b525d09709e8f90d5ff364d0c917d2d03d5ed5bb605503f50d61a96
|
| 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 27, 2026.
Transparency logSecurity for thalamus-arch 0.1.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for thalamus_arch-0.1.1.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 27, 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.