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.0.tar.gz (182.3 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.0-py3-none-any.whl (191.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompd-0.3.0.tar.gz
  • Upload date:
  • Size: 182.3 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.0.tar.gz
Algorithm Hash digest
SHA256 ad519c97fdd8f43f7142b4315ccc86e02d468b1208840f19533c8f8c28ce3403
MD5 75fe9bed2900e7a5e77107e29721245a
BLAKE2b-256 7e7c1967aef733f0dc6fe5f989c31562c2a7a18baba096d2c8925da2be5b5e14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompd-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 191.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f3ff1871df19937525c72e63ad8a8765795585bb8fc3a8250c6b9e34a34daa2
MD5 248d3d224b6ae9b0860cc7cffd30db84
BLAKE2b-256 64a7b07c8c0ee3309685e7a4cae6efd7305aba48eb24f9766a1c05455c104ec2

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