promptvault


Namepromptvault JSON
Version 0.0.4 PyPI version JSON
download
home_pageNone
SummaryPromptVault is a tiny, zero‑dependency helper class for keeping reusable prompt templates in memory and filling them with runtime values.
upload_time2025-07-18 12:38:42
maintainerNone
docs_urlNone
authorNoah
requires_python>=3.12
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PromptVault

**PromptVault** is a tiny, zero‑dependency helper class for keeping reusable
prompt templates in memory and filling them with runtime values.  Templates
use double‑braces (`{{variable}}`) to mark the parts that should be replaced.

---

## Installation

```shell
pip install promptvault        
```

---

## Quick‑start

```python
from promptvault import PromptVault 

pv = PromptVault()
```

### 1.  Add a template

```python
pv.add({
    "name": "blog-post-generator",
    "prompt": (
        "Write a detailed blog post about {{topic}}, aimed at {{audience}}, "
        "in a {{tone}} tone."
    )
})
```

### 2.  Inspect the raw template (no inputs)

```python
pv.get("blog-post-generator")
```
Output:
```
{
    'name': 'blog-post-generator',
    'prompt': 'Write a detailed blog post about {{topic}}, aimed at {{audience}}, in a {{tone}} tone.',
    'variables': ['topic', 'audience', 'tone']
}
```

### 3.  Fill the template with data

```python
filled = pv.get(
    name="blog-post-generator",
    inputs={
        "topic": "AI in Healthcare",
        "audience": "health‑care professionals",
        "tone": "professional"
    }
)

```
Output:
```
{
    'name': 'blog-post-generator',
    'prompt': 'Write a detailed blog post about AI in Healthcare, aimed at health‑care professionals, in a professional tone.',
    'variables': ['topic', 'audience', 'tone']
}
```




            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "promptvault",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": null,
    "author": "Noah",
    "author_email": "github.gutter797@passmail.net",
    "download_url": "https://files.pythonhosted.org/packages/79/3f/504f1dd4ef18f2b141b0b4d856dc20ba5e9eecacae74b712b92f711edc04/promptvault-0.0.4.tar.gz",
    "platform": null,
    "description": "# PromptVault\n\n**PromptVault** is a tiny, zero\u2011dependency helper class for keeping reusable\nprompt templates in memory and filling them with runtime values.  Templates\nuse double\u2011braces (`{{variable}}`) to mark the parts that should be replaced.\n\n---\n\n## Installation\n\n```shell\npip install promptvault        \n```\n\n---\n\n## Quick\u2011start\n\n```python\nfrom promptvault import PromptVault \n\npv = PromptVault()\n```\n\n### 1.  Add a template\n\n```python\npv.add({\n    \"name\": \"blog-post-generator\",\n    \"prompt\": (\n        \"Write a detailed blog post about {{topic}}, aimed at {{audience}}, \"\n        \"in a {{tone}} tone.\"\n    )\n})\n```\n\n### 2.  Inspect the raw template (no inputs)\n\n```python\npv.get(\"blog-post-generator\")\n```\nOutput:\n```\n{\n    'name': 'blog-post-generator',\n    'prompt': 'Write a detailed blog post about {{topic}}, aimed at {{audience}}, in a {{tone}} tone.',\n    'variables': ['topic', 'audience', 'tone']\n}\n```\n\n### 3.  Fill the template with data\n\n```python\nfilled = pv.get(\n    name=\"blog-post-generator\",\n    inputs={\n        \"topic\": \"AI in Healthcare\",\n        \"audience\": \"health\u2011care professionals\",\n        \"tone\": \"professional\"\n    }\n)\n\n```\nOutput:\n```\n{\n    'name': 'blog-post-generator',\n    'prompt': 'Write a detailed blog post about AI in Healthcare, aimed at health\u2011care professionals, in a professional tone.',\n    'variables': ['topic', 'audience', 'tone']\n}\n```\n\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "PromptVault is a tiny, zero\u2011dependency helper class for keeping reusable prompt templates in memory and filling them with runtime values.",
    "version": "0.0.4",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "32b2ac1b129bd17479416a9536842f777d3a3cf77009a3d228cf2d82353e4280",
                "md5": "1ee395624f283f2d687122fc5d411598",
                "sha256": "f488f7676fedc0c575941d7506f3a2885fc49da4efbc480ce9cf5d3ab53f7961"
            },
            "downloads": -1,
            "filename": "promptvault-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1ee395624f283f2d687122fc5d411598",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 2081,
            "upload_time": "2025-07-18T12:38:41",
            "upload_time_iso_8601": "2025-07-18T12:38:41.675839Z",
            "url": "https://files.pythonhosted.org/packages/32/b2/ac1b129bd17479416a9536842f777d3a3cf77009a3d228cf2d82353e4280/promptvault-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "793f504f1dd4ef18f2b141b0b4d856dc20ba5e9eecacae74b712b92f711edc04",
                "md5": "bb8d6b2e043fd178d9714f6abf7f14ee",
                "sha256": "dc67b8e85cc5ff638fa2dc7c6b8263c6edb6447ea31682a4a323cfe7f9e934c3"
            },
            "downloads": -1,
            "filename": "promptvault-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "bb8d6b2e043fd178d9714f6abf7f14ee",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 1563,
            "upload_time": "2025-07-18T12:38:42",
            "upload_time_iso_8601": "2025-07-18T12:38:42.814557Z",
            "url": "https://files.pythonhosted.org/packages/79/3f/504f1dd4ef18f2b141b0b4d856dc20ba5e9eecacae74b712b92f711edc04/promptvault-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-18 12:38:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "promptvault"
}
        
Elapsed time: 2.86319s