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.

TODO: Я сгенерил новую версию scaffold, надо проверить как работает

uvx pylennon==0.3.1 generate ./src_imaginary uvx pylennon==0.3.1 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.3.tar.gz (64.4 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.3-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylennon-0.3.3.tar.gz
  • Upload date:
  • Size: 64.4 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.3.tar.gz
Algorithm Hash digest
SHA256 95dfc8894b432aa2ff5b3b86acfc5de2016a53a4dd5694418a62bd978fd996d5
MD5 f6c5c874c936985fd4d0e962017b077b
BLAKE2b-256 b5cea4f6ed330d8b2e01933f9a952d40feb032cee25e9e461bdcba3525dc65ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylennon-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 24.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 82bf292cb3b7997b9174e10a1f8a349723402199df83346b15d3b4eee9fa38c8
MD5 8ad18956fe00a96bab69196783478bf8
BLAKE2b-256 ceef9f8cf01dd8ed467a4d642fb7d1484f5dee81e1be765d5741e370b5f45551

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