Metadata-Version: 2.1
Name: front
Version: 0.0.4
Summary: Getting from python objects to UIs exposing them
Home-page: https://github.com/i2mint/front
Author: OtoSense
License: apache-2.0
Platform: any
Description-Content-Type: text/markdown
Requires-Dist: streamlit


# front
Getting from python objects to UIs exposing them


To install:	```pip install front```


# Example

```python
import os


def foo(a: int = 0, b: int = 0, c=0):
    """This is foo. It computes something"""
    return (a * b) + c


def bar(x, greeting='hello'):
    """bar greets its input"""
    return f'{greeting} {x}'


def confuser(a: int = 0, x: float = 3.14):
    return (a ** 2) * x


funcs = [foo, bar, confuser]

if __name__ == '__main__':
    from front.base import dispatch_funcs

    print('file: {}'.format(os.path.realpath(__file__)))

    app = dispatch_funcs(funcs)

    app()

    # ... and you get a browser based app that exposes foo, bar, and confuser

```

