What’s new in PyWebIO 1.1¶
2021 2/7¶
It’s been a whole year since the first line of PyWebIO code was written. 🎂 There have been too many things in 2020, but it has a special meaning to me. In 2021, we will continue to work hard to make PyWebIO better and better.
Highlights¶
Security support:
put_html(),put_markdown()can usesanitizeparameter to prevent XSS attack.UI internationalization support
SEO support: Set SEO info through
pywebio.platform.seo()or function docstringCDN support, more convenient to web framework integration
Application access speed is improved, and no probe requests are used to determine the communication protocol
Backwards-incompatible changes¶
Remove
disable_asyncioparameter ofstart_server()in django and flask.Deprecated
pywebio.session.data(), usepywebio.session.localinsteadApplication integrated into the web framework, the access address changes, see Web framework integration
Remove
max_heightparameter ofput_scrollable(), useheightinstead
Detailed changes¶
put_code()addrowsparameter to limit the maximum number of displayed linesput_scrollable()addkeep_bottomparameterput_markdown()addoptionsto config Markdown parsing options.Add html escaping for parameters of
put_code(),put_image(),put_link(),put_row(),put_grid()Methods
reset(),append(),insert()ofoutput()accept string contentFix: Parsing error in
max_sizeandmax_total_sizeparameters offile_upload()Fix: Auto open browser failed in python 3.6