dotnet-WebView2.WinForms 1.0.4078.44__py3-none-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- WebView2/Microsoft.Web.WebView2.Core.dll +0 -0
- WebView2/Microsoft.Web.WebView2.WinForms.dll +0 -0
- WebView2/__init__.py +28 -0
- WebView2/runtimes/win-x86/native/WebView2Loader.dll +0 -0
- dotnet_webview2_winforms-1.0.4078.44.dist-info/METADATA +81 -0
- dotnet_webview2_winforms-1.0.4078.44.dist-info/RECORD +10 -0
- dotnet_webview2_winforms-1.0.4078.44.dist-info/WHEEL +5 -0
- dotnet_webview2_winforms-1.0.4078.44.dist-info/licenses/LICENSE +27 -0
- dotnet_webview2_winforms-1.0.4078.44.dist-info/licenses/LICENSE.WebView2 +27 -0
- dotnet_webview2_winforms-1.0.4078.44.dist-info/top_level.txt +1 -0
|
Binary file
|
|
Binary file
|
WebView2/__init__.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import platform
|
|
3
|
+
from importlib.metadata import version
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
import clr
|
|
7
|
+
|
|
8
|
+
__version__ = version("dotnet-WebView2.WinForms")
|
|
9
|
+
|
|
10
|
+
WEBVIEW2_DIR = Path(__file__).parent
|
|
11
|
+
|
|
12
|
+
# Derive the runtime's arch from the current machine's arch
|
|
13
|
+
arch_path = {
|
|
14
|
+
"AMD64": "win-x64",
|
|
15
|
+
"x86": "win-x86",
|
|
16
|
+
"ARM64": "win-arm64",
|
|
17
|
+
}[platform.machine()]
|
|
18
|
+
|
|
19
|
+
# This specific filesystem layout is required for Windows Store Python.
|
|
20
|
+
# While python.org Python will respect $PATH when searching for DLLs to load,
|
|
21
|
+
# the Windows Store Python does not. Therefore, this filesystem layout is what
|
|
22
|
+
# the WebView2 loader will search by default to find the runtime.
|
|
23
|
+
# ref: https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution?tabs=dotnetcsharp#files-to-ship-with-the-app # noqa: E501
|
|
24
|
+
webview_runtime_dir = WEBVIEW2_DIR / f"runtimes/{arch_path}/native"
|
|
25
|
+
os.environ["PATH"] = f"{webview_runtime_dir}{os.pathsep}{os.environ['PATH']}"
|
|
26
|
+
|
|
27
|
+
clr.AddReference(str(WEBVIEW2_DIR / "Microsoft.Web.WebView2.Core.dll"))
|
|
28
|
+
clr.AddReference(str(WEBVIEW2_DIR / "Microsoft.Web.WebView2.WinForms.dll"))
|
|
Binary file
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dotnet-WebView2.WinForms
|
|
3
|
+
Version: 1.0.4078.44
|
|
4
|
+
Summary: Python.NET bindings to the Microsoft.Web.WebView2 Winforms component
|
|
5
|
+
Author-email: Russell Keith-Magee <russell@keith-magee.com>
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/beeware/dotnet-WebView2.WinForms
|
|
8
|
+
Project-URL: Funding, https://beeware.org/contributing/membership/
|
|
9
|
+
Project-URL: Tracker, https://github.com/beeware/dotnet-WebView2.WinForms/issues
|
|
10
|
+
Project-URL: Source, https://github.com/beeware/dotnet-WebView2.WinForms
|
|
11
|
+
Keywords: Microsoft,WebView2
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
+
Classifier: Topic :: Software Development
|
|
24
|
+
Classifier: Topic :: Utilities
|
|
25
|
+
Requires-Python: >=3.10
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
License-File: LICENSE.WebView2
|
|
29
|
+
Requires-Dist: pythonnet>=3.0.0
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# dotnet-WebView2.WinForms
|
|
33
|
+
|
|
34
|
+
[<img src="http://beeware.org/static/images/defaultlogo.png" width="72px" alt="Generic BeeWare Logo">](https://beeware.org/)
|
|
35
|
+
|
|
36
|
+
[](https://pypi.python.org/pypi/dotnet-WebView2.WinForms) [](https://pypi.python.org/pypi/dotnet-WebView2.WinForms) [](https://pypi.python.org/pypi/dotnet-WebView2.WinForms) [](https://github.com/beeware/dotnet-WebView2.WinForms/blob/main/LICENSE) [](https://beeware.org/bee/chat/)
|
|
37
|
+
|
|
38
|
+
This package contains the [Microsoft.Web.WebView2](https://www.nuget.org/packages/Microsoft.Web.WebView2) binaries, packaged with a light [Python.NET](http://pythonnet.github.io) wrapper. It provides a WebView2 WinForms control.
|
|
39
|
+
|
|
40
|
+
For details on usage and distribution, see [the Microsoft WebView2 documentation](https://docs.microsoft.com/en-us/microsoft-edge/webview2/)
|
|
41
|
+
|
|
42
|
+
Before use, the end-user must have the WebView2 Runtime installed. [Details can be found here](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section).
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
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:
|
|
47
|
+
|
|
48
|
+
# Load the WebView2 assemblies
|
|
49
|
+
import WebView2
|
|
50
|
+
|
|
51
|
+
# Create a WebView2 instance
|
|
52
|
+
from Microsoft.Web.WebView2.WinForms import WebView2
|
|
53
|
+
|
|
54
|
+
webview2 = WebView2()
|
|
55
|
+
|
|
56
|
+
## Updating the binaries
|
|
57
|
+
|
|
58
|
+
To update the WebView2 binaries, run:
|
|
59
|
+
|
|
60
|
+
$ python -m venv venv
|
|
61
|
+
$ source venv/bin/activate
|
|
62
|
+
(venv) $ pip install -U pip
|
|
63
|
+
(venv) $ pip install --group dev
|
|
64
|
+
(venv) $ python tools/update.py
|
|
65
|
+
|
|
66
|
+
Or, to update to a specific version, use:
|
|
67
|
+
|
|
68
|
+
(venv) $ python tools/update.py 1.0.3967.48
|
|
69
|
+
|
|
70
|
+
## Community
|
|
71
|
+
|
|
72
|
+
This binary distribution package is part of the [BeeWare suite](http://beeware.org). You can talk to the community through:
|
|
73
|
+
|
|
74
|
+
- [@beeware@fosstodon.org on Mastodon](https://fosstodon.org/@beeware)
|
|
75
|
+
- [Discord](https://beeware.org/bee/chat/)
|
|
76
|
+
|
|
77
|
+
We foster a welcoming and respectful community as described in our [BeeWare Community Code of Conduct](http://beeware.org/community/code-of-conduct/).
|
|
78
|
+
|
|
79
|
+
## Contributing
|
|
80
|
+
|
|
81
|
+
If you experience problems with this package, [log them on GitHub](https://github.com/beeware/dotnet-WebView2.WinForms/issues). If you want to contribute, please [fork the project](https://github.com/beeware/dotnet-WebView2.WinForms) and [submit a pull request](https://github.com/beeware/dotnet-WebView2.WinForms/pulls).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
WebView2/Microsoft.Web.WebView2.Core.dll,sha256=JLGmvjp5VuANBQnU6uvwjkGPwhnpZLbCadLgRDkzNoU,698208
|
|
2
|
+
WebView2/Microsoft.Web.WebView2.WinForms.dll,sha256=xiIaz-l0500rzGKRFjAcjPupwgQa1dgRh7ADagtF4ng,38752
|
|
3
|
+
WebView2/__init__.py,sha256=t1COlteOTTc4tBp8VlkA9wfJFGIlglWxPny9X0XYnY8,1097
|
|
4
|
+
WebView2/runtimes/win-x86/native/WebView2Loader.dll,sha256=U4i3O1ygDx-vKlac2SP9_wDjFqJU7235-6JA44OaLEU,124768
|
|
5
|
+
dotnet_webview2_winforms-1.0.4078.44.dist-info/licenses/LICENSE,sha256=J8I7-Ep3oO_swCJ9SxJV5VXpyBnfrEx30Pb8qlpFNYA,1520
|
|
6
|
+
dotnet_webview2_winforms-1.0.4078.44.dist-info/licenses/LICENSE.WebView2,sha256=mZUXRSjboTnKdT0C2GZ9vsSfZasX5lxkOpFPK1jPtKI,1487
|
|
7
|
+
dotnet_webview2_winforms-1.0.4078.44.dist-info/METADATA,sha256=_KQaJML9kmG3PKKZeUNrOfXbv1N-FnCZtw55-LU28Q0,4250
|
|
8
|
+
dotnet_webview2_winforms-1.0.4078.44.dist-info/WHEEL,sha256=-QDJg84HXUJ-NPiql0t5NKH3sK8d_nFC0rXlope7Qf0,93
|
|
9
|
+
dotnet_webview2_winforms-1.0.4078.44.dist-info/top_level.txt,sha256=Kdj09XoXJsBTj2Qd5zDxRW1sbkFZSQxnasQs1fEaQCA,9
|
|
10
|
+
dotnet_webview2_winforms-1.0.4078.44.dist-info/RECORD,,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright (c) 2014 Russell Keith-Magee.
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
5
|
+
are permitted provided that the following conditions are met:
|
|
6
|
+
|
|
7
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
9
|
+
|
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
documentation and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
3. Neither the name of Toga nor the names of its contributors may
|
|
15
|
+
be used to endorse or promote products derived from this software without
|
|
16
|
+
specific prior written permission.
|
|
17
|
+
|
|
18
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
19
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
22
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
23
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
24
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
25
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright (C) Microsoft Corporation. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
|
4
|
+
modification, are permitted provided that the following conditions are
|
|
5
|
+
met:
|
|
6
|
+
|
|
7
|
+
* Redistributions of source code must retain the above copyright
|
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
|
9
|
+
* Redistributions in binary form must reproduce the above
|
|
10
|
+
copyright notice, this list of conditions and the following disclaimer
|
|
11
|
+
in the documentation and/or other materials provided with the
|
|
12
|
+
distribution.
|
|
13
|
+
* The name of Microsoft Corporation, or the names of its contributors
|
|
14
|
+
may not be used to endorse or promote products derived from this
|
|
15
|
+
software without specific prior written permission.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
18
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
19
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
20
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
21
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
22
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
23
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
24
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
25
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
27
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
WebView2
|