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

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.7.6
File Size Uploaded
func_to_web-2.7.6.tar.gz 49.9 kB Details

Built distribution (wheel)

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

Total release size: 111.8 kB

Release files / func_to_web-2.7.6.tar.gz

Download URL func_to_web-2.7.6.tar.gz
Size 49.9 kB
Tags Source
SHA-256 checksum
How to use checksums
95e8cf9e0abc710eeb12679e323fe15df93766f74813bc9bcf19882f5e77d451
BLAKE2b-256 checksum
How to use checksums
98e190dd2ad83ecca14a81888e9994831080ad1dabe096edea6c236520414cb0
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 / func_to_web-2.7.6-py3-none-any.whl

Download URL func_to_web-2.7.6-py3-none-any.whl
Size 61.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dfac975ec247bac889f1bca92b46634cb31a0f6c056b5dabe1892c149402666
BLAKE2b-256 checksum
How to use checksums
2700c5507c7826202eebfee3b700ec60ba7cd8375012da427110a8708e59eb6e
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

2.7.6 This release

2 release files

2.7.5

2 release files

2.7.4

2 release files

2.7.3

2 release files

2.7.2

2 release files

2.7.1

2 release files

2.7.0

2 release files

2.6.2

2 release files

2.6.1

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.3.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.6.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.9.13

2 release files

0.9.12

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.0

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

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