leji (Python)
Reference SDK and CLI for the Leji specification: the open specification for the shared context layer of AI-native teams.
pip install leji # or: uv tool install leji / pipx install leji
leji init # bootstrap a context layer interactively
leji validate # manifest, artifacts, frontmatter, lint rules
leji index # generate the context index
leji index --check # fail when the index is stale
leji changelog check # append-only discipline
leji freshness # review-horizon report
leji conformance # score the layer against its claimed level
leji status # unindexed, dangling, and stale documents
leji route # the governed context a task's scope routes to
leji viewer # generate the static viewer for the context layer
leji viewer build # export a self-contained static viewer folder
leji viewer serve # generate, then serve it locally
leji view # generate, serve, and open it in your browser
leji detect # find installed agent hosts
leji start # open the layer in a detected agent host
leji adopt # map an existing entrypoint into a context layer
leji ci # add a validate workflow (--provider github|gitlab|circleci|azure)
leji agent --name <n> # bind an additional named agent into the layer
leji mounts hydrate # materialize declared federation mounts into the resolver cache
leji mounts status # each mount's availability, integrity, and pin ancestry
leji mounts locate # resolver state for one mount: projection path, pin, verification
leji changelog compact # fold the oldest changelog entries into one compaction entry
See the full command reference (flags, exit codes, examples) at https://leji.org/cli/.
Behaviorally identical to the @leji-org/leji npm package and the Go SDK: same
commands, same flags, same findings, same exit codes (0 clean, 1 findings, 2
usage error). All three implementations are tested against one shared fixture
suite. Install whichever matches your toolchain; agents and CI see the same
tool either way.
Supports spec line 1.0. Schemas and templates for that line ship inside the package; no network access is needed.
- Specification: https://leji.org
- Source: https://github.com/leji-org/leji (
packages/sdk-py) - License: Apache-2.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file leji-1.3.1.tar.gz.
File metadata
- Download URL: leji-1.3.1.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bbe609bab03c123d03cd753ecda5808965fb6f065eaa3e7df8e82e8a135267d
|
|
| MD5 |
858d81d9325710ab3538592ba2d12d2c
|
|
| BLAKE2b-256 |
5adec5b4a5e6e0eb56da7982293ceea3c9ab780ac97edf8f1578854fe3b2604f
|
Provenance
The following attestation bundles were made for leji-1.3.1.tar.gz:
Publisher:
release.yml on leji-org/leji
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
leji-1.3.1.tar.gz -
Subject digest:
0bbe609bab03c123d03cd753ecda5808965fb6f065eaa3e7df8e82e8a135267d - Sigstore transparency entry: 2302022364
- Sigstore integration time:
-
Permalink:
leji-org/leji@a5b51f0945e2874f4b26333c422477f2d6aa2b03 -
Branch / Tag:
refs/tags/packages/sdk-py/v1.3.1 - Owner: https://github.com/leji-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a5b51f0945e2874f4b26333c422477f2d6aa2b03 -
Trigger Event:
push
-
Statement type:
File details
Details for the file leji-1.3.1-py3-none-any.whl.
File metadata
- Download URL: leji-1.3.1-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fea362ee7d79584c05a4162321e112615dd13e6090c6f0d73612b5ef7a2b9830
|
|
| MD5 |
1abe39358387e2055ff813a815763c5f
|
|
| BLAKE2b-256 |
b169dd717edda064c5dfad9e9fe1ab0266814c1314bfe7807258a3e5ba9542d1
|
Provenance
The following attestation bundles were made for leji-1.3.1-py3-none-any.whl:
Publisher:
release.yml on leji-org/leji
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
leji-1.3.1-py3-none-any.whl -
Subject digest:
fea362ee7d79584c05a4162321e112615dd13e6090c6f0d73612b5ef7a2b9830 - Sigstore transparency entry: 2302022879
- Sigstore integration time:
-
Permalink:
leji-org/leji@a5b51f0945e2874f4b26333c422477f2d6aa2b03 -
Branch / Tag:
refs/tags/packages/sdk-py/v1.3.1 - Owner: https://github.com/leji-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a5b51f0945e2874f4b26333c422477f2d6aa2b03 -
Trigger Event:
push
-
Statement type: