Metadata-Version: 2.4
Name: openpromptstore
Version: 0.1.0
Summary: Python SDK and CLI for Open Prompt Store.
Project-URL: Homepage, https://ops.wladek.dev/docs
Project-URL: Repository, https://github.com/uhryvacheuski/openpromptstore
Project-URL: Issues, https://github.com/uhryvacheuski/openpromptstore/issues
Project-URL: Changelog, https://github.com/uhryvacheuski/openpromptstore/blob/main/CHANGELOG.md
Author: Open Prompt Store
License-Expression: MIT
Keywords: llm,prompt-management,prompts
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# openpromptstore

```python
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:

```bash
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`.
