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.4.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.4.0
File Size Uploaded Provenance Actions
pytypehintweb-1.4.0.tar.gz 68.5 kB With provenance Details for pytypehintweb-1.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 141.5 kB

Release files / pytypehintweb-1.4.0.tar.gz

Download URL pytypehintweb-1.4.0.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b2f4ba4a73769849368fb866b962e9ffbc640b5aae5ef010c7f968ece907e7bd
BLAKE2b-256 checksum
How to use checksums
947e279ea0bd803d454dd6d12da1825077c5f1fa29b495c086885df65844819e
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 13, 2026.

Transparency log

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

Download URL pytypehintweb-1.4.0-py3-none-any.whl
Size 73.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf2c921630d28d78fd59790c2d3af3366a0c94962f6e352da31a07a964fc17dd
BLAKE2b-256 checksum
How to use checksums
8128e6d64b65b8d8a9b722d4195293a24171c8b99898e917cd094609f9818146
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 13, 2026.

Transparency log

Security for pytypehintweb 1.4.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.4.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 13, 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