Prompt engineering framework for humans
Project description
Promplate
</Promplate/> = <template> // prompt
Promplate is a prompting framework focusing on developing experience. However, it can also be a super-convenient SDK for simple LLM calls. Promplate progressively enhance your prompting workflow. And it values flexibility as well as perfect conventions. Try online
Installation
pip install promplate
Promplate supports both CPython and PyPy, from 3.8 to 3.13. It even supports running in browsers through wasm implementations of python.
Documentation
You can visit our official docs site at docs.py.promplate.dev.
IDE Support 🌹
Promplate is fully typed, which means static type checker will find bugs correctly (if you use pyright for type checking).
We recommend using VS Code as your IDE when coding with promplate, because it natively uses pyright.
The language design of promplate is similar to Jinja2. So you can use the .j2 file extension for template files for syntax highlight.
Development
- use
poetryto manage dependencies. - use
isortto sort import statements. - use
blackto format code. - use
pyrightto check type annotations.
Development should be done on dev branch, using >=3.10 language features. The master branch is used for py3.8 compatible releases.
Promplate is well tested with pytest. GitHub Actions are used to run tests and linting. And there are test results continually generated on Vercel and Netlify. There is a coverage report too.
Future Features (or TODOs?)
- more documentation
- javascript implementation
- improved error handling
- display compiled code when error occurs through
linecacheortempfile
- display compiled code when error occurs through
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
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 promplate-0.3.5.6.tar.gz.
File metadata
- Download URL: promplate-0.3.5.6.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abdc574d32240fcb343d52322a053a3eafd6c912654e7bbf186441b591bf9a00
|
|
| MD5 |
514431b9cee08e396e42c41f592b5df7
|
|
| BLAKE2b-256 |
85651cb1ced2f2521588a6022bcc6b81c09cd19a45d964c5ea5017bd57e9b4a0
|
Provenance
The following attestation bundles were made for promplate-0.3.5.6.tar.gz:
Publisher:
publish.yml on promplate/core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promplate-0.3.5.6.tar.gz -
Subject digest:
abdc574d32240fcb343d52322a053a3eafd6c912654e7bbf186441b591bf9a00 - Sigstore transparency entry: 740741569
- Sigstore integration time:
-
Permalink:
promplate/core@0800f27d97a525ed3479f73e88cb8582aae6fd5c -
Branch / Tag:
refs/heads/dev - Owner: https://github.com/promplate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0800f27d97a525ed3479f73e88cb8582aae6fd5c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file promplate-0.3.5.6-py3-none-any.whl.
File metadata
- Download URL: promplate-0.3.5.6-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5d6562afcf3e02b22101f68684798c232741bc17241b517cefe60ee8a1a7450
|
|
| MD5 |
06d7e8778475dbbea462f0d5848c3593
|
|
| BLAKE2b-256 |
cf7207fa4351d359fb44e96d4f21d1f90a923ea606033d5f9862da0a2f3718c4
|
Provenance
The following attestation bundles were made for promplate-0.3.5.6-py3-none-any.whl:
Publisher:
publish.yml on promplate/core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
promplate-0.3.5.6-py3-none-any.whl -
Subject digest:
e5d6562afcf3e02b22101f68684798c232741bc17241b517cefe60ee8a1a7450 - Sigstore transparency entry: 740741576
- Sigstore integration time:
-
Permalink:
promplate/core@0800f27d97a525ed3479f73e88cb8582aae6fd5c -
Branch / Tag:
refs/heads/dev - Owner: https://github.com/promplate
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0800f27d97a525ed3479f73e88cb8582aae6fd5c -
Trigger Event:
workflow_dispatch
-
Statement type: