Python distribution of Prompting Press — a thin wrapper around the Rust core via PyO3.
Project description
prompting-press
A typed, variant-aware prompt-template library. It turns typed inputs and a template into rendered text plus content-addressed provenance — nothing else (no I/O, no LLM calls, no request assembly). Rust, Python, and TypeScript all bind one compiled Rust engine, so rendered output is byte-identical across every language.
This is the Python distribution: a Pydantic-friendly
PyO3 binding to that engine. Import name prompting_press; distribution name
prompting-press.
Install
pip install prompting-press
uv add prompting-press # in a uv project
uv pip install prompting-press # uv's pip interface
Quick start
from prompting_press import Prompt
from pydantic import BaseModel
class Vars(BaseModel):
name: str
greet = Prompt.from_yaml("""
name: greet
role: user
body: "Hi {{ name }}"
variables:
name: { type: string, trusted: true }
""")
result = greet.render(Vars, data={"name": "Ada"})
result.text # "Hi Ada"
result.template_hash # 64-char SHA-256 of the template source
result.render_hash # 64-char SHA-256 of the rendered output
Documentation
Full docs — getting started, API reference, template features, guides, and the CI agreement lint — are at https://prompting-press.github.io/.
License
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 Distributions
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 prompting_press-0.2.0.tar.gz.
File metadata
- Download URL: prompting_press-0.2.0.tar.gz
- Upload date:
- Size: 171.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6169b118c913d78dbc3522f6eac0b02ac0b72c55232a2dc5035e6d74881787c
|
|
| MD5 |
005b8cd40c1be22e0343aad933a6c551
|
|
| BLAKE2b-256 |
786600166fc79f86c634cfa0cc6023fcb9df63e66261ae9164000f58da8cca38
|
Provenance
The following attestation bundles were made for prompting_press-0.2.0.tar.gz:
Publisher:
release.yml on prompting-press/prompting-press
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompting_press-0.2.0.tar.gz -
Subject digest:
a6169b118c913d78dbc3522f6eac0b02ac0b72c55232a2dc5035e6d74881787c - Sigstore transparency entry: 2044472984
- Sigstore integration time:
-
Permalink:
prompting-press/prompting-press@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/prompting-press
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file prompting_press-0.2.0-cp312-abi3-win_amd64.whl.
File metadata
- Download URL: prompting_press-0.2.0-cp312-abi3-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3415cfad97cdf2ad6204deed40232823024f16a480afe3fc3fa39e1d39ba1e5b
|
|
| MD5 |
75ac83d6c14e945232a80e0fc2912429
|
|
| BLAKE2b-256 |
75e3fe5ed7f716f62775fe43b695d16d29f9d313146b3692fd1b832b3b86f2f2
|
Provenance
The following attestation bundles were made for prompting_press-0.2.0-cp312-abi3-win_amd64.whl:
Publisher:
release.yml on prompting-press/prompting-press
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompting_press-0.2.0-cp312-abi3-win_amd64.whl -
Subject digest:
3415cfad97cdf2ad6204deed40232823024f16a480afe3fc3fa39e1d39ba1e5b - Sigstore transparency entry: 2044473055
- Sigstore integration time:
-
Permalink:
prompting-press/prompting-press@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/prompting-press
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file prompting_press-0.2.0-cp312-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: prompting_press-0.2.0-cp312-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.12+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4a1ff75a4d77f889ac31f4f9369328c8f2b67634aad532550eb7f9fd063dc73
|
|
| MD5 |
0e51c979f85095c46d8dd224df968169
|
|
| BLAKE2b-256 |
d8dce1455423612c74a598eb873314e29ba6235b72b9419754608e73107dd2e1
|
Provenance
The following attestation bundles were made for prompting_press-0.2.0-cp312-abi3-musllinux_1_2_x86_64.whl:
Publisher:
release.yml on prompting-press/prompting-press
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompting_press-0.2.0-cp312-abi3-musllinux_1_2_x86_64.whl -
Subject digest:
c4a1ff75a4d77f889ac31f4f9369328c8f2b67634aad532550eb7f9fd063dc73 - Sigstore transparency entry: 2044473023
- Sigstore integration time:
-
Permalink:
prompting-press/prompting-press@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/prompting-press
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file prompting_press-0.2.0-cp312-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: prompting_press-0.2.0-cp312-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.12+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
febc05cfcb27cb7f4a10ee55c486442e703892fe7ce955b217e4c589540297ba
|
|
| MD5 |
cbaef2cc1610807b77130c49b741d56c
|
|
| BLAKE2b-256 |
eb967da36e1c5cdc481e8f511c8dcffe158c196c955b953b2b68b3545c93c5e2
|
Provenance
The following attestation bundles were made for prompting_press-0.2.0-cp312-abi3-musllinux_1_2_aarch64.whl:
Publisher:
release.yml on prompting-press/prompting-press
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompting_press-0.2.0-cp312-abi3-musllinux_1_2_aarch64.whl -
Subject digest:
febc05cfcb27cb7f4a10ee55c486442e703892fe7ce955b217e4c589540297ba - Sigstore transparency entry: 2044472999
- Sigstore integration time:
-
Permalink:
prompting-press/prompting-press@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/prompting-press
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file prompting_press-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: prompting_press-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d5d5f2bbbf6e46424c5196d449f9980b89e5402a1c8354f5effa4abf947a3bc
|
|
| MD5 |
c366a0bcda5be6a81810d16ae64be4ba
|
|
| BLAKE2b-256 |
43ed6394123b95955221f86804840fc9c497b4ee8b728449c22943991ef02e80
|
Provenance
The following attestation bundles were made for prompting_press-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl:
Publisher:
release.yml on prompting-press/prompting-press
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompting_press-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
6d5d5f2bbbf6e46424c5196d449f9980b89e5402a1c8354f5effa4abf947a3bc - Sigstore transparency entry: 2044473074
- Sigstore integration time:
-
Permalink:
prompting-press/prompting-press@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/prompting-press
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file prompting_press-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: prompting_press-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7deb62eb63d123c0af3e28cd9401609a8c544b97d5095c112efacaa33d6a096d
|
|
| MD5 |
1487938cf41f5c615829b05cf4e82faa
|
|
| BLAKE2b-256 |
b2b64aea0784968e00b13a92e812535408413a0ff9e0e8ee3d8e718788b3b7f6
|
Provenance
The following attestation bundles were made for prompting_press-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl:
Publisher:
release.yml on prompting-press/prompting-press
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompting_press-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl -
Subject digest:
7deb62eb63d123c0af3e28cd9401609a8c544b97d5095c112efacaa33d6a096d - Sigstore transparency entry: 2044473124
- Sigstore integration time:
-
Permalink:
prompting-press/prompting-press@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/prompting-press
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file prompting_press-0.2.0-cp312-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: prompting_press-0.2.0-cp312-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.12+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25ca96c8c513a34747e3e145597fc146d7d1aad1fe87e5555796f1705287a0bc
|
|
| MD5 |
5a3c8fd73f9bd3b3ac872c8ce62a069c
|
|
| BLAKE2b-256 |
ae48826cbd245a87c5701c54c1fcc50c250ce3155503c0c8dc3a3a12c6843a9e
|
Provenance
The following attestation bundles were made for prompting_press-0.2.0-cp312-abi3-macosx_11_0_arm64.whl:
Publisher:
release.yml on prompting-press/prompting-press
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
prompting_press-0.2.0-cp312-abi3-macosx_11_0_arm64.whl -
Subject digest:
25ca96c8c513a34747e3e145597fc146d7d1aad1fe87e5555796f1705287a0bc - Sigstore transparency entry: 2044473095
- Sigstore integration time:
-
Permalink:
prompting-press/prompting-press@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/prompting-press
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ee97be493585778f63390a4cb180fff6cc43cfe5 -
Trigger Event:
workflow_dispatch
-
Statement type: