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 usesanitize
parameter 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_asyncio
parameter ofstart_server()
in django and flask.Deprecated
pywebio.session.data()
, usepywebio.session.local
insteadApplication integrated into the web framework, the access address changes, see Web framework integration
Remove
max_height
parameter ofput_scrollable()
, useheight
instead
Detailed changes¶
put_code()
addrows
parameter to limit the maximum number of displayed linesput_scrollable()
addkeep_bottom
parameterput_markdown()
addoptions
to 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_size
andmax_total_size
parameters offile_upload()
Fix: Auto open browser failed in python 3.6