This release is a pre-release and may not be stable for production use.
prism-corpus
PRISM (Procedural Research Inventory for Synthetic Messaging) is an offline-first Python library and CLI for generating reproducible, defanged synthetic messaging corpora and matched benign twins across SMS, email, and social direct messages.
Status: Early development (
v0.1.0a1skeleton).
Architecture
PRISM separates message structure, procedural slot synthesis, and optional surface paraphrasing into three layers:
- Layer 1 — Structural Blueprints (
prism_corpus.schemas,prism_corpus.blueprints): Typed YAML/JSON schemas defining message slots, multi-turn conversation state machines, and ground-truth manipulation indicator labels. - Layer 2 — Procedural Slot & Metadata Synthesiser (
prism_corpus.synth,prism_corpus.locales,prism_corpus.mutators): Seeded, 100% deterministic offline synthesis of locale-aware metadata, email authentication headers (SPF/DKIM/DMARC), controlled perturbation mutators, and 1:1 matched benign twins (pair_id). - Layer 3 — Optional BYOM Surface Realiser (
prism_corpus.realiser): Optional OpenAI-compatible / local LLM paraphrasing constrained by Pydantic validation, artefact preservation, and corpus diversity checks.
Research Safety & Defanging Policy
PRISM is strictly designed for defensive machine-learning evaluation and human-factors security research:
- All generated URLs and email domains are restricted to IANA-reserved non-routable namespaces under RFC 2606 (
.test,.example,.invalid,example.com,example.org,example.net). - PRISM includes no network delivery, message transport, or live-site cloning functionality.
Development Setup
pip install -e ".[dev]"
pytest
prism --help
Licence
Released under the MIT License.
Metadata
Release files for prism-corpus 0.1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prism_corpus-0.1.0a1.tar.gz | 6.9 kB | With provenance | Details for prism_corpus-0.1.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prism_corpus-0.1.0a1-py3-none-any.whl | Python 3 | none | any | Details for prism_corpus-0.1.0a1-py3-none-any.whl |
Total release size: 13.9 kB
Release files / prism_corpus-0.1.0a1.tar.gz
| Download URL | prism_corpus-0.1.0a1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
689407b578c88f3a32b11ae9c46faa1a2efdedcef508e463221dcf578076ad4f
|
|
BLAKE2b-256 checksum How to use checksums |
2e5fb1ae22f190f3f948d9f5e52dc787565cb01fbc7f3cab32cb3ccc200c6f5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logRelease files / prism_corpus-0.1.0a1-py3-none-any.whl
| Download URL | prism_corpus-0.1.0a1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47f21228b3c0e12a578991851eda8662bf84f45f280e641ab52b77be7f2373a7
|
|
BLAKE2b-256 checksum How to use checksums |
dde51e439f317544dc4f3f8cf35866d8287942a67edc472e8d3a18e6f3934358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logSecurity for prism-corpus 0.1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for prism_corpus-0.1.0a1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.