Skip to main content

Python SDK and CLI for Open Prompt Store.

Project description

openpromptstore

from openpromptstore import PromptStore

store = PromptStore(
    "http://localhost:8000",
    api_key="your_api_key",
    organization_id="...",
    project_id="...",
)
text = store.render("welcome@prod", {"user_name": "Ada", "product": "Acme"})

CLI:

openpromptstore login
openpromptstore project list
openpromptstore create welcome --description "System prompt for onboarding"
openpromptstore push welcome ./prompts/welcome.md
openpromptstore alias set welcome prod 1
openpromptstore render welcome@prod --var user_name=Ada --var product=Acme

The SDK fetches prompt templates through the public HTTP API and renders them client-side with strict missing-variable checks and TTL caching.

Prompts are scoped to projects inside organizations. Use organization_id for the tenant and project_id for the prompt namespace. The CLI also supports project list, project create, and project rename.

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

openpromptstore-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

openpromptstore-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file openpromptstore-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for openpromptstore-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5afb2ff663ea28e38b93153ff8581f268de707a2042b2392b68e3e8d8f5486a2
MD5 02274fb0236d5dd546694da2777cb668
BLAKE2b-256 6f781185a030d39e111a75e4bef5b57808235a49e0f868a3a1330fa30ba27dfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for openpromptstore-0.1.0.tar.gz:

Publisher: release.yml on uhryvacheuski/openpromptstore

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

File details

Details for the file openpromptstore-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openpromptstore-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14b298c9f99c99402557048d34a60bd8793307902ccd00e93613f530af8b2465
MD5 177376658951b63a65095371cb8bbf29
BLAKE2b-256 06b4b2d7e32f822953bd520214b36f454afe4ceccfe10d4a6405e64da3398996

See more details on using hashes here.

Provenance

The following attestation bundles were made for openpromptstore-0.1.0-py3-none-any.whl:

Publisher: release.yml on uhryvacheuski/openpromptstore

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