A Python package for managing prompts using Jinja2 templates
Project description
Promptly
Promptly is a simple Python library for managing AI prompts.
Build
Installation (WIP)
pip install promptly
Quick Start
Create a prompt
---
version: 1.0.0
author: Owain Lewis
description: Example prompt to demonstrate the use of the Promptly library
model: gpt-4o
---
You are a helpful assistant.
The time is {{ time }}.
Render it using Promptly
from promptly_ai import render
from datetime import datetime
system_prompt = render("examples/prompts/hello.j2", time=datetime.now().isoformat())
print(system_prompt)
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
promptly_ai-0.1.0.tar.gz
(4.1 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 promptly_ai-0.1.0.tar.gz.
File metadata
- Download URL: promptly_ai-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77f50b3a2005aea54bc16d78cb83766f89655c6c197f3169cc9e9e04c3c9afe7
|
|
| MD5 |
e4e607985f8af2333bf45ee16f4d6683
|
|
| BLAKE2b-256 |
2972282ca43d3922dc7b936227a78eeebe7cb0ca7de5db89d46580932a8818a2
|
File details
Details for the file promptly_ai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: promptly_ai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffab10ee80229e5c43326a4c209a45766df7c47d54342593dd3a79e45837eab7
|
|
| MD5 |
ce22a67d62e46e46cc1718b2f19db29c
|
|
| BLAKE2b-256 |
d14cf0fa4b150a1df835cd192a16a36e4b405c96f3fa29b9df571c0418c8f4c3
|