A Python SDK for OpenPrompts
Project description
OpenPrompts Python SDK
The official Python server SDK for OpenPrompts.
Installation
pip install openprompts
Quick Start
import openprompts
# Initialize the client
op = openprompts.init("https://your-openprompts-server.com", api_key="YOUR_API_KEY", ssl_verify=True)
# Fetch a prompt by template ID and tag (alias)
try:
prompt = op.get_prompt(template_id="your-template-id", prompt_tag="latest")
print("Prompt content:", prompt.get("content"))
except openprompts.OpenPromptsError as e:
print(f"Error fetching prompt: {e}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openprompts-0.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openprompts-0.1.0.tar.gz.
File metadata
- Download URL: openprompts-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f257f590fcfd45714a998902acc5652823a62b6ddc7d54ff94dc69f289f90c85
|
|
| MD5 |
e42ac6ae3d4c4f2a49c3f0dbc235bae4
|
|
| BLAKE2b-256 |
2b03237f170a424c07413ec762593c114633cc0462adbe6425677be87ddbc75d
|
File details
Details for the file openprompts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openprompts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c81c371998daa0ae19f96392a3a57cd4e56aea08edf5ecfa23f5f44fac32597
|
|
| MD5 |
525dfd2ecc56763ef0831de07d2a5e5f
|
|
| BLAKE2b-256 |
b1c58bb957d76a649f751326c689163eb6b28d350d2406834d408246ae888c1b
|