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

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

Built distribution (wheel)

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

Total release size: 138.6 kB

Release files / pytypehintweb-1.2.3.tar.gz

Download URL pytypehintweb-1.2.3.tar.gz
Size 67.1 kB
Tags Source
SHA-256 checksum
How to use checksums
81e68e819aa7b35d66ecb408f684c010e7a6a7ddc16abf68466f9fc7665c4676
BLAKE2b-256 checksum
How to use checksums
6806c5201992016ea3924449705c87c514a90549ddd17e5ce209e9a5f329f7ef
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.3-py3-none-any.whl

Download URL pytypehintweb-1.2.3-py3-none-any.whl
Size 71.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1b313cec2e7b7b91cb7c4da12ed7c81f7a32408952f3ace4b4a83f588312c65
BLAKE2b-256 checksum
How to use checksums
aa8e9be98c3bd4f9ad2cf572ac3de1263c65da40d2fcdc5d8915caf3faaa2282
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

This release

1.2.3 This release

2 release files

1.2.2

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