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.1.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.1-py3-none-any.whl (191.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompd-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 cdb9b14cc89498768f60fa5281a3dc62ffdee53461a615ed856634bdcde8a366
MD5 cc4fcd39e840388d364e0cb29a599520
BLAKE2b-256 e988bcddb23919db81b6f54fbd22861649bae1315daf18b3474aa41b525b6ef0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompd-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af33f51a3ef5f1400d0f1608cfbcc724175a28f8a17cde13b6f85a233c7ebca2
MD5 723ce0b1aefa5d99603a533be7417bdf
BLAKE2b-256 d0df61cc994761060330b9bb636fbe5f3599e1c082ca7ba59de65bf2a5f41bed

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