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.6.3 DocumentationTornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.6.3 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.6.1 DocumentationTornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.6.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.6.2 DocumentationTornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.6.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.6.0 DocumentationTornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.6.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.7.0 DocumentationTornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.7.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 码力 | 110 页 | 1.37 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
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













