PyWebIO v1.2.3 Documentationcurrently supports Flask, Django, Tornado, aiohttp framework Support for asyncio and coroutine Support data visualization with third-party libraries Installation Stable version: pip3 install -U pywebio Directory Deploy Application Deploy Other Libraries support Build stand-alone App Data visualization Demos Basic demos Data visualization demos Miscellaneous Commonly used Codemirror options Nginx WebSocket function as the key and the input data as the value: The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter: Attention PyWebIO0 码力 | 119 页 | 7.43 MB | 1 年前3
PyWebIO v1.2.2 Documentationcurrently supports Flask, Django, Tornado, aiohttp framework Support for asyncio and coroutine Support data visualization with third-party libraries Installation Stable version: pip3 install -U pywebio Directory Deploy Application Deploy Other Libraries support Build stand-alone App Data visualization Demos Basic demos Data visualization demos Miscellaneous Commonly used Codemirror options Nginx WebSocket function as the key and the input data as the value: The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter: Attention PyWebIO0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.8.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.8 What’s new in PyWebIO 1.7 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: if p < 10: return 'Too young!!' if p > 60: return 'Too old!!'0 码力 | 160 页 | 7.47 MB | 1 年前3
PyWebIO v1.2.3 使用手册PyWebIO提供了一系列函数来输出表格、链接等格式: 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 def check_form(data): # input group validation: return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: list: (label, value, [selected,] [disabled] 单值: 此时label和value使用相同的值 注意: 1. options 中的 value 可以为任意可JSON序列化对象 2. 若 multiple 选项不为 True 则可选项列表最多仅能 有一项的 selected 为 True。 multiple (bool) – 是否可以多选. 默认单选 value0 码力 | 119 页 | 7.44 MB | 1 年前3
PyWebIO v1.2.2 使用手册PyWebIO提供了一系列函数来输出表格、链接等格式: 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 def check_form(data): # input group validation: return (input name, error msg) when validation fail if len(data['name']) > 6: return ('name', 'Name too long!') if data['age'] <= 0: list: (label, value, [selected,] [disabled] 单值: 此时label和value使用相同的值 注意: 1. options 中的 value 可以为任意可JSON序列化对象 2. 若 multiple 选项不为 True 则可选项列表最多仅能 有一项的 selected 为 True。 multiple (bool) – 是否可以多选. 默认单选 value0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.1.0 使用手册PyWebIO提供了一系列函数来输出表格、链接等格式: 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 def check_form(data): # 检验函数校验通过时返回None,否则返回 (input name,错 误消息) if len(data['name']) > 6: return ('name', '名字太长!') if data['age'] <= 0: return ('age', '年龄不能为负数!') # 文本输出 put_text("Hello list: (label, value, [selected,] [disabled] 单值: 此时label和value使用相同的值 注意: 1. options 中的 value 可以为任意可JSON序列化对象 2. 若 multiple 选项不为 True 则可选项列表最多仅能 有一项的 selected 为 True。 multiple (bool) – 是否可以多选. 默认单选 value0 码力 | 119 页 | 7.41 MB | 1 年前3
PyWebIO v1.3.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 Directory Deploy Application Deploy Other Libraries support Build stand-alone App Data visualization Demos Basic demos Data visualization demos Miscellaneous Commonly used Codemirror options Nginx WebSocket function as the key and the input data as the value: The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter: Attention PyWebIO0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.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 Directory Deploy Application Deploy Other Libraries support Build stand-alone App Data visualization Demos Basic demos Data visualization demos Miscellaneous Commonly used Codemirror options Nginx WebSocket function as the key and the input data as the value: The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter: Attention PyWebIO0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.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 Directory Deploy Application Deploy Other Libraries support Build stand-alone App Data visualization Demos Basic demos Data visualization demos Miscellaneous Commonly used Codemirror options Nginx WebSocket function as the key and the input data as the value: The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter: Attention PyWebIO0 码力 | 133 页 | 7.44 MB | 1 年前3
PyWebIO v1.3.3 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 Directory Deploy Application Deploy Other Libraries support Build stand-alone App Data visualization Demos Basic demos Data visualization demos Miscellaneous Commonly used Codemirror options Nginx WebSocket function as the key and the input data as the value: The input group also supports using validate parameter to set the validation function, which accepts the entire form data as parameter: Attention PyWebIO0 码力 | 133 页 | 7.44 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













