wasdk-Microsoft.Windows.ApplicationModel.DynamicDependency.Bootstrap 1.8.250702007.dev4__cp313-cp313-win_amd64.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.
Potentially problematic release.
This version of wasdk-Microsoft.Windows.ApplicationModel.DynamicDependency.Bootstrap might be problematic. Click here for more details.
- wasdk_microsoft_windows_applicationmodel_dynamicdependency_bootstrap-1.8.250702007.dev4.dist-info/METADATA +27 -0
- wasdk_microsoft_windows_applicationmodel_dynamicdependency_bootstrap-1.8.250702007.dev4.dist-info/RECORD +9 -0
- wasdk_microsoft_windows_applicationmodel_dynamicdependency_bootstrap-1.8.250702007.dev4.dist-info/WHEEL +5 -0
- wasdk_microsoft_windows_applicationmodel_dynamicdependency_bootstrap-1.8.250702007.dev4.dist-info/top_level.txt +1 -0
- winui3/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
- winui3/_winui3_microsoft_windows_applicationmodel_dynamicdependency_bootstrap.cp313-win_amd64.pyd +0 -0
- winui3/_winui3_microsoft_windows_applicationmodel_dynamicdependency_bootstrap.pyi +22 -0
- winui3/microsoft/windows/applicationmodel/dynamicdependency/bootstrap/__init__.py +67 -0
- winui3/microsoft/windows/applicationmodel/dynamicdependency/bootstrap/py.typed +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: wasdk-Microsoft.Windows.ApplicationModel.DynamicDependency.Bootstrap
|
|
3
|
+
Version: 1.8.250702007.dev4
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winui3-Microsoft.Windows.ApplicationModel.DynamicDependency.Bootstrap
|
|
19
|
+
|
|
20
|
+
**IMPORTANT**: Packages in the `winui3-*` namespace cannot be used without the
|
|
21
|
+
Windows App Runtime. This has to be installed manually by the end user. Read the
|
|
22
|
+
[PyWinRT winui3 documentation](https://pywinrt.readthedocs.io/en/latest/api/winui3/index.html)
|
|
23
|
+
for more information.
|
|
24
|
+
|
|
25
|
+
Windows Runtime (WinRT) APIs for for the `winui3-Microsoft.Windows.ApplicationModel.DynamicDependency.Bootstrap` namespace.
|
|
26
|
+
|
|
27
|
+
This package provides the `winui3.microsoft.windows.applicationmodel.dynamicdependency.bootstrap` module.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
winui3/Microsoft.WindowsAppRuntime.Bootstrap.dll,sha256=TLon-s3cXfR8trHzx83jpfsnhFgbBTElQQzcwNhsSjg,397880
|
|
2
|
+
winui3/_winui3_microsoft_windows_applicationmodel_dynamicdependency_bootstrap.cp313-win_amd64.pyd,sha256=geoizLj8svvjymS20mPCYKar1k_5pNkrXNAD01FUBV4,23552
|
|
3
|
+
winui3/_winui3_microsoft_windows_applicationmodel_dynamicdependency_bootstrap.pyi,sha256=fNPvmjGXtj4qXUKP7K1-bIXi4pZ_W2L_T4PvzTzv9m0,505
|
|
4
|
+
winui3/microsoft/windows/applicationmodel/dynamicdependency/bootstrap/__init__.py,sha256=TYzYQmxyxCxVJz0l_f__xNMEBNanv6Xc4ukiAL-F2M0,2051
|
|
5
|
+
winui3/microsoft/windows/applicationmodel/dynamicdependency/bootstrap/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
wasdk_microsoft_windows_applicationmodel_dynamicdependency_bootstrap-1.8.250702007.dev4.dist-info/METADATA,sha256=3owaXR1mvIgLrgqJ9JW_srx2M4iv1jXRpAxZH8PFgXg,1368
|
|
7
|
+
wasdk_microsoft_windows_applicationmodel_dynamicdependency_bootstrap-1.8.250702007.dev4.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
|
|
8
|
+
wasdk_microsoft_windows_applicationmodel_dynamicdependency_bootstrap-1.8.250702007.dev4.dist-info/top_level.txt,sha256=YY_y62osaHdBPTelBwwbROiPLyZu5V2gl62jTbJANfA,7
|
|
9
|
+
wasdk_microsoft_windows_applicationmodel_dynamicdependency_bootstrap-1.8.250702007.dev4.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winui3
|
|
Binary file
|
winui3/_winui3_microsoft_windows_applicationmodel_dynamicdependency_bootstrap.cp313-win_amd64.pyd
ADDED
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from typing import Optional, TypeVar
|
|
2
|
+
|
|
3
|
+
from winui3.microsoft.windows.applicationmodel.dynamicdependency.bootstrap import (
|
|
4
|
+
InitializeOptions,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
Self = TypeVar("Self")
|
|
8
|
+
|
|
9
|
+
RELEASE_VERSION: str
|
|
10
|
+
RUNTIME_VERSION: str
|
|
11
|
+
|
|
12
|
+
class Shutdown:
|
|
13
|
+
def __call__(self) -> None: ...
|
|
14
|
+
def __enter__(self: Self) -> Self: ...
|
|
15
|
+
def __exit__(self, *args) -> None: ...
|
|
16
|
+
|
|
17
|
+
def initialize(
|
|
18
|
+
major_minor_version: int,
|
|
19
|
+
version_tag: Optional[str],
|
|
20
|
+
min_version: int,
|
|
21
|
+
options: InitializeOptions,
|
|
22
|
+
) -> Shutdown: ...
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import enum
|
|
2
|
+
|
|
3
|
+
from winui3 import (
|
|
4
|
+
_winui3_microsoft_windows_applicationmodel_dynamicdependency_bootstrap as bootstrap,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
__all__ = ["InitializeOptions", "initialize"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class InitializeOptions(enum.IntFlag):
|
|
11
|
+
NONE = 0
|
|
12
|
+
"""Default behavior"""
|
|
13
|
+
|
|
14
|
+
ON_ERROR_DEBUG_BREAK = 1
|
|
15
|
+
"""If not successful call DebugBreak()"""
|
|
16
|
+
|
|
17
|
+
ON_ERROR_DEBUG_BREAK_IF_DEBUGGER_ATTACHED = 2
|
|
18
|
+
"""If not successful call DebugBreak() if a debugger is attached to the process"""
|
|
19
|
+
|
|
20
|
+
ON_ERROR_FAIL_FAST = 4
|
|
21
|
+
"""If not successful perform a fail-fast"""
|
|
22
|
+
|
|
23
|
+
ON_NO_MATCH_SHOW_UI = 8
|
|
24
|
+
"""If a compatible Windows App Runtime framework package is not found show UI"""
|
|
25
|
+
|
|
26
|
+
ON_PACKAGE_IDENTITY_NOOP = 16
|
|
27
|
+
"""Do nothing (do not error) if the process has package identity"""
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def initialize(
|
|
31
|
+
version: str = bootstrap.RELEASE_VERSION,
|
|
32
|
+
min_version: str = bootstrap.RUNTIME_VERSION,
|
|
33
|
+
options: InitializeOptions = InitializeOptions.NONE,
|
|
34
|
+
) -> bootstrap.Shutdown:
|
|
35
|
+
"""
|
|
36
|
+
Initialize the Windows App SDK runtime.
|
|
37
|
+
|
|
38
|
+
Args:
|
|
39
|
+
version: The Windows App SDK *product* version to load, e.g. "1.5" or "1.5-preview".
|
|
40
|
+
min_version: The minimum version of the Windows App SDK *runtime* to load, e.g. "5001.70.1338.0".
|
|
41
|
+
options: Initialization option flags.
|
|
42
|
+
|
|
43
|
+
Returns:
|
|
44
|
+
A context manager that will shutdown the Windows App SDK runtime when exited.
|
|
45
|
+
"""
|
|
46
|
+
# Split the version into major.minor and optional tag.
|
|
47
|
+
try:
|
|
48
|
+
ver, tag = version.split("-")
|
|
49
|
+
except ValueError:
|
|
50
|
+
ver, tag = version, None
|
|
51
|
+
|
|
52
|
+
ver_maj, ver_min = ver.split(".")
|
|
53
|
+
|
|
54
|
+
# encode in format required by low-level API
|
|
55
|
+
ver_maj_min = (int(ver_maj) << 16) | int(ver_min)
|
|
56
|
+
|
|
57
|
+
min_ver_maj, min_ver_min, min_ver_patch, min_ver_build = min_version.split(".")
|
|
58
|
+
|
|
59
|
+
# encode in format required by low-level API
|
|
60
|
+
min_ver_quad = (
|
|
61
|
+
(int(min_ver_maj) << 48)
|
|
62
|
+
| (int(min_ver_min) << 32)
|
|
63
|
+
| (int(min_ver_patch) << 16)
|
|
64
|
+
| int(min_ver_build)
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
return bootstrap.initialize(ver_maj_min, tag, min_ver_quad, options)
|
|
File without changes
|