Skip to main content

lackpy

Python that lacks most of Python. A micro-inferencer that translates natural language intent into sandboxed tool-composition programs.

PyPI Tests Docs

What it does

$ lackpy -c "read file main.py and count its lines" --profile read_file,find_files

lackpy takes an intent, generates a restricted Python program using a local model you configure (any Ollama-served coder model), validates it against a strict AST whitelist, and runs it with traced tool calls. One MCP call replaces N tool round-trips.

Install

pip install lackpy            # runtime + local/cloud model inference (via woollama)
pip install lackpy[full]      # + all optional features (sandbox, mcp, blq, …)

pip install lackpy-lang       # JUST the language (grammar/validator/grader/spec),
                              # no runtime — for tools that only reason about programs

Model inference is built in — calls route through woollama's core (a dependency), so local Ollama and cloud backends (Anthropic, OpenAI, …) all work without a per-vendor extra; cloud backends just need the relevant API key in your environment.

lackpy and lackpy-lang share the lackpy namespace (PEP 420); neither ships a top-level lackpy/__init__.py, so import from submodules (from lackpy.lang import validate, from lackpy.service import LackpyService).

Development (monorepo)

This repo builds two distributions. For a working editable checkout, install both — lackpy pins lackpy-lang, which isn't on PyPI until its own tag, so install the local copy first:

pip install -e ./packages/lackpy-lang -e ".[dev]"

Quick start

lackpyctl init --ollama-url http://localhost:11434   # writes .lackpy/config.toml
lackpy -c "find all python files" --profile read_file,find_files

lackpyctl init wires a local Ollama model into the inference order — pick the model with --ollama-model (the choice is per-machine, not a package default). Without it, only the deterministic templates/rules tiers run and compositional intents won't generate.

from lackpy.service import LackpyService
from lackpy.kit.toolbox import ToolSpec, ArgSpec
import asyncio

async def main():
    svc = LackpyService()
    result = await svc.delegate("read file README.md", profile=["read_file"])
    print(result["output"])

asyncio.run(main())

Documentation

Full docs at lackpy.readthedocs.io:

Part of the Rigged Suite

lackpy is part of the Rigged developer tool suite but is independently installable.

License

MIT

Metadata

Release files for lackpy 0.15.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lackpy 0.15.1
File Size Uploaded Provenance
lackpy-0.15.1.tar.gz 838.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lackpy 0.15.1
File Interpreter ABI Platform
lackpy-0.15.1-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / lackpy-0.15.1.tar.gz

Download URL lackpy-0.15.1.tar.gz
Size 838.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d6f7faf353a60212f3147e992bc4dbb8683e4dbfea412b36fdfeac6df3083cf3
BLAKE2b-256 checksum
How to use checksums
bd0563489173d049a26371d7b832287de50627558501514fa83d0973ada6149e
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 Aug 14, 2026.

Transparency log

Release files / lackpy-0.15.1-py3-none-any.whl

Download URL lackpy-0.15.1-py3-none-any.whl
Size 260.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
336e82fc35ee88849bf9241f523c7c524c1346c9121c2503b96f4f6e918d98a0
BLAKE2b-256 checksum
How to use checksums
1c9fd175097a6b1177f9e8bd1832a71514c4b5fa9338bc7f906cca3d4f6bb7e6
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 Aug 14, 2026.

Transparency log

Security for lackpy 0.15.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.

Select from 2 files

Attestation for lackpy-0.15.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 Aug 14, 2026.

Transparency log

A 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.

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