The lackpy language: grammar, validator, grader, and spec — the pure-language leaf, with no runtime dependencies.
Project description
lackpy-lang
The lackpy language as a standalone, dependency-free distribution: the grammar (allowed/forbidden AST nodes, builtins, names), the validator, the grader, and the language spec. This is the pure-language leaf of lackpy — it has no runtime dependencies and pulls in none of lackpy's interpreters, policy layer, service, or MCP surface.
Why a separate package?
So consumers that only need to reason about lackpy programs — validate them, grade
them, or describe the language — can do so without installing lackpy's full runtime.
For example, a coaching/policy tool can classify a generated program against the
canonical grammar by importing lackpy.lang directly, instead of mirroring the
definitions by hand.
from lackpy.lang import validate, compute_grade, get_spec
result = validate("x = sorted(items)\nprint(x[0])")
assert result.valid
Namespace
lackpy-lang and lackpy share the lackpy namespace via
PEP 420 (implicit namespace packages): neither
ships a top-level lackpy/__init__.py. Installing lackpy pulls in lackpy-lang
automatically; installing lackpy-lang alone gives you exactly lackpy.lang.
Development (monorepo)
# editable install of both, from the lackpy repo root:
pip install -e ./packages/lackpy-lang -e .
Project details
Release history Release notifications | RSS feed
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 lackpy_lang-0.12.0.tar.gz.
File metadata
- Download URL: lackpy_lang-0.12.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b0f8ba5be001ece5d7a8c91ba4de26b8ad5e343c2852f1089f25c6ece7d9117
|
|
| MD5 |
5d301a229a7f50e1528df8af59d40c89
|
|
| BLAKE2b-256 |
2d1258532f2a63737136da1658cfd8f5bb8831968f3ae90dd658126072b6eed8
|
Provenance
The following attestation bundles were made for lackpy_lang-0.12.0.tar.gz:
Publisher:
ci.yml on teaguesterling/lackpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lackpy_lang-0.12.0.tar.gz -
Subject digest:
9b0f8ba5be001ece5d7a8c91ba4de26b8ad5e343c2852f1089f25c6ece7d9117 - Sigstore transparency entry: 1809413157
- Sigstore integration time:
-
Permalink:
teaguesterling/lackpy@3014fc3eb2f17c0027f87fc0ec7c593ca5d5ad77 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/teaguesterling
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3014fc3eb2f17c0027f87fc0ec7c593ca5d5ad77 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file lackpy_lang-0.12.0-py3-none-any.whl.
File metadata
- Download URL: lackpy_lang-0.12.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1050b59f978dcff6eea465152f65a60307450b80d26837e0bd8bb0662a559481
|
|
| MD5 |
074a1020a4f19f677bf8cc4f101baed4
|
|
| BLAKE2b-256 |
5fa4077246f431859123c3ce9fd68d74e8c2807fbe1cdd199c7f601251b58514
|
Provenance
The following attestation bundles were made for lackpy_lang-0.12.0-py3-none-any.whl:
Publisher:
ci.yml on teaguesterling/lackpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lackpy_lang-0.12.0-py3-none-any.whl -
Subject digest:
1050b59f978dcff6eea465152f65a60307450b80d26837e0bd8bb0662a559481 - Sigstore transparency entry: 1809413160
- Sigstore integration time:
-
Permalink:
teaguesterling/lackpy@3014fc3eb2f17c0027f87fc0ec7c593ca5d5ad77 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/teaguesterling
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3014fc3eb2f17c0027f87fc0ec7c593ca5d5ad77 -
Trigger Event:
workflow_dispatch
-
Statement type: