Skip to main content

Transform any Python function into a web interface automatically

Project description

Func To Web 0.9.3

PyPI version Python Tests License

Type hints → Web UI. Minimal-boilerplate web apps from Python functions.

func-to-web Demo

Quick Start (30 seconds)

pip install func-to-web
from func_to_web import run

def divide(a: float, b: float):
    return a / b

run(divide)

Open http://127.0.0.1:8000You have a working web app!

Demo

Complete Feature Overview

Complete documentation with examples and screenshots for each feature:

Input Types

Output Types

  • Images & Plots: Return PIL Images and Matplotlib figures
  • File Downloads: Return FileResponse for any file type
  • Tables: Return list[dict], list[tuple], Pandas, NumPy, or Polars DataFrames
  • Multiple Outputs: Return tuples/lists combining text, images, tables, and files

Features

  • Authentication: Username/password protection
  • Function Descriptions: Display docstrings in the UI
  • Dark Mode: Automatic theme switching
  • Server Options: Custom host, port, path and more
  • Large Files: Optimized streaming (GB+ files)
  • Progress Bars: Real-time upload/download tracking
  • Error Handling: Beautiful error messages

Full Documentation API Reference

Perfect For

  • Rapid Prototyping - From pure Python function to usable web interface in seconds.
  • Image Processing - Upload, process, and download images with PIL/Pillow.
  • Data Science & Reporting - Instantly publish Pandas/Polars DataFrames and matplotlib plots without frontend code.
  • Secure Internal Apps - Admin panels, dashboards, and team tools protected by built-in authentication.
  • Production Deployments - Docker-friendly, supports Nginx/Traefik reverse proxies, SSL, and high-performance streaming.

Quick Examples

Check the examples/ folder for 20 complete examples (Covers all features)

Requirements

Core:

  • Python 3.10+
  • FastAPI, Uvicorn, Pydantic, Jinja2, python-multipart, itsdangerous

Optional (for extended functionality):

  • Pillow, Matplotlib, Pandas, NumPy, Polars

Development:

  • pytest, mkdocs, mkdocs-material

Run Tests

pytest tests/ -v

Deploy Docs

mkdocs gh-deploy

MIT LicenseMade by Beltrán Offerrall • Contributions welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

func_to_web-0.9.3.tar.gz (60.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

func_to_web-0.9.3-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

Details for the file func_to_web-0.9.3.tar.gz.

File metadata

  • Download URL: func_to_web-0.9.3.tar.gz
  • Upload date:
  • Size: 60.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for func_to_web-0.9.3.tar.gz
Algorithm Hash digest
SHA256 0dc025c5490e19c19cb6992ad99d2873bf8a0f338bb2421adea09b14423b4d61
MD5 cba12aded69eaaa182ca219e49469d9d
BLAKE2b-256 d5df125968100ced317659f58ad98fbc55219a69cc5ae61e05f81df77e2a4c6a

See more details on using hashes here.

File details

Details for the file func_to_web-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: func_to_web-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 70.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for func_to_web-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 90dfe133a45c3ec1e10689e6e0b3f5ea53b1abfc159acde08a1555b7047d2d1e
MD5 2342a7c2a5ea74f77361f412941ceec3
BLAKE2b-256 e2bda0c89c8d1131996b9762b82b746e204f0106da2a3fc99be669d705d768c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page