PyWebIO v1.6.3 Documentation
Tornado, 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 年前3PyWebIO v1.6.1 Documentation
Tornado, 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 年前3PyWebIO v1.6.2 Documentation
Tornado, 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 年前3PyWebIO v1.6.0 Documentation
Tornado, 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 年前3PyWebIO v1.5.2 Documentation
Tornado, 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 年前3PyWebIO v1.5.0 Documentation
Tornado, 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 年前3PyWebIO v1.5.1 Documentation
Tornado, 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 年前3PyWebIO v1.4.0 Documentation
Tornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.4.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 码力 | 102 页 | 1.35 MB | 1 年前3PyWebIO v1.7.1 Documentation
Tornado, aiohttp and FastAPI(Starlette) framework • Support for asyncio and coroutine • Support data visualization with third-party libraries 3 PyWebIO, Release 1.7.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 码力 | 112 页 | 1.38 MB | 1 年前3PyWebIO v1.4.0 Documentation
Django, 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 FAQ Release notes What’s new in PyWebIO 1.4 What’s new in PyWebIO 1.3 What’s new 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 码力 | 135 页 | 7.45 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9