Skip to content

beeware/WebView2.runtime

WebView2.runtime

Generic BeeWare Logo

Python Versions PyPI Version Maturity BSD License Discord server

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.

Usage

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()

Updating the binaries

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

Community

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.

Contributing

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.

About

A Python package providing the Microsoft.Web.WebView2 runtime DLLs

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages