Skip to main content

PromptDesk python SDK.

Project description


pypi docker docker pulls AGPLv3

A simple open-source prompt management platform.

The best way to build agents and prompt-based applications.

Explore the docs »

Available in: Python

⭐️ Why PromptDesk?

PromptDesk is 100% free and open-source minimalist tool to facilitate the creation, organization, integration, and evaluation of prompts, prompt-based applications, agents and Large Language Models (LLMs).

Alt Text

We recommend starting with the Quickstart guide. You can also jump straight to the Build Prompts or start integrating prompts in python with Integrate Prompts guides.

✨ Features

  • 👨‍💻 OpenAI-like minimalist prompt builder
  • 🥸 Prompt variable and logic support with Handlebars.js syntax
  • 📊 Complete audit log of all API calls
  • 🌐 Unlimited vendor-agnostic LLM API integrations
  • 📦 Environment variables support
  • 🚀 Easy to set up and integrate (5 minutes)
  • 👨‍💻 Community-driven

🚀 Getting Started

PromptDesk is available as a hosted web application and as a Docker image. You can get started immediately by visiting the PromptDesk Login and creating an account. Hosting is provided for free by the MongoDB and DigitalOcean Startup Programs.

Hosted Web Application

wget https://raw.githubusercontent.com/promptdesk/promptdesk/main/quickstart/docker-compose.yml

Start the Docker container:

docker compose up

Open your web browser and navigate to http://localhost:8080/ to access the PromptDesk application. Initial setup will require a valid OpenAI API key for installation testing purposes.

👨‍💻 Python Integration

To install PromptDesk, use pip:

pip install promptdesk

Usage

You can call the prompt you build in the application by using the generate method.

from promptdesk import PromptDesk

pd = PromptDesk(
    #defaults to os.environ.get("PROMPTDESK_API_KEY")
    api_key = "YOUR_PROMPTDESK_API_KEY"
    #defaults to https://app.promptdesk.ai
    service_url = "http://localhost:8080"
)

story = pd.generate("short-story", {
    "setting": "dark and stormy night",
    "character": "lonely farmer",
    "plot": "visited by a stranger"
})

print(story)

🔗 Important Links

For more information about PromptDesk, please refer to the following resources:

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

promptdesk-0.2.7.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

promptdesk-0.2.7-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page