Skip to main content

protoform-engine

Server-side ProtoForm rule engine. The same form schema your frontend renders is re-evaluated on the server (visibility, conditional logic, validation) with semantics identical to the TypeScript engine, verified by a shared conformance suite.

The core engine is pure Python with zero dependencies. Django and DRF are optional integration layers.

pip install protoform-engine          # engine only, works anywhere (FastAPI, Flask, workers)
pip install protoform-engine[django]  # + model mapping helpers
pip install protoform-engine[drf]     # + ProtoFormView (GET schema / PATCH step / POST submit)
from protoform import prepare_form, evaluate_rules, validate_step

prepared = prepare_form(schema)                      # resolve templates, build maps
result = evaluate_rules(prepared, values)            # derived state: visible/required/valid/messages
step = validate_step(prepared, values, "step_1")     # {"valid": bool, "errors": {...}}

See the Django engine reference and the protocol specification.

MIT licensed.

Metadata

Release files for protoform-engine 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for protoform-engine 0.9.0
File Size Uploaded Provenance
protoform_engine-0.9.0.tar.gz 35.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for protoform-engine 0.9.0
File Interpreter ABI Platform
protoform_engine-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.0 kB

Release files / protoform_engine-0.9.0.tar.gz

Download URL protoform_engine-0.9.0.tar.gz
Size 35.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f93e01827fadd5a640540be76030abd60be1b00b7e754dbc65de61a766a31c1f
BLAKE2b-256 checksum
How to use checksums
a91096df5fa4d8b26da8f736f86dc366312c501fb89f07ea73c8f2b70232ff64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Release files / protoform_engine-0.9.0-py3-none-any.whl

Download URL protoform_engine-0.9.0-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ffdf0706cc5e330fa91365a1db9f09f9ba9b2402709585f985e9472369b793e
BLAKE2b-256 checksum
How to use checksums
a1f5f8652984597fbc8b09e005deb3c5bdd8d59bf5b1d7823e9e83efdadef96e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 21, 2026.

Transparency log

Security for protoform-engine 0.9.0

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for protoform_engine-0.9.0.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 Aug 21, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page