Skip to main content

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}")

Metadata

Release files for openprompts 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openprompts 0.1.2
File Size Uploaded Provenance
openprompts-0.1.2.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for openprompts 0.1.2
File Interpreter ABI Platform
openprompts-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / openprompts-0.1.2.tar.gz

Download URL openprompts-0.1.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f60be6a5cb2e5ff45df1168ababf07d57e627c04ff4ff0d016833eda3ccc9b03
BLAKE2b-256 checksum
How to use checksums
3edbee2443ee00a87d06b3e688aad2177081d0c07bfcf5f82eebf0a5de1a84ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / openprompts-0.1.2-py3-none-any.whl

Download URL openprompts-0.1.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d67f8e308d358af8968b43a3379fb48f5fa9cc7df5619417e0b7222a7b52c3ae
BLAKE2b-256 checksum
How to use checksums
db0d76d7302ca1127c5e60d21933058fff683e6d607cf5f9ba2ff54b01dcb50e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for openprompts 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page