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.3.tar.gz (185.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.3-py3-none-any.whl (194.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompd-0.3.3.tar.gz
  • Upload date:
  • Size: 185.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.3.tar.gz
Algorithm Hash digest
SHA256 3db2de109eaaeea0958578b236ef847e7a2264164ad59dc573daf29b9c403a9b
MD5 269b48b3d046bd3809c168333cc35e72
BLAKE2b-256 bea653bf39f49d1c2a6437ed126bd706dc0baef69b3c7be1ff77bb2f2fc133e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompd-0.3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 88adced98fe00e506517db2d8660732e6c979686dc0144c11be5f34ab30f7e7a
MD5 46f37063f5148fc8fd7b9b57e74396cf
BLAKE2b-256 038081eeb7cf4bf0203d752a2313f20e3eacef3c2d5f603437120ff19093ecea

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