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.2.tar.gz (63.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.2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylennon-0.3.2.tar.gz
  • Upload date:
  • Size: 63.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.2.tar.gz
Algorithm Hash digest
SHA256 68dd0c2d1c0daccfbad925d6149bd2c21f3ff82c708a9e9d6eea6677edf4bdba
MD5 3db62674de07b168b6bedb8546594b07
BLAKE2b-256 bf550e0088928cd295da6d39ba0d7370e2293c3e41618c98a942cf1f75d95785

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylennon-0.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 01a74f86e9cf0485d9b70547d2e32855d06218c7ecf57d4e8524be2310a0eb3c
MD5 697defba7a460c40e0163b2fc0a5b570
BLAKE2b-256 0b1e3cbdc8723e09d5b2aa6d79e4f0be07c2d855053d4163bbe820b0e7e0b1da

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