winrt-Windows.Storage 2.0.0b1__tar.gz → 2.0.1__tar.gz
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.
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/PKG-INFO +11 -2
- winrt_windows_storage-2.0.1/all-requirements.txt +9 -0
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/py.Windows.Storage.cpp +21 -3
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/pyproject.toml +7 -4
- winrt_windows_storage-2.0.1/pywinrt-version.txt +1 -0
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/requirements.txt +2 -2
- winrt_windows_storage-2.0.1/setup.py +31 -0
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/winrt/_winrt_windows_storage.pyi +59 -1
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/winrt/windows/storage/__init__.py +1 -1
- winrt_windows_storage-2.0.1/winrt/windows/storage/py.typed +0 -0
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/winrt_Windows.Storage.egg-info/PKG-INFO +11 -2
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/winrt_Windows.Storage.egg-info/SOURCES.txt +1 -0
- winrt_windows_storage-2.0.1/winrt_Windows.Storage.egg-info/requires.txt +10 -0
- winrt-Windows.Storage-2.0.0b1/all-requirements.txt +0 -9
- winrt-Windows.Storage-2.0.0b1/pywinrt-version.txt +0 -1
- winrt-Windows.Storage-2.0.0b1/setup.py +0 -17
- winrt-Windows.Storage-2.0.0b1/winrt_Windows.Storage.egg-info/requires.txt +0 -10
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/README.md +0 -0
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/setup.cfg +0 -0
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/winrt_Windows.Storage.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/winrt_Windows.Storage.egg-info/top_level.txt +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Storage
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
|
-
Project-URL:
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
7
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
9
|
Classifier: Operating System :: Microsoft :: Windows
|
|
9
10
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -11,7 +12,15 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
11
12
|
Classifier: Intended Audience :: Developers
|
|
12
13
|
Requires-Python: <3.13,>=3.9
|
|
13
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.0.1
|
|
14
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.FileProperties[all]==2.0.1; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Provider[all]==2.0.1; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Storage.Search[all]==2.0.1; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.System[all]==2.0.1; extra == "all"
|
|
15
24
|
|
|
16
25
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
26
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==2.0.1
|
|
4
|
+
winrt-Windows.Foundation.Collections[all]==2.0.1
|
|
5
|
+
winrt-Windows.Storage.FileProperties[all]==2.0.1
|
|
6
|
+
winrt-Windows.Storage.Provider[all]==2.0.1
|
|
7
|
+
winrt-Windows.Storage.Search[all]==2.0.1
|
|
8
|
+
winrt-Windows.Storage.Streams[all]==2.0.1
|
|
9
|
+
winrt-Windows.System[all]==2.0.1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Storage.h"
|
|
4
4
|
|
|
@@ -1331,9 +1331,18 @@ namespace py::cpp::Windows::Storage
|
|
|
1331
1331
|
{
|
|
1332
1332
|
try
|
|
1333
1333
|
{
|
|
1334
|
-
auto
|
|
1334
|
+
auto _key = py::convert_to<winrt::hstring>(key);
|
|
1335
|
+
auto value = self->obj.TryLookup(_key);
|
|
1335
1336
|
|
|
1336
1337
|
if (!value) {
|
|
1338
|
+
if constexpr (std::is_base_of_v<winrt::Windows::Foundation::IUnknown, decltype(value)>)
|
|
1339
|
+
{
|
|
1340
|
+
if (self->obj.HasKey(_key))
|
|
1341
|
+
{
|
|
1342
|
+
Py_RETURN_NONE;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1337
1346
|
PyErr_SetObject(PyExc_KeyError, key);
|
|
1338
1347
|
return nullptr;
|
|
1339
1348
|
}
|
|
@@ -2050,9 +2059,18 @@ namespace py::cpp::Windows::Storage
|
|
|
2050
2059
|
{
|
|
2051
2060
|
try
|
|
2052
2061
|
{
|
|
2053
|
-
auto
|
|
2062
|
+
auto _key = py::convert_to<winrt::hstring>(key);
|
|
2063
|
+
auto value = self->obj.TryLookup(_key);
|
|
2054
2064
|
|
|
2055
2065
|
if (!value) {
|
|
2066
|
+
if constexpr (std::is_base_of_v<winrt::Windows::Foundation::IUnknown, decltype(value)>)
|
|
2067
|
+
{
|
|
2068
|
+
if (self->obj.HasKey(_key))
|
|
2069
|
+
{
|
|
2070
|
+
Py_RETURN_NONE;
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2056
2074
|
PyErr_SetObject(PyExc_KeyError, key);
|
|
2057
2075
|
return nullptr;
|
|
2058
2076
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -19,9 +19,9 @@ dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
|
19
19
|
requires-python = ">=3.9,<3.13"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
|
-
# Homepage = "https://github.com/
|
|
23
|
-
|
|
24
|
-
Repository = "https://github.com/
|
|
22
|
+
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
23
|
+
Documentation = "https://pywinrt.readthedocs.io"
|
|
24
|
+
Repository = "https://github.com/pywinrt/pywinrt"
|
|
25
25
|
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
26
|
|
|
27
27
|
[tool.setuptools.dynamic]
|
|
@@ -29,6 +29,9 @@ version = { file = "pywinrt-version.txt" }
|
|
|
29
29
|
dependencies = { file = "requirements.txt" }
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
|
+
[tool.setuptools.package-data]
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
|
+
|
|
32
35
|
[tool.cibuildwheel]
|
|
33
36
|
# use local winrt-sdk build dependency
|
|
34
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.1
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0.
|
|
3
|
+
winrt-runtime==2.0.1
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_storage",
|
|
26
|
+
sources=["py.Windows.Storage.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
{winrt-Windows.Storage-2.0.0b1 → winrt_windows_storage-2.0.1}/winrt/_winrt_windows_storage.pyi
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -22,10 +22,12 @@ from winrt.windows.storage import ApplicationDataSetVersionHandler, StreamedFile
|
|
|
22
22
|
|
|
23
23
|
Self = typing.TypeVar('Self')
|
|
24
24
|
|
|
25
|
+
@typing.final
|
|
25
26
|
class AppDataPaths_Static(type):
|
|
26
27
|
def get_default(cls) -> typing.Optional[AppDataPaths]: ...
|
|
27
28
|
def get_for_user(cls, user: typing.Optional[winrt.windows.system.User], /) -> typing.Optional[AppDataPaths]: ...
|
|
28
29
|
|
|
30
|
+
@typing.final
|
|
29
31
|
class AppDataPaths(winrt.system.Object, metaclass=AppDataPaths_Static):
|
|
30
32
|
@staticmethod
|
|
31
33
|
def _from(obj: winrt.system.Object, /) -> AppDataPaths: ...
|
|
@@ -48,11 +50,13 @@ class AppDataPaths(winrt.system.Object, metaclass=AppDataPaths_Static):
|
|
|
48
50
|
@_property
|
|
49
51
|
def roaming_app_data(self) -> str: ...
|
|
50
52
|
|
|
53
|
+
@typing.final
|
|
51
54
|
class ApplicationData_Static(type):
|
|
52
55
|
def get_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], /) -> winrt.windows.foundation.IAsyncOperation[ApplicationData]: ...
|
|
53
56
|
@_property
|
|
54
57
|
def current(cls) -> typing.Optional[ApplicationData]: ...
|
|
55
58
|
|
|
59
|
+
@typing.final
|
|
56
60
|
class ApplicationData(winrt.system.Object, metaclass=ApplicationData_Static):
|
|
57
61
|
def __enter__(self: Self) -> Self: ...
|
|
58
62
|
def __exit__(self, *args) -> None: ...
|
|
@@ -88,6 +92,7 @@ class ApplicationData(winrt.system.Object, metaclass=ApplicationData_Static):
|
|
|
88
92
|
@_property
|
|
89
93
|
def shared_local_folder(self) -> typing.Optional[StorageFolder]: ...
|
|
90
94
|
|
|
95
|
+
@typing.final
|
|
91
96
|
class ApplicationDataCompositeValue(winrt.system.Object, winrt._winrt.MutableMapping[str, winrt.system.Object]):
|
|
92
97
|
def __len__(self) -> int: ...
|
|
93
98
|
def __iter__(self) -> typing.Iterator[str]: ...
|
|
@@ -110,6 +115,7 @@ class ApplicationDataCompositeValue(winrt.system.Object, winrt._winrt.MutableMap
|
|
|
110
115
|
@_property
|
|
111
116
|
def size(self) -> winrt.system.UInt32: ...
|
|
112
117
|
|
|
118
|
+
@typing.final
|
|
113
119
|
class ApplicationDataContainer(winrt.system.Object):
|
|
114
120
|
def __enter__(self: Self) -> Self: ...
|
|
115
121
|
def __exit__(self, *args) -> None: ...
|
|
@@ -127,6 +133,7 @@ class ApplicationDataContainer(winrt.system.Object):
|
|
|
127
133
|
@_property
|
|
128
134
|
def values(self) -> typing.Optional[winrt.windows.foundation.collections.IPropertySet]: ...
|
|
129
135
|
|
|
136
|
+
@typing.final
|
|
130
137
|
class ApplicationDataContainerSettings(winrt.system.Object, winrt._winrt.MutableMapping[str, winrt.system.Object]):
|
|
131
138
|
def __len__(self) -> int: ...
|
|
132
139
|
def __iter__(self) -> typing.Iterator[str]: ...
|
|
@@ -148,14 +155,17 @@ class ApplicationDataContainerSettings(winrt.system.Object, winrt._winrt.Mutable
|
|
|
148
155
|
@_property
|
|
149
156
|
def size(self) -> winrt.system.UInt32: ...
|
|
150
157
|
|
|
158
|
+
@typing.final
|
|
151
159
|
class CachedFileManager_Static(type):
|
|
152
160
|
def complete_updates_async(cls, file: typing.Optional[IStorageFile], /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.storage.provider.FileUpdateStatus]: ...
|
|
153
161
|
def defer_updates(cls, file: typing.Optional[IStorageFile], /) -> None: ...
|
|
154
162
|
|
|
163
|
+
@typing.final
|
|
155
164
|
class CachedFileManager(winrt.system.Object, metaclass=CachedFileManager_Static):
|
|
156
165
|
@staticmethod
|
|
157
166
|
def _from(obj: winrt.system.Object, /) -> CachedFileManager: ...
|
|
158
167
|
|
|
168
|
+
@typing.final
|
|
159
169
|
class DownloadsFolder_Static(type):
|
|
160
170
|
@typing.overload
|
|
161
171
|
def create_file_async(cls, desired_name: str, /) -> winrt.windows.foundation.IAsyncOperation[StorageFile]: ...
|
|
@@ -174,10 +184,12 @@ class DownloadsFolder_Static(type):
|
|
|
174
184
|
@typing.overload
|
|
175
185
|
def create_folder_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], desired_name: str, option: CreationCollisionOption, /) -> winrt.windows.foundation.IAsyncOperation[StorageFolder]: ...
|
|
176
186
|
|
|
187
|
+
@typing.final
|
|
177
188
|
class DownloadsFolder(winrt.system.Object, metaclass=DownloadsFolder_Static):
|
|
178
189
|
@staticmethod
|
|
179
190
|
def _from(obj: winrt.system.Object, /) -> DownloadsFolder: ...
|
|
180
191
|
|
|
192
|
+
@typing.final
|
|
181
193
|
class FileIO_Static(type):
|
|
182
194
|
@typing.overload
|
|
183
195
|
def append_lines_async(cls, file: typing.Optional[IStorageFile], lines: typing.Iterable[str], /) -> winrt.windows.foundation.IAsyncAction: ...
|
|
@@ -207,10 +219,12 @@ class FileIO_Static(type):
|
|
|
207
219
|
@typing.overload
|
|
208
220
|
def write_text_async(cls, file: typing.Optional[IStorageFile], contents: str, encoding: winrt.windows.storage.streams.UnicodeEncoding, /) -> winrt.windows.foundation.IAsyncAction: ...
|
|
209
221
|
|
|
222
|
+
@typing.final
|
|
210
223
|
class FileIO(winrt.system.Object, metaclass=FileIO_Static):
|
|
211
224
|
@staticmethod
|
|
212
225
|
def _from(obj: winrt.system.Object, /) -> FileIO: ...
|
|
213
226
|
|
|
227
|
+
@typing.final
|
|
214
228
|
class KnownFolders_Static(type):
|
|
215
229
|
def get_folder_async(cls, folder_id: KnownFolderId, /) -> winrt.windows.foundation.IAsyncOperation[StorageFolder]: ...
|
|
216
230
|
def get_folder_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], folder_id: KnownFolderId, /) -> winrt.windows.foundation.IAsyncOperation[StorageFolder]: ...
|
|
@@ -243,10 +257,12 @@ class KnownFolders_Static(type):
|
|
|
243
257
|
@_property
|
|
244
258
|
def recorded_calls(cls) -> typing.Optional[StorageFolder]: ...
|
|
245
259
|
|
|
260
|
+
@typing.final
|
|
246
261
|
class KnownFolders(winrt.system.Object, metaclass=KnownFolders_Static):
|
|
247
262
|
@staticmethod
|
|
248
263
|
def _from(obj: winrt.system.Object, /) -> KnownFolders: ...
|
|
249
264
|
|
|
265
|
+
@typing.final
|
|
250
266
|
class PathIO_Static(type):
|
|
251
267
|
@typing.overload
|
|
252
268
|
def append_lines_async(cls, absolute_path: str, lines: typing.Iterable[str], /) -> winrt.windows.foundation.IAsyncAction: ...
|
|
@@ -276,15 +292,18 @@ class PathIO_Static(type):
|
|
|
276
292
|
@typing.overload
|
|
277
293
|
def write_text_async(cls, absolute_path: str, contents: str, encoding: winrt.windows.storage.streams.UnicodeEncoding, /) -> winrt.windows.foundation.IAsyncAction: ...
|
|
278
294
|
|
|
295
|
+
@typing.final
|
|
279
296
|
class PathIO(winrt.system.Object, metaclass=PathIO_Static):
|
|
280
297
|
@staticmethod
|
|
281
298
|
def _from(obj: winrt.system.Object, /) -> PathIO: ...
|
|
282
299
|
|
|
300
|
+
@typing.final
|
|
283
301
|
class SetVersionDeferral(winrt.system.Object):
|
|
284
302
|
@staticmethod
|
|
285
303
|
def _from(obj: winrt.system.Object, /) -> SetVersionDeferral: ...
|
|
286
304
|
def complete(self) -> None: ...
|
|
287
305
|
|
|
306
|
+
@typing.final
|
|
288
307
|
class SetVersionRequest(winrt.system.Object):
|
|
289
308
|
@staticmethod
|
|
290
309
|
def _from(obj: winrt.system.Object, /) -> SetVersionRequest: ...
|
|
@@ -294,6 +313,7 @@ class SetVersionRequest(winrt.system.Object):
|
|
|
294
313
|
@_property
|
|
295
314
|
def desired_version(self) -> winrt.system.UInt32: ...
|
|
296
315
|
|
|
316
|
+
@typing.final
|
|
297
317
|
class StorageFile_Static(type):
|
|
298
318
|
def create_streamed_file_async(cls, display_name_with_extension: str, data_requested: typing.Optional[StreamedFileDataRequestedHandler], thumbnail: typing.Optional[winrt.windows.storage.streams.IRandomAccessStreamReference], /) -> winrt.windows.foundation.IAsyncOperation[StorageFile]: ...
|
|
299
319
|
def create_streamed_file_from_uri_async(cls, display_name_with_extension: str, uri: typing.Optional[winrt.windows.foundation.Uri], thumbnail: typing.Optional[winrt.windows.storage.streams.IRandomAccessStreamReference], /) -> winrt.windows.foundation.IAsyncOperation[StorageFile]: ...
|
|
@@ -303,6 +323,7 @@ class StorageFile_Static(type):
|
|
|
303
323
|
def replace_with_streamed_file_async(cls, file_to_replace: typing.Optional[IStorageFile], data_requested: typing.Optional[StreamedFileDataRequestedHandler], thumbnail: typing.Optional[winrt.windows.storage.streams.IRandomAccessStreamReference], /) -> winrt.windows.foundation.IAsyncOperation[StorageFile]: ...
|
|
304
324
|
def replace_with_streamed_file_from_uri_async(cls, file_to_replace: typing.Optional[IStorageFile], uri: typing.Optional[winrt.windows.foundation.Uri], thumbnail: typing.Optional[winrt.windows.storage.streams.IRandomAccessStreamReference], /) -> winrt.windows.foundation.IAsyncOperation[StorageFile]: ...
|
|
305
325
|
|
|
326
|
+
@typing.final
|
|
306
327
|
class StorageFile(winrt.system.Object, metaclass=StorageFile_Static):
|
|
307
328
|
@staticmethod
|
|
308
329
|
def _from(obj: winrt.system.Object, /) -> StorageFile: ...
|
|
@@ -379,10 +400,12 @@ class StorageFile(winrt.system.Object, metaclass=StorageFile_Static):
|
|
|
379
400
|
@_property
|
|
380
401
|
def provider(self) -> typing.Optional[StorageProvider]: ...
|
|
381
402
|
|
|
403
|
+
@typing.final
|
|
382
404
|
class StorageFolder_Static(type):
|
|
383
405
|
def get_folder_from_path_async(cls, path: str, /) -> winrt.windows.foundation.IAsyncOperation[StorageFolder]: ...
|
|
384
406
|
def get_folder_from_path_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], path: str, /) -> winrt.windows.foundation.IAsyncOperation[StorageFolder]: ...
|
|
385
407
|
|
|
408
|
+
@typing.final
|
|
386
409
|
class StorageFolder(winrt.system.Object, metaclass=StorageFolder_Static):
|
|
387
410
|
@staticmethod
|
|
388
411
|
def _from(obj: winrt.system.Object, /) -> StorageFolder: ...
|
|
@@ -474,10 +497,12 @@ class StorageFolder(winrt.system.Object, metaclass=StorageFolder_Static):
|
|
|
474
497
|
@_property
|
|
475
498
|
def provider(self) -> typing.Optional[StorageProvider]: ...
|
|
476
499
|
|
|
500
|
+
@typing.final
|
|
477
501
|
class StorageLibrary_Static(type):
|
|
478
502
|
def get_library_async(cls, library_id: KnownLibraryId, /) -> winrt.windows.foundation.IAsyncOperation[StorageLibrary]: ...
|
|
479
503
|
def get_library_for_user_async(cls, user: typing.Optional[winrt.windows.system.User], library_id: KnownLibraryId, /) -> winrt.windows.foundation.IAsyncOperation[StorageLibrary]: ...
|
|
480
504
|
|
|
505
|
+
@typing.final
|
|
481
506
|
class StorageLibrary(winrt.system.Object, metaclass=StorageLibrary_Static):
|
|
482
507
|
@staticmethod
|
|
483
508
|
def _from(obj: winrt.system.Object, /) -> StorageLibrary: ...
|
|
@@ -493,6 +518,7 @@ class StorageLibrary(winrt.system.Object, metaclass=StorageLibrary_Static):
|
|
|
493
518
|
@_property
|
|
494
519
|
def change_tracker(self) -> typing.Optional[StorageLibraryChangeTracker]: ...
|
|
495
520
|
|
|
521
|
+
@typing.final
|
|
496
522
|
class StorageLibraryChange(winrt.system.Object):
|
|
497
523
|
@staticmethod
|
|
498
524
|
def _from(obj: winrt.system.Object, /) -> StorageLibraryChange: ...
|
|
@@ -505,6 +531,7 @@ class StorageLibraryChange(winrt.system.Object):
|
|
|
505
531
|
@_property
|
|
506
532
|
def previous_path(self) -> str: ...
|
|
507
533
|
|
|
534
|
+
@typing.final
|
|
508
535
|
class StorageLibraryChangeReader(winrt.system.Object):
|
|
509
536
|
@staticmethod
|
|
510
537
|
def _from(obj: winrt.system.Object, /) -> StorageLibraryChangeReader: ...
|
|
@@ -512,6 +539,7 @@ class StorageLibraryChangeReader(winrt.system.Object):
|
|
|
512
539
|
def get_last_change_id(self) -> winrt.system.UInt64: ...
|
|
513
540
|
def read_batch_async(self) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.foundation.collections.IVectorView[StorageLibraryChange]]: ...
|
|
514
541
|
|
|
542
|
+
@typing.final
|
|
515
543
|
class StorageLibraryChangeTracker(winrt.system.Object):
|
|
516
544
|
@staticmethod
|
|
517
545
|
def _from(obj: winrt.system.Object, /) -> StorageLibraryChangeTracker: ...
|
|
@@ -523,6 +551,7 @@ class StorageLibraryChangeTracker(winrt.system.Object):
|
|
|
523
551
|
def get_change_reader(self) -> typing.Optional[StorageLibraryChangeReader]: ...
|
|
524
552
|
def reset(self) -> None: ...
|
|
525
553
|
|
|
554
|
+
@typing.final
|
|
526
555
|
class StorageLibraryChangeTrackerOptions(winrt.system.Object):
|
|
527
556
|
@staticmethod
|
|
528
557
|
def _from(obj: winrt.system.Object, /) -> StorageLibraryChangeTrackerOptions: ...
|
|
@@ -532,14 +561,17 @@ class StorageLibraryChangeTrackerOptions(winrt.system.Object):
|
|
|
532
561
|
@track_change_details.setter
|
|
533
562
|
def track_change_details(self, value: bool) -> None: ...
|
|
534
563
|
|
|
564
|
+
@typing.final
|
|
535
565
|
class StorageLibraryLastChangeId_Static(type):
|
|
536
566
|
@_property
|
|
537
567
|
def unknown(cls) -> winrt.system.UInt64: ...
|
|
538
568
|
|
|
569
|
+
@typing.final
|
|
539
570
|
class StorageLibraryLastChangeId(winrt.system.Object, metaclass=StorageLibraryLastChangeId_Static):
|
|
540
571
|
@staticmethod
|
|
541
572
|
def _from(obj: winrt.system.Object, /) -> StorageLibraryLastChangeId: ...
|
|
542
573
|
|
|
574
|
+
@typing.final
|
|
543
575
|
class StorageProvider(winrt.system.Object):
|
|
544
576
|
@staticmethod
|
|
545
577
|
def _from(obj: winrt.system.Object, /) -> StorageProvider: ...
|
|
@@ -549,6 +581,7 @@ class StorageProvider(winrt.system.Object):
|
|
|
549
581
|
@_property
|
|
550
582
|
def id(self) -> str: ...
|
|
551
583
|
|
|
584
|
+
@typing.final
|
|
552
585
|
class StorageStreamTransaction(winrt.system.Object):
|
|
553
586
|
def __enter__(self: Self) -> Self: ...
|
|
554
587
|
def __exit__(self, *args) -> None: ...
|
|
@@ -559,6 +592,7 @@ class StorageStreamTransaction(winrt.system.Object):
|
|
|
559
592
|
@_property
|
|
560
593
|
def stream(self) -> typing.Optional[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
561
594
|
|
|
595
|
+
@typing.final
|
|
562
596
|
class StreamedFileDataRequest(winrt.system.Object):
|
|
563
597
|
def __enter__(self: Self) -> Self: ...
|
|
564
598
|
def __exit__(self, *args) -> None: ...
|
|
@@ -569,15 +603,18 @@ class StreamedFileDataRequest(winrt.system.Object):
|
|
|
569
603
|
def flush_async(self) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
|
|
570
604
|
def write_async(self, buffer: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.windows.foundation.IAsyncOperationWithProgress[winrt.system.UInt32, winrt.system.UInt32]: ...
|
|
571
605
|
|
|
606
|
+
@typing.final
|
|
572
607
|
class SystemAudioProperties(winrt.system.Object):
|
|
573
608
|
@staticmethod
|
|
574
609
|
def _from(obj: winrt.system.Object, /) -> SystemAudioProperties: ...
|
|
575
610
|
@_property
|
|
576
611
|
def encoding_bitrate(self) -> str: ...
|
|
577
612
|
|
|
613
|
+
@typing.final
|
|
578
614
|
class SystemDataPaths_Static(type):
|
|
579
615
|
def get_default(cls) -> typing.Optional[SystemDataPaths]: ...
|
|
580
616
|
|
|
617
|
+
@typing.final
|
|
581
618
|
class SystemDataPaths(winrt.system.Object, metaclass=SystemDataPaths_Static):
|
|
582
619
|
@staticmethod
|
|
583
620
|
def _from(obj: winrt.system.Object, /) -> SystemDataPaths: ...
|
|
@@ -614,6 +651,7 @@ class SystemDataPaths(winrt.system.Object, metaclass=SystemDataPaths_Static):
|
|
|
614
651
|
@_property
|
|
615
652
|
def windows(self) -> str: ...
|
|
616
653
|
|
|
654
|
+
@typing.final
|
|
617
655
|
class SystemGPSProperties(winrt.system.Object):
|
|
618
656
|
@staticmethod
|
|
619
657
|
def _from(obj: winrt.system.Object, /) -> SystemGPSProperties: ...
|
|
@@ -622,6 +660,7 @@ class SystemGPSProperties(winrt.system.Object):
|
|
|
622
660
|
@_property
|
|
623
661
|
def longitude_decimal(self) -> str: ...
|
|
624
662
|
|
|
663
|
+
@typing.final
|
|
625
664
|
class SystemImageProperties(winrt.system.Object):
|
|
626
665
|
@staticmethod
|
|
627
666
|
def _from(obj: winrt.system.Object, /) -> SystemImageProperties: ...
|
|
@@ -630,6 +669,7 @@ class SystemImageProperties(winrt.system.Object):
|
|
|
630
669
|
@_property
|
|
631
670
|
def vertical_size(self) -> str: ...
|
|
632
671
|
|
|
672
|
+
@typing.final
|
|
633
673
|
class SystemMediaProperties(winrt.system.Object):
|
|
634
674
|
@staticmethod
|
|
635
675
|
def _from(obj: winrt.system.Object, /) -> SystemMediaProperties: ...
|
|
@@ -646,6 +686,7 @@ class SystemMediaProperties(winrt.system.Object):
|
|
|
646
686
|
@_property
|
|
647
687
|
def year(self) -> str: ...
|
|
648
688
|
|
|
689
|
+
@typing.final
|
|
649
690
|
class SystemMusicProperties(winrt.system.Object):
|
|
650
691
|
@staticmethod
|
|
651
692
|
def _from(obj: winrt.system.Object, /) -> SystemMusicProperties: ...
|
|
@@ -666,6 +707,7 @@ class SystemMusicProperties(winrt.system.Object):
|
|
|
666
707
|
@_property
|
|
667
708
|
def track_number(self) -> str: ...
|
|
668
709
|
|
|
710
|
+
@typing.final
|
|
669
711
|
class SystemPhotoProperties(winrt.system.Object):
|
|
670
712
|
@staticmethod
|
|
671
713
|
def _from(obj: winrt.system.Object, /) -> SystemPhotoProperties: ...
|
|
@@ -680,6 +722,7 @@ class SystemPhotoProperties(winrt.system.Object):
|
|
|
680
722
|
@_property
|
|
681
723
|
def people_names(self) -> str: ...
|
|
682
724
|
|
|
725
|
+
@typing.final
|
|
683
726
|
class SystemProperties_Static(type):
|
|
684
727
|
@_property
|
|
685
728
|
def audio(cls) -> typing.Optional[SystemAudioProperties]: ...
|
|
@@ -708,10 +751,12 @@ class SystemProperties_Static(type):
|
|
|
708
751
|
@_property
|
|
709
752
|
def video(cls) -> typing.Optional[SystemVideoProperties]: ...
|
|
710
753
|
|
|
754
|
+
@typing.final
|
|
711
755
|
class SystemProperties(winrt.system.Object, metaclass=SystemProperties_Static):
|
|
712
756
|
@staticmethod
|
|
713
757
|
def _from(obj: winrt.system.Object, /) -> SystemProperties: ...
|
|
714
758
|
|
|
759
|
+
@typing.final
|
|
715
760
|
class SystemVideoProperties(winrt.system.Object):
|
|
716
761
|
@staticmethod
|
|
717
762
|
def _from(obj: winrt.system.Object, /) -> SystemVideoProperties: ...
|
|
@@ -726,10 +771,12 @@ class SystemVideoProperties(winrt.system.Object):
|
|
|
726
771
|
@_property
|
|
727
772
|
def total_bitrate(self) -> str: ...
|
|
728
773
|
|
|
774
|
+
@typing.final
|
|
729
775
|
class UserDataPaths_Static(type):
|
|
730
776
|
def get_default(cls) -> typing.Optional[UserDataPaths]: ...
|
|
731
777
|
def get_for_user(cls, user: typing.Optional[winrt.windows.system.User], /) -> typing.Optional[UserDataPaths]: ...
|
|
732
778
|
|
|
779
|
+
@typing.final
|
|
733
780
|
class UserDataPaths(winrt.system.Object, metaclass=UserDataPaths_Static):
|
|
734
781
|
@staticmethod
|
|
735
782
|
def _from(obj: winrt.system.Object, /) -> UserDataPaths: ...
|
|
@@ -772,6 +819,7 @@ class UserDataPaths(winrt.system.Object, metaclass=UserDataPaths_Static):
|
|
|
772
819
|
@_property
|
|
773
820
|
def videos(self) -> str: ...
|
|
774
821
|
|
|
822
|
+
@typing.final
|
|
775
823
|
class IStorageFile(winrt.system.Object):
|
|
776
824
|
@staticmethod
|
|
777
825
|
def _from(obj: winrt.system.Object, /) -> IStorageFile: ...
|
|
@@ -816,18 +864,21 @@ class IStorageFile(winrt.system.Object):
|
|
|
816
864
|
@_property
|
|
817
865
|
def path(self) -> str: ...
|
|
818
866
|
|
|
867
|
+
@typing.final
|
|
819
868
|
class IStorageFile2(winrt.system.Object):
|
|
820
869
|
@staticmethod
|
|
821
870
|
def _from(obj: winrt.system.Object, /) -> IStorageFile2: ...
|
|
822
871
|
def open_async(self, access_mode: FileAccessMode, options: StorageOpenOptions, /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.storage.streams.IRandomAccessStream]: ...
|
|
823
872
|
def open_transacted_write_async(self, options: StorageOpenOptions, /) -> winrt.windows.foundation.IAsyncOperation[StorageStreamTransaction]: ...
|
|
824
873
|
|
|
874
|
+
@typing.final
|
|
825
875
|
class IStorageFilePropertiesWithAvailability(winrt.system.Object):
|
|
826
876
|
@staticmethod
|
|
827
877
|
def _from(obj: winrt.system.Object, /) -> IStorageFilePropertiesWithAvailability: ...
|
|
828
878
|
@_property
|
|
829
879
|
def is_available(self) -> bool: ...
|
|
830
880
|
|
|
881
|
+
@typing.final
|
|
831
882
|
class IStorageFolder(winrt.system.Object):
|
|
832
883
|
@staticmethod
|
|
833
884
|
def _from(obj: winrt.system.Object, /) -> IStorageFolder: ...
|
|
@@ -864,11 +915,13 @@ class IStorageFolder(winrt.system.Object):
|
|
|
864
915
|
@_property
|
|
865
916
|
def path(self) -> str: ...
|
|
866
917
|
|
|
918
|
+
@typing.final
|
|
867
919
|
class IStorageFolder2(winrt.system.Object):
|
|
868
920
|
@staticmethod
|
|
869
921
|
def _from(obj: winrt.system.Object, /) -> IStorageFolder2: ...
|
|
870
922
|
def try_get_item_async(self, name: str, /) -> winrt.windows.foundation.IAsyncOperation[IStorageItem]: ...
|
|
871
923
|
|
|
924
|
+
@typing.final
|
|
872
925
|
class IStorageItem(winrt.system.Object):
|
|
873
926
|
@staticmethod
|
|
874
927
|
def _from(obj: winrt.system.Object, /) -> IStorageItem: ...
|
|
@@ -891,6 +944,7 @@ class IStorageItem(winrt.system.Object):
|
|
|
891
944
|
@_property
|
|
892
945
|
def path(self) -> str: ...
|
|
893
946
|
|
|
947
|
+
@typing.final
|
|
894
948
|
class IStorageItem2(winrt.system.Object):
|
|
895
949
|
@staticmethod
|
|
896
950
|
def _from(obj: winrt.system.Object, /) -> IStorageItem2: ...
|
|
@@ -915,6 +969,7 @@ class IStorageItem2(winrt.system.Object):
|
|
|
915
969
|
@_property
|
|
916
970
|
def path(self) -> str: ...
|
|
917
971
|
|
|
972
|
+
@typing.final
|
|
918
973
|
class IStorageItemProperties(winrt.system.Object):
|
|
919
974
|
@staticmethod
|
|
920
975
|
def _from(obj: winrt.system.Object, /) -> IStorageItemProperties: ...
|
|
@@ -933,6 +988,7 @@ class IStorageItemProperties(winrt.system.Object):
|
|
|
933
988
|
@_property
|
|
934
989
|
def properties(self) -> typing.Optional[winrt.windows.storage.fileproperties.StorageItemContentProperties]: ...
|
|
935
990
|
|
|
991
|
+
@typing.final
|
|
936
992
|
class IStorageItemProperties2(winrt.system.Object):
|
|
937
993
|
@staticmethod
|
|
938
994
|
def _from(obj: winrt.system.Object, /) -> IStorageItemProperties2: ...
|
|
@@ -957,6 +1013,7 @@ class IStorageItemProperties2(winrt.system.Object):
|
|
|
957
1013
|
@_property
|
|
958
1014
|
def properties(self) -> typing.Optional[winrt.windows.storage.fileproperties.StorageItemContentProperties]: ...
|
|
959
1015
|
|
|
1016
|
+
@typing.final
|
|
960
1017
|
class IStorageItemPropertiesWithProvider(winrt.system.Object):
|
|
961
1018
|
@staticmethod
|
|
962
1019
|
def _from(obj: winrt.system.Object, /) -> IStorageItemPropertiesWithProvider: ...
|
|
@@ -977,6 +1034,7 @@ class IStorageItemPropertiesWithProvider(winrt.system.Object):
|
|
|
977
1034
|
@_property
|
|
978
1035
|
def properties(self) -> typing.Optional[winrt.windows.storage.fileproperties.StorageItemContentProperties]: ...
|
|
979
1036
|
|
|
1037
|
+
@typing.final
|
|
980
1038
|
class IStreamedFileDataRequest(winrt.system.Object):
|
|
981
1039
|
@staticmethod
|
|
982
1040
|
def _from(obj: winrt.system.Object, /) -> IStreamedFileDataRequest: ...
|
|
File without changes
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Storage
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
|
-
Project-URL:
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
7
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
9
|
Classifier: Operating System :: Microsoft :: Windows
|
|
9
10
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -11,7 +12,15 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
11
12
|
Classifier: Intended Audience :: Developers
|
|
12
13
|
Requires-Python: <3.13,>=3.9
|
|
13
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.0.1
|
|
14
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.FileProperties[all]==2.0.1; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Provider[all]==2.0.1; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Storage.Search[all]==2.0.1; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
|
|
23
|
+
Requires-Dist: winrt-Windows.System[all]==2.0.1; extra == "all"
|
|
15
24
|
|
|
16
25
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
26
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_storage.pyi
|
|
9
9
|
winrt/windows/storage/__init__.py
|
|
10
|
+
winrt/windows/storage/py.typed
|
|
10
11
|
winrt_Windows.Storage.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Storage.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Storage.egg-info/dependency_links.txt
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
winrt-runtime==2.0.1
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Foundation[all]==2.0.1
|
|
5
|
+
winrt-Windows.Foundation.Collections[all]==2.0.1
|
|
6
|
+
winrt-Windows.Storage.FileProperties[all]==2.0.1
|
|
7
|
+
winrt-Windows.Storage.Provider[all]==2.0.1
|
|
8
|
+
winrt-Windows.Storage.Search[all]==2.0.1
|
|
9
|
+
winrt-Windows.Storage.Streams[all]==2.0.1
|
|
10
|
+
winrt-Windows.System[all]==2.0.1
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.1
|
|
4
|
-
winrt-Windows.Foundation.Collections[all]==2.0.0-beta.1
|
|
5
|
-
winrt-Windows.Storage.FileProperties[all]==2.0.0-beta.1
|
|
6
|
-
winrt-Windows.Storage.Provider[all]==2.0.0-beta.1
|
|
7
|
-
winrt-Windows.Storage.Search[all]==2.0.0-beta.1
|
|
8
|
-
winrt-Windows.Storage.Streams[all]==2.0.0-beta.1
|
|
9
|
-
winrt-Windows.System[all]==2.0.0-beta.1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.1
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_storage",
|
|
10
|
-
sources=["py.Windows.Storage.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
package_data={"winrt": ["*.pyi"]},
|
|
17
|
-
)
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.0.0-beta.1
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.1
|
|
5
|
-
winrt-Windows.Foundation.Collections[all]==2.0.0-beta.1
|
|
6
|
-
winrt-Windows.Storage.FileProperties[all]==2.0.0-beta.1
|
|
7
|
-
winrt-Windows.Storage.Provider[all]==2.0.0-beta.1
|
|
8
|
-
winrt-Windows.Storage.Search[all]==2.0.0-beta.1
|
|
9
|
-
winrt-Windows.Storage.Streams[all]==2.0.0-beta.1
|
|
10
|
-
winrt-Windows.System[all]==2.0.0-beta.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|