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.

# pip install func-to-web
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.10.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.10.0
File Size Uploaded Provenance Actions
func_to_web-2.10.0.tar.gz 51.1 kB With provenance Details for func_to_web-2.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 114.1 kB

Release files / func_to_web-2.10.0.tar.gz

Download URL func_to_web-2.10.0.tar.gz
Size 51.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b3d318f2f54a71bb467bb85b7beaa51365a7f50a3629088b61fafb1c031b8675
BLAKE2b-256 checksum
How to use checksums
dd65d9bc0d0e8cbfc62051c2a9ff106a8d1729a058e0eb6f5073eeeae86ddd93
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 / func_to_web-2.10.0-py3-none-any.whl

Download URL func_to_web-2.10.0-py3-none-any.whl
Size 62.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99c50bdbab32f05af8ac78b55d30a3386c483f8053306385fa001c55e5c0da3c
BLAKE2b-256 checksum
How to use checksums
7fa1a3ad2e5ba40368800e36270e39c226d62290cda33be31f270ac5b1145fa4
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 func-to-web 2.10.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.10.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.

Release history Release notifications | RSS feed

This release

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