PyWebIO v1.5.2 DocumentationTornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.5.2 4 Chapter 1. Features CHAPTER input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) accepts the entire form data as parameter: def check_form(data): # return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: return0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.0 DocumentationTornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.5.0 4 Chapter 1. Features CHAPTER input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) accepts the entire form data as parameter: def check_form(data): # return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: return0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.1 DocumentationTornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.5.1 4 Chapter 1. Features CHAPTER input data as its value: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) accepts the entire form data as parameter: def check_form(data): # return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: return0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.1 DocumentationDjango, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data visualization with third-party libraries Installation Stable version: pip3 install -U pywebio start_server() Integration with web framework Coroutine-based session Libraries support Build stand-alone App Data visualization Cookbook Release notes What’s new in PyWebIO 1.5 What’s new in PyWebIO 1.4 What’s as parameter, and returns a dictionary with the name of the single input as its key and the input data as its value: return 'Too old!!' age = input("How old are you?", type=NUMBER, validate=check_age)0 码力 | 144 页 | 7.46 MB | 1 年前3
PyWebIO v1.5.2 DocumentationDjango, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data visualization with third-party libraries Installation Stable version: pip3 install -U pywebio start_server() Integration with web framework Coroutine-based session Libraries support Build stand-alone App Data visualization Cookbook Release notes What’s new in PyWebIO 1.5 What’s new in PyWebIO 1.4 What’s as parameter, and returns a dictionary with the name of the single input as its key and the input data as its value: return 'Too old!!' age = input("How old are you?", type=NUMBER, validate=check_age)0 码力 | 144 页 | 7.46 MB | 1 年前3
PyWebIO v1.5.0 DocumentationDjango, Tornado, aiohttp and FastAPI(Starlette) framework Support for asyncio and coroutine Support data visualization with third-party libraries Installation Stable version: pip3 install -U pywebio start_server() Integration with web framework Coroutine-based session Libraries support Build stand-alone App Data visualization Cookbook Release notes What’s new in PyWebIO 1.5 What’s new in PyWebIO 1.4 What’s as parameter, and returns a dictionary with the name of the single input as its key and the input data as its value: return 'Too old!!' age = input("How old are you?", type=NUMBER, validate=check_age)0 码力 | 144 页 | 7.46 MB | 1 年前3
PyWebIO v1.5.2 使用手册作为键、以输入数据为值的字典: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) 输入组中同样支持使用 参数设置校验函数,其接受整个表单数据作为参数: def check_form(data): # return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: return ('age', 'Age can 应用打包到一个单独的可执行文件里面,从而使用户可以在没有安装 python 解释器 的情况下运行应用,你可以参考Build stand-alone App 如果你想在 PyWebIO 应用中进行一些数据可视化,可以参考Data visualization 4.1.5 Last but not least 以上基本就是 PyWebIO 的全部功能了,你可以继续阅读接下来的文档,或者立即开始 PyWebIO 应用的编写0 码力 | 125 页 | 1.72 MB | 1 年前3
PyWebIO v1.5.0 使用手册作为键、以输入数据为值的字典: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) 输入组中同样支持使用 参数设置校验函数,其接受整个表单数据作为参数: def check_form(data): # return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: return ('age', 'Age can 应用打包到一个单独的可执行文件里面,从而使用户可以在没有安装 python 解释器 的情况下运行应用,你可以参考Build stand-alone App 如果你想在 PyWebIO 应用中进行一些数据可视化,可以参考Data visualization 4.1.5 Last but not least 以上基本就是 PyWebIO 的全部功能了,你可以继续阅读接下来的文档,或者立即开始 PyWebIO 应用的编写0 码力 | 125 页 | 1.72 MB | 1 年前3
PyWebIO v1.5.1 使用手册作为键、以输入数据为值的字典: data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) 输入组中同样支持使用 参数设置校验函数,其接受整个表单数据作为参数: def check_form(data): # return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: return ('age', 'Age can 应用打包到一个单独的可执行文件里面,从而使用户可以在没有安装 python 解释器 的情况下运行应用,你可以参考Build stand-alone App 如果你想在 PyWebIO 应用中进行一些数据可视化,可以参考Data visualization 4.1.5 Last but not least 以上基本就是 PyWebIO 的全部功能了,你可以继续阅读接下来的文档,或者立即开始 PyWebIO 应用的编写0 码力 | 125 页 | 1.72 MB | 1 年前3
PyWebIO v1.5.1 使用手册python code') data = input_group("Basic info",[ input('Input your name', name='name'), input('Input your age', name='age', type=NUMBER, validate=check_age) ]) put_text(data['name'], data['age']) 输入组中同样支持使用 PyWebIO提供了一系列函数来输出文本、表格、图像等格式: def check_form(data): # return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: return ('age' 可执行文件里面,从而使用户可 以在没有安装python解释器的情况下运行应用,你可以参考 Build stand-alone App 如果你想在PyWebIO应用中进行一些数据可视化,可以参考 Data visualization Last but not least 以上基本就是PyWebIO的全部功能了,你可以继续阅读接下来的文档,或者立 即开始PyWebIO应用的编写了。 最后再提供0 码力 | 144 页 | 7.46 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













