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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file promptdesk-0.2.7.tar.gz.

File metadata

  • Download URL: promptdesk-0.2.7.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for promptdesk-0.2.7.tar.gz
Algorithm Hash digest
SHA256 fd03f5d36e69c0e25724dc472cf177036b6cb49b730616031424236c92b77957
MD5 8032b05bfa96d05d7c9cd2bbebe7915d
BLAKE2b-256 d264f75f441007bbba477508083d986c3e107f1a42defee5f84a903ee05b4eb0

See more details on using hashes here.

File details

Details for the file promptdesk-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: promptdesk-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for promptdesk-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cc12f275af681e61994cd3f63d738bfffbdd42a42090f56815d3976af81dcd48
MD5 7d753fa45d0d9f7dc54d822879fdc1d8
BLAKE2b-256 b47d60338141f5622184b63ea2719c1911d8a26358f54096bae5ee39970b5cdc

See more details on using hashes here.

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