Skip to main content

FuncToWeb

Turn typed Python functions into web interfaces.

Write a normal Python function with type hints. FuncToWeb turns it into a ready-to-use web form, validates its input and runs it over HTTP. No models, no duplicated schemas, no hand-written forms.

The same function is also an HTTP endpoint, a contract published at /doc for people and agents, an application you mount inside FastAPI, and a page your own frontend opens in a modal.

from func_to_web import run

def divide(a: float, b: float) -> float:
    return a / b  # Any exception becomes a clean error in the page and the API

run(divide)  # http://127.0.0.1:8000

The divide form with its result

The full documentation is at https://offerrall.github.io/func-to-web/.

Documentation

  • Overview: one function as a form, an API, a contract and a modal; how it works.
  • Getting started: run(), several functions, FastAPI, the options and the examples.
  • Types and validation: what a parameter can be, and its constraints.
  • Files: file parameters, uploads and how long files are kept.
  • Outputs: text, tables, images and downloads.
  • Prefill and OpenForm: forms that open filled in, and functions that open other forms.
  • HTTP API: /invoke, streaming and /doc.
  • sdk.js: calling a space and opening its forms from your own frontend.
  • Security and limits: what FuncToWeb guarantees, and what is up to you.

Metadata

Release files for func-to-web 2.8.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 func-to-web 2.8.0
File Size Uploaded Provenance Actions
func_to_web-2.8.0.tar.gz 50.3 kB With provenance Details for func_to_web-2.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for func-to-web 2.8.0
File Interpreter ABI Platform Actions
func_to_web-2.8.0-py3-none-any.whl Python 3 none any Details for func_to_web-2.8.0-py3-none-any.whl

Total release size: 112.5 kB

Release files / func_to_web-2.8.0.tar.gz

Download URL func_to_web-2.8.0.tar.gz
Size 50.3 kB
Tags Source
SHA-256 checksum
How to use checksums
817b169f8313202d2fa95375f014183dcabb747ea8d156cad98bc78cdaf248eb
BLAKE2b-256 checksum
How to use checksums
d7ac13856ce71842e7506712174432291d02082dde6df5248f3201eaf601e4ec
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 Oct 31, 2026.

Transparency log

Release files / func_to_web-2.8.0-py3-none-any.whl

Download URL func_to_web-2.8.0-py3-none-any.whl
Size 62.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cce25654ffafced5d8876bdb0b543ab8311d38bc713f810defa9c7f29b93e4c6
BLAKE2b-256 checksum
How to use checksums
e0dbbd40a52eacfaa6ef19a700125c0f9af9deb91e7532fbdf3c0e36b7831b69
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 Oct 31, 2026.

Transparency log

Security for func-to-web 2.8.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 func_to_web-2.8.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 Oct 31, 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

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