Skip to main content

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

promptjuggler-1.0.4.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptjuggler-1.0.4-py3-none-any.whl (97.4 kB view details)

Uploaded Python 3

File details

Details for the file promptjuggler-1.0.4.tar.gz.

File metadata

  • Download URL: promptjuggler-1.0.4.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for promptjuggler-1.0.4.tar.gz
Algorithm Hash digest
SHA256 19af90fb1da622cd9c5bbf42200d16e6f1aadd80022ba13b8e31090b9728ef05
MD5 dfc9b325383c102a33dadae6ef2f2554
BLAKE2b-256 c93379f90f8beab44160394d1f41d99dce10e3f6264f58098b7a746a0fad8f30

See more details on using hashes here.

Provenance

The following attestation bundles were made for promptjuggler-1.0.4.tar.gz:

Publisher: sdk-python-publish.yaml on motleyhand/PromptJuggler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file promptjuggler-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: promptjuggler-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 97.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for promptjuggler-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f090fe147c3fafa9dace2388061bb44e72cc271d3b4e5dec1f5b58f90e006239
MD5 0ed9a61bb21c3df6f426f7a37e1f8a17
BLAKE2b-256 a24b2d80e0191768b921fc4fef9efa1cf9200f4c18f56aa936a601f69517bca9

See more details on using hashes here.

Provenance

The following attestation bundles were made for promptjuggler-1.0.4-py3-none-any.whl:

Publisher: sdk-python-publish.yaml on motleyhand/PromptJuggler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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