Skip to main content

pytypehintweb

Python schemas in. Portable form plans and browser widgets out.

pytypehintweb turns a pytypehint schema into a self-contained, JSON-serializable form plan, and renders that plan in the browser with plain JavaScript widgets: no framework, no build step, no npm. The browser side reads plans, not Python, so hand-written plans and plans from another backend render the same way.

It is the rendering layer only. Routing, serving, submission and running the function stay with the host application, or with func-to-web, which builds the whole request cycle on top of it.

from typing import Annotated

from pytypehint import Label, Min
from pytypehintweb import plan_of


def create_user(
    username: Annotated[str, Min(3), Label("Username")],
    age: Annotated[int, Min(0), Label("Age")],
) -> None:
    pass


plan = plan_of(create_user)  # a JSON-ready dict; compileForm(plan) renders it

The full documentation is at https://offerrall.github.io/pytypehintweb/.

Documentation

  • Overview: what the library does, where it stops, its features and its stability promise.
  • Getting started: one complete form, from a Python function to the built result.
  • Plan contract: the plan format, every property, default and invariant.
  • Python API: plan_of(), decode(), WebConfig and how each annotation maps to a node.
  • JavaScript API: compileForm(), widgets, reading, accessibility, styling and themes.
  • Architecture: the layers and which layer owns each rule.
  • Limitations: what a plan cannot represent and why.

Maintaining

  • Testing: how to run the suites, what they guarantee, and CI and release.

Metadata

Release files for pytypehintweb 1.5.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 pytypehintweb 1.5.0
File Size Uploaded Provenance Actions
pytypehintweb-1.5.0.tar.gz 68.8 kB With provenance Details for pytypehintweb-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytypehintweb 1.5.0
File Interpreter ABI Platform Actions
pytypehintweb-1.5.0-py3-none-any.whl Python 3 none any Details for pytypehintweb-1.5.0-py3-none-any.whl

Total release size: 142.0 kB

Release files / pytypehintweb-1.5.0.tar.gz

Download URL pytypehintweb-1.5.0.tar.gz
Size 68.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d16044e398c8ae9755de1293d371bbff2b7b10b5eaa3b85e651f553f975d33b5
BLAKE2b-256 checksum
How to use checksums
e22b73631fe1fcef01fc6f4bd24f7071a37d067ff49d38b7d78985b35fac9239
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 Nov 25, 2026.

Transparency log

Release files / pytypehintweb-1.5.0-py3-none-any.whl

Download URL pytypehintweb-1.5.0-py3-none-any.whl
Size 73.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fcf770621de69b381c14946248638612a0d51600a35546f64c40f6f945160f49
BLAKE2b-256 checksum
How to use checksums
8381c29d10840c6a135ae53b3e6251c9223d73b7f88f70a240ed043451292901
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 Nov 25, 2026.

Transparency log

Security for pytypehintweb 1.5.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytypehintweb-1.5.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 Nov 25, 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.

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