A lightweight package for managing and versioning LLM prompt templates
Project description
PromptStore
A lightweight Python package for managing and versioning LLM prompt templates.
Features
- Simple JSON-based storage
- Template versioning
- Tag-based organization
- Jinja2 template syntax
- Package integration utilities
Installation
pip install promptstore
Usage
from promptstore import PromptStore
# Create a store
store = PromptStore("./prompts")
# Add a prompt template
prompt = store.add(
content="Write a {{language}} function that {{task}}",
description="Code generation prompt",
tags=["coding", "generation"]
)
# Use the prompt
filled = prompt.fill({
"language": "Python",
"task": "sorts a list in reverse order"
})
Documentation
Full documentation is available at lamalab-org.github.io/promptstore.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
promptstore-0.1.0.tar.gz
(8.2 kB
view details)
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 promptstore-0.1.0.tar.gz.
File metadata
- Download URL: promptstore-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7b40f234c5069197c57f12429c13a5c9610e4fc76fb7468d59f59ee751d92d2
|
|
| MD5 |
3b8b75df155cf1142c59bcba6ae930c9
|
|
| BLAKE2b-256 |
93e6cd9b90bac150da64754f20445a3802259332636377d23896639e37a4f0b6
|
File details
Details for the file promptstore-0.1.0-py3-none-any.whl.
File metadata
- Download URL: promptstore-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dce7d0d010a17900076864a4ca8a1e5c126ee851b06413b8855ad8cd125d2406
|
|
| MD5 |
581e1cfcfafe5b4933bc4fc0e3e49fa7
|
|
| BLAKE2b-256 |
6916b521745c3e7d645b3f5e31bceb9ff41d817af1f72fc5be8d8972f3fe45b7
|