This is the Microsoft WebView2 runtime binaries, packaged with a light Python.NET wrapper, to enable easy use of WebView2 in Winforms applications.
For details on usage and distribution, see the Microsoft WebView2 documentation
Before use, the end-user must have the WebView2 Runtime installed. Details can be found here.
Once installed in an environment that also has Python.NET installed, importing the WebView2 package will load the WebView2 assemblies. The Microsoft.Web.WebView2 libraries can then be imported and used:
# Load the WebView2 assemblies
import WebView2
# Create a WebView2 instance
from Microsoft.Web.WebView2.WinForms import WebView2
webview2 = WebView2()
To update the WebView2 binaries, run:
$ python -m venv venv
$ source venv/bin/activate
(venv) $ pip install -U pip
(venv) $ pip install --group dev
(venv) $ python tools/update.py
Or, to update to a specific version, use:
(venv) $ python tools/update.py 1.0.3967.48
This binary distribution package is part of the BeeWare suite. You can talk to the community through:
We foster a welcoming and respectful community as described in our BeeWare Community Code of Conduct.
If you experience problems with this package, log them on GitHub. If you want to contribute, please fork the project and submit a pull request.
