Skip to main content

Structured prompt management CLI with universal LLM provider support, version control, and git integration

Project description

Prompd Python CLI

This is the Python implementation of the Prompd CLI with rich features and LLM provider integrations.

Features

  • Full LLM provider support (OpenAI, Anthropic, Ollama, etc.)
  • Rich terminal output with colors and formatting
  • Advanced validation and error reporting
  • Git integration for version control
  • Template engine with Jinja2
  • Configuration management

Installation

cd cli/prompd/python
pip install -e .

Usage

# Validate a .prmd file
prompd validate example.prmd

# List available files
prompd list prompts/

# Show file structure
prompd show example.prmd

# Execute with LLM
prompd execute example.prmd --provider openai --model gpt-4 -p name=Alice

# Provider management
prompd provider list
prompd provider add custom-llm http://localhost:8080/v1 model1 model2

# Git operations
prompd git status
prompd git commit -m "Update prompts"

# Version management
prompd version bump example.prmd minor
prompd version history example.prmd

Dependencies

See pyproject.toml for full dependency list. Requires Python 3.8+.

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

prompd-0.3.2.tar.gz (185.4 kB view details)

Uploaded Source

Built Distribution

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

prompd-0.3.2-py3-none-any.whl (194.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompd-0.3.2.tar.gz
  • Upload date:
  • Size: 185.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for prompd-0.3.2.tar.gz
Algorithm Hash digest
SHA256 ce506c42e12500b77a2cfa46db81e09bdd949bf68ce2e098fd1e2bce68642bf0
MD5 903e2ff271121c2a6230f159aa33edbf
BLAKE2b-256 bd858a5d9b2b30361356061b315d677eb993d61a02a3407823cebf5a1eefdde2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompd-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 194.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for prompd-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4df3ed826fe5b78d1a95517331204719f13e36046923458d21568e6ce5ca666f
MD5 e2bcc407f9c85b9b7f630545754418eb
BLAKE2b-256 b11993ca1a2e4878f4d5eaf025128303d8a5c05427ade019d6b6938c5fa291b2

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