Skip to main content

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 .

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.13.0.tar.gz (28.7 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.13.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file lackpy_lang-0.13.0.tar.gz.

File metadata

  • Download URL: lackpy_lang-0.13.0.tar.gz
  • Upload date:
  • Size: 28.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lackpy_lang-0.13.0.tar.gz
Algorithm Hash digest
SHA256 4a49bc4a62e025c4c5cc853d3ef930c80db7b68569dda5284733629261094649
MD5 d2a5fe15cd61939e6b88cb32d349ca3e
BLAKE2b-256 c2a4ae1fb8d3d46d7a72087e94413ed173a371850db8a00039c1133a4bdef489

See more details on using hashes here.

Provenance

The following attestation bundles were made for lackpy_lang-0.13.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.13.0-py3-none-any.whl.

File metadata

  • Download URL: lackpy_lang-0.13.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lackpy_lang-0.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e07defcdfacd3c71b9a4c471110c201eeb2c3f2e9d9ceb902cd2bd126613e277
MD5 b030469e2fa6f2dcb9169355bc1b6871
BLAKE2b-256 a09ad51e0f8f84b875211bfd6fade27ff44808bd3383191fec93eab11e4f3ae8

See more details on using hashes here.

Provenance

The following attestation bundles were made for lackpy_lang-0.13.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.

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 files

0.12.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page