Python SDK for the PromptJuggler API — run prompts and workflows, manage knowledge bases, and verify webhooks.
Project description
PromptJuggler Python SDK
The official Python client for the PromptJuggler API. Run prompts and workflows, manage knowledge bases, and verify webhooks — with pydantic-typed models and flat, synchronous methods.
Requirements
- Python 3.10+
Installation
pip install promptjuggler
Usage
from promptjuggler import PromptJuggler, RunStatus
pj = PromptJuggler("your-api-key")
# Trigger a run (async — returns the run ID)
created = pj.run_prompt("greeting", "production", {"name": "Ada"})
# Poll for the result
run = pj.get_prompt_run(created.id)
if run.status == RunStatus.COMPLETED:
print(run.output)
Errors surface as ApiError (with a status_code). Verify incoming webhooks with
verify_webhook_signature().
Documentation
Full guides and the API reference: https://docs.promptjuggler.com/sdks/python/overview
License
MIT
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
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 promptjuggler-0.1.0.tar.gz.
File metadata
- Download URL: promptjuggler-0.1.0.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5d78018f24d5bc013f4aefd52faf9775caa52cfc2c0b7f4c15925ec552c9f93
|
|
| MD5 |
c9614549a0955d4c08a4763a759a87d7
|
|
| BLAKE2b-256 |
853693fdae7a8332f5bc08a86ee7ee07c2e21e4101a75d8b3bb523a32b6e9f83
|
Provenance
The following attestation bundles were made for promptjuggler-0.1.0.tar.gz:
Publisher:
sdk-python-publish.yaml on motleyhand/PromptJuggler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promptjuggler-0.1.0.tar.gz -
Subject digest:
a5d78018f24d5bc013f4aefd52faf9775caa52cfc2c0b7f4c15925ec552c9f93 - Sigstore transparency entry: 1939540098
- Sigstore integration time:
-
Permalink:
motleyhand/PromptJuggler@1d931aacace35f6875d0acd6b9c909e42cb08703 -
Branch / Tag:
refs/tags/python-sdk/v0.1.0 - Owner: https://github.com/motleyhand
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-python-publish.yaml@1d931aacace35f6875d0acd6b9c909e42cb08703 -
Trigger Event:
push
-
Statement type:
File details
Details for the file promptjuggler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: promptjuggler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 92.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63f6fc1e2bbaa4a0b221ea3748c7ad46886000b537d612cb0863226631f43e0c
|
|
| MD5 |
cefef84fc7491264e0ca7313b2563694
|
|
| BLAKE2b-256 |
e38e8c73be85bcc3bf6ce7d63a22d3d862e0cf3e6c5be7a96f9137d7359f5a3c
|
Provenance
The following attestation bundles were made for promptjuggler-0.1.0-py3-none-any.whl:
Publisher:
sdk-python-publish.yaml on motleyhand/PromptJuggler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promptjuggler-0.1.0-py3-none-any.whl -
Subject digest:
63f6fc1e2bbaa4a0b221ea3748c7ad46886000b537d612cb0863226631f43e0c - Sigstore transparency entry: 1939540212
- Sigstore integration time:
-
Permalink:
motleyhand/PromptJuggler@1d931aacace35f6875d0acd6b9c909e42cb08703 -
Branch / Tag:
refs/tags/python-sdk/v0.1.0 - Owner: https://github.com/motleyhand
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-python-publish.yaml@1d931aacace35f6875d0acd6b9c909e42cb08703 -
Trigger Event:
push
-
Statement type: