Skip to main content

AI-assisted Python development: write interfaces, generate implementations

Project description

PyLennon

AI-assisted Python development framework. Write function interfaces (signatures, type hints, docstrings); pylennon build generates the implementations using Claude.

Dev setup

# Install uv (once)
winget install astral-sh.uv

# Clone, then:
uv sync

# Verify
uv run pylennon --help
uv run pylennon build example/stubs.py

Usage

from pylennon import LennonApp

lennon_app = LennonApp()

@lennon_app.imagine
def parse_invoice(raw_text: str) -> Invoice:
    """Parse a raw invoice string into a structured Invoice object."""
    ...
pylennon build src/invoices.py

See idea.md for the full design.

uvx pylennon==0.3.3 generate ./src_imaginary uvx pylennon==0.3.3 scaffold ./src_imaginary ./src/pylennon

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

pylennon-0.3.4.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

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

pylennon-0.3.4-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file pylennon-0.3.4.tar.gz.

File metadata

  • Download URL: pylennon-0.3.4.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pylennon-0.3.4.tar.gz
Algorithm Hash digest
SHA256 094add58885f612a1e1f8614de7eee20fbcdffb7ced45365a66bf1935e70ccd4
MD5 6e2649f6c19833f7a9ee4176ea8030e9
BLAKE2b-256 cc11df81f7a5b716f4bf4091a30fa3305e18986e4caf0fdf6d9071f48b5c0dce

See more details on using hashes here.

File details

Details for the file pylennon-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: pylennon-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pylennon-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4c13331a23ab328f25b764719c82b825330b1707470c07b058e174c00d0a78d4
MD5 ef6db6fb78bb241f2af4943415b3cce3
BLAKE2b-256 6e171ef18a63f514747dc8ba5e0f3413fe51ebe7eb16a45da07111b05927f0ec

See more details on using hashes here.

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