PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Prompt Optimization Python Packages

Python packages with the GitHub topic prompt-optimization. Sorted by relevance, with stars and monthly downloads.
zou-group
textgrad

TextGrad: Automatic ''Differentiation'' via Text -- using large language models to backpropagate textual gradients. Published in Nature.

80K 4K 289
tokmacher
tok-protocol

tok is an invisible bridge

4K 0 0
microsoft
trace-opt

End-to-end Generative Optimization for AI Agents

3K 735 57
SuperagenticAI
dspy-code

Claude Code for DSPy: AI-powered interactive development environment for DSPy

1K 69 6
JacobHuang91
llm-prompt-refiner

🚀 Lightweight Python library for building production LLM applications with smart context management and automatic token optimization. Save 10-20% on API costs while fitting RAG docs, chat history, and prompts into your token budget.

761 37 3
Lancer59
promptfoundry

Open-source, local-first, Production grade intelligent prompt management system. (not affiliated with any company)

735 0 0
kaustav1996
autoresearch-prompt-manager

Versioned prompt CRUD, A/B experiments, metrics, and LLM optimization API

472 1 0
kaustav1996
marketing-agent-example

Autonomous prompt management with versioning, A/B experiments, metrics, and LLM-driven optimization. Built on agno.

462 1 0
SuperBruceJia
promptcraft

PromptCraft: A Prompt Perturbation Toolkit for Prompt Robustness Analysis

414 23 2
kaustav1996
autoresearcher-shonku

Autonomous prompt optimization agents — autoresearch loop built on shonku

378 1 0
JarvisPei
scope-optimizer

SCOPE: Self-evolving Context Optimization via Prompt Evolution - A framework for automatic prompt optimization

281 77 6
yotambraun
flowprompt-ai

Type-safe prompt management with automatic optimization for LLMs

269 6 0
JacobHuang91
prompt-groomer

🚀 Lightweight Python library for building production LLM applications with smart context management and automatic token optimization. Save 10-20% on API costs while fitting RAG docs, chat history, and prompts into your token budget.

195 37 3
kmrsandeep1998
toonprompt

Universal prompt optimization CLI + Python SDK for Codex, Claude, Cursor, Gemini, Aider, and Continue with Toon-style structured compression.

180 1 0
kaustav1996
shonku

Build, publish, and run AI agents as PyPI packages — wraps agno

168 1 0
synaptiai
siare

Self-Improving Agentic RAG Engine - Evolve multi-agent RAG pipelines using Quality-Diversity optimization

131 1 0
developzir
iflow-mcp-developzir-gepa-mcp

MCP server integrating GEPA (Genetic-Evolutionary Prompt Architecture) for automatic prompt optimization

107 48 6
shobrook
promptimal

A very fast, very minimal prompt optimizer

84 300 15
    • Data from PyPI, GitHub, ClickHouse, and BigQuery