Discover and explore top open-source AI tools and projects—updated daily.
A prompt programming language for Python
Top 97.5% on SourcePulse
APPL is a Python-based prompt programming language designed to seamlessly integrate Large Language Models (LLMs) into software development. It offers a natural, intuitive, and efficient way for developers to leverage LLMs like GPT, enhancing program readability and maintainability by embedding natural language prompts directly within Python code.
How It Works
APPL extends Python by allowing natural language prompts to be embedded as string literals within functions marked with the @ppl
decorator. These prompts are dynamically constructed and can incorporate Python control flow and variables. The gen()
function is used to invoke an LLM with the current prompt, and APPL handles asynchronous execution for parallel LLM calls, simplifying synchronization. It also provides mechanisms for transforming Python functions into LLM-callable tools and includes tracing and failure recovery capabilities.
Quick Start & Requirements
pip install -U applang
.env
or environment variable).Highlighted Details
Maintenance & Community
@ppl
decorator.Licensing & Compatibility
Limitations & Caveats
The "Working with Cursor" feature is experimental. The roadmap indicates planned features like direct prompt interaction without the @ppl
decorator, suggesting current usage is tied to this decorator.
7 months ago
Inactive