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

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.2.2
File Size Uploaded
pytypehintweb-1.2.2.tar.gz 67.1 kB Details

Built distribution (wheel)

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

Total release size: 138.6 kB

Release files / pytypehintweb-1.2.2.tar.gz

Download URL pytypehintweb-1.2.2.tar.gz
Size 67.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd45d285dee612405887cf7ab6d7a27a7665ca5751b9ee2455d6e2e1db1ec3d2
BLAKE2b-256 checksum
How to use checksums
e561d359106ce8785d870ad515b72f6f83a1c48ba4d8f87033484036e97ea37a
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 Sep 29, 2026.

Transparency log

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

Download URL pytypehintweb-1.2.2-py3-none-any.whl
Size 71.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
389e197a653d8e5638f881254a98c7aef5b5c73d7025b0b846365528a6030e0d
BLAKE2b-256 checksum
How to use checksums
bb6d24dd539bf5d019d3785f6d9f4d68fe03b84d1f089f483332f492837c1199
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 Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

1.2.3

2 release files

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

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