Skip to main content

A web command user interface

Project description


A Python package for creating Webcui apps. A Webcui app is to the web what a Command Line Interface app is for the command line. The goal of Webcui is to make it as easy as possible for Python developers to share their Python app with the world.

Webcui idea:

  • A web page with a HTML form is generated from a basic Python function.
  • Function parameters become input fields.
  • The function is executed when the user submit the form.
  • The result is displayed on the web page.


Install Python 3.6 or later and then webcui using pip.

$ pip install webcui


Here's an example of a simple Webcui app:

import webcui

def cmd(number_of_spam: int, side: str = "eggs"):
   """Calculate the price of a breakfast order."""
   spams = number_of_spam * ["spam"]
   dish = f"{', '.join(spams)} and {side}"
   price = number_of_spam * 1.5 + 2
   return f"The price of an order of {dish} is €{price:.2f}"

if __name__ == '__main__':

To run the Webcui app on your own computer run:

$ python --run

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

webcui-0.1.2.tar.gz (2.3 kB view hashes)

Uploaded source

Built Distribution

webcui-0.1.2-py3-none-any.whl (15.3 kB view hashes)

Uploaded py3

Supported by

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