All Projects → touch-callable → touch-callable

touch-callable / touch-callable

Licence: MIT License
Automatically generate a Web UI for Python function using type annotations.

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to touch-callable

is-callable
Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
Stars: ✭ 38 (+5.56%)
Mutual labels:  function, callable
pandas-stubs
Pandas type stubs. Helps you type-check your code.
Stars: ✭ 84 (+133.33%)
Mutual labels:  type-annotations
use
Easily add plugin support to your node.js application.
Stars: ✭ 25 (-30.56%)
Mutual labels:  function
vanilla-place-picker
Simple(vanilla) yet 'Do it all' place picker for your place picking needs in Android
Stars: ✭ 113 (+213.89%)
Mutual labels:  easy-to-use
obj-filter
JavaScript Object Filter. Deep filtering key/content recursively. Support wildcard, nested, and filter function in template.
Stars: ✭ 13 (-63.89%)
Mutual labels:  function
AlertBar
An easy alert on status bar
Stars: ✭ 64 (+77.78%)
Mutual labels:  easy-to-use
advpl-MsgTimer
Função AdvPL de mensagens (Alert, Info, Stop, Success, YesNo e NoYes) com Timer para fechamento automático
Stars: ✭ 17 (-52.78%)
Mutual labels:  function
EasyRetro
An Easy to use retrofit based network/api call extention for android
Stars: ✭ 16 (-55.56%)
Mutual labels:  easy-to-use
Chocolater
Chocolater is simply a PowerShell code generator and it was conceived in order to facilitate the selection and installation of your favorite applications in one go.
Stars: ✭ 26 (-27.78%)
Mutual labels:  easy-to-use
is-arrow-function
Determine if a function is an ES6 arrow function or not.
Stars: ✭ 20 (-44.44%)
Mutual labels:  function
teks
Easily get custom go template based outputs to your command-line tool. Like in docker/kubernetes
Stars: ✭ 41 (+13.89%)
Mutual labels:  easy-to-use
BPDownloadsGUI
A easy to use Downloader UI
Stars: ✭ 26 (-27.78%)
Mutual labels:  easy-to-use
extract-css
Extract all CSS from a webpage, packaged as a Now V2 Lambda
Stars: ✭ 23 (-36.11%)
Mutual labels:  function
SuperCodable
Codable, but with Super power made custom Codable behavior easy.
Stars: ✭ 23 (-36.11%)
Mutual labels:  easy-to-use
perseverance
Make your functions 💪 resilient and 🚥 fail-fast to 💩 failures or ⌚ delays
Stars: ✭ 12 (-66.67%)
Mutual labels:  function
utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-61.11%)
Mutual labels:  function
purescript-ffi-utils
A utility library for the purescript foreign function interface
Stars: ✭ 22 (-38.89%)
Mutual labels:  function
soloalert
A customizable lightweight Alert Library with Material UI and awesome features.
Stars: ✭ 18 (-50%)
Mutual labels:  easy-to-use
parse-function
(!! moved to tunnckoCore/opensource multi-package repository !!) 🔱 Parse a function into an object using espree, acorn or babylon parsers. Extensible through Smart Plugins.
Stars: ✭ 37 (+2.78%)
Mutual labels:  function
pillow-cli
A CLI tool for booting modernized AngularJS projects.
Stars: ✭ 12 (-66.67%)
Mutual labels:  easy-to-use

Touch-Callable

The web framework for less serious application.

Automatically generate a Web UI for Python function using type annotations.

English | 简体中文

Support platforms

  • macOS
  • Ubuntu
  • Windows

Installation

Only support Python 3.6!

pip install -U touch-callable

Supported parameter value types

  • str
  • int
  • float
  • bool
  • datetime.datetime
  • datetime.date
  • datetime.time
  • enum.Enum
  • io.BytesIO
  • typing.BinaryIO

Supported return value types

  • All objects that can be json.dumps
  • open('filename.xxx', 'rb'), return values' annotation should be io.BufferedReader

CommandLine args

--host

Default is 127.0.0.1, you can only visit it on your computer.

If you want to listen all networks:

$ touch-callable example.py --host 0.0.0.0

--port

Default is 6789.

--debug enable Flask debug feature(not recommend)

Default is False, if you want to enable it

$ touch-callable example.py --debug True

Screenshot

callables

callables

Examples

All support types

# example.py
from datetime import datetime, date, time
from enum import Enum
import io
import typing


class Languages(Enum):
    Python = 'Python'
    PHP = 'PHP'
    Java = 'Java'


def demo(int_: int, str_: str, float_: float, bool_: bool,
         enum_: Languages,
         datetime_: datetime = datetime.now(),
         date_: date = date.today(),
         time_: time = time(1, 2, 3),
         bytes_io: io.BytesIO = None,
         binary_io: typing.BinaryIO = None):
    pass

$ touch-callable example.py

demo_with_reponsive_ui

Return file

import io

def return_file() -> io.BufferedReader:
  return open('filename', 'rb')

Stargazers

Stargazers over time

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].