Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lackpy_lang-0.12.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lackpy_lang-0.12.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for lackpy_lang-0.12.0.tar.gz
Algorithm Hash digest
SHA256 9b0f8ba5be001ece5d7a8c91ba4de26b8ad5e343c2852f1089f25c6ece7d9117
MD5 5d301a229a7f50e1528df8af59d40c89
BLAKE2b-256 2d1258532f2a63737136da1658cfd8f5bb8831968f3ae90dd658126072b6eed8

See more details on using hashes here.

Provenance

The following attestation bundles were made for lackpy_lang-0.12.0.tar.gz:

Publisher: ci.yml on teaguesterling/lackpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for lackpy_lang-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1050b59f978dcff6eea465152f65a60307450b80d26837e0bd8bb0662a559481
MD5 074a1020a4f19f677bf8cc4f101baed4
BLAKE2b-256 5fa4077246f431859123c3ce9fd68d74e8c2807fbe1cdd199c7f601251b58514

See more details on using hashes here.

Provenance

The following attestation bundles were made for lackpy_lang-0.12.0-py3-none-any.whl:

Publisher: ci.yml on teaguesterling/lackpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page