winrt-Windows.Data.Json 2.2.0__cp313-cp313-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.
- winrt/_winrt_windows_data_json.cp313-win32.pyd +0 -0
- winrt/_winrt_windows_data_json.pyi +177 -0
- winrt/windows/data/json/__init__.py +39 -0
- winrt/windows/data/json/py.typed +0 -0
- winrt_Windows.Data.Json-2.2.0.dist-info/METADATA +25 -0
- winrt_Windows.Data.Json-2.2.0.dist-info/RECORD +8 -0
- winrt_Windows.Data.Json-2.2.0.dist-info/WHEEL +5 -0
- winrt_Windows.Data.Json-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
13
|
+
|
|
14
|
+
from winrt.windows.data.json import JsonErrorStatus, JsonValueType
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class JsonArray_Static(type):
|
|
20
|
+
def parse(cls, input: str, /) -> typing.Optional[JsonArray]: ...
|
|
21
|
+
def try_parse(cls, input: str, /) -> typing.Tuple[bool, typing.Optional[JsonArray]]: ...
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class JsonArray(winrt.system.Object, winrt._winrt.MutableSequence[IJsonValue], metaclass=JsonArray_Static):
|
|
25
|
+
def __str__(self) -> str: ...
|
|
26
|
+
def __len__(self) -> int: ...
|
|
27
|
+
def __iter__(self) -> windows_foundation_collections.IIterator[IJsonValue]: ...
|
|
28
|
+
@typing.overload
|
|
29
|
+
def __getitem__(self, index: typing.SupportsIndex) -> IJsonValue: ...
|
|
30
|
+
@typing.overload
|
|
31
|
+
def __getitem__(self, index: slice) -> winrt.system.Array[IJsonValue]: ...
|
|
32
|
+
@typing.overload
|
|
33
|
+
def __delitem__(self, index: typing.SupportsIndex) -> None: ...
|
|
34
|
+
@typing.overload
|
|
35
|
+
def __delitem__(self, index: slice) -> None: ...
|
|
36
|
+
@typing.overload
|
|
37
|
+
def __setitem__(self, index: typing.SupportsIndex, value: IJsonValue) -> None: ...
|
|
38
|
+
@typing.overload
|
|
39
|
+
def __setitem__(self, index: slice, value: typing.Iterable[IJsonValue]) -> None: ...
|
|
40
|
+
@staticmethod
|
|
41
|
+
def _from(obj: winrt.system.Object, /) -> JsonArray: ...
|
|
42
|
+
def __new__(cls: typing.Type[JsonArray]) -> JsonArray: ...
|
|
43
|
+
def append(self, value: typing.Optional[IJsonValue], /) -> None: ...
|
|
44
|
+
def clear(self) -> None: ...
|
|
45
|
+
def first(self) -> typing.Optional[windows_foundation_collections.IIterator[IJsonValue]]: ...
|
|
46
|
+
def get_array(self) -> typing.Optional[JsonArray]: ...
|
|
47
|
+
def get_array_at(self, index: winrt.system.UInt32, /) -> typing.Optional[JsonArray]: ...
|
|
48
|
+
def get_at(self, index: winrt.system.UInt32, /) -> typing.Optional[IJsonValue]: ...
|
|
49
|
+
def get_boolean(self) -> bool: ...
|
|
50
|
+
def get_boolean_at(self, index: winrt.system.UInt32, /) -> bool: ...
|
|
51
|
+
def get_many(self, start_index: winrt.system.UInt32, items: winrt.system.Array[IJsonValue], /) -> winrt.system.UInt32: ...
|
|
52
|
+
def get_number(self) -> winrt.system.Double: ...
|
|
53
|
+
def get_number_at(self, index: winrt.system.UInt32, /) -> winrt.system.Double: ...
|
|
54
|
+
def get_object(self) -> typing.Optional[JsonObject]: ...
|
|
55
|
+
def get_object_at(self, index: winrt.system.UInt32, /) -> typing.Optional[JsonObject]: ...
|
|
56
|
+
def get_string(self) -> str: ...
|
|
57
|
+
def get_string_at(self, index: winrt.system.UInt32, /) -> str: ...
|
|
58
|
+
def get_view(self) -> typing.Optional[windows_foundation_collections.IVectorView[IJsonValue]]: ...
|
|
59
|
+
def index_of(self, value: typing.Optional[IJsonValue], /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
|
|
60
|
+
def insert_at(self, index: winrt.system.UInt32, value: typing.Optional[IJsonValue], /) -> None: ...
|
|
61
|
+
def remove_at(self, index: winrt.system.UInt32, /) -> None: ...
|
|
62
|
+
def remove_at_end(self) -> None: ...
|
|
63
|
+
def replace_all(self, items: winrt.system.Array[IJsonValue], /) -> None: ...
|
|
64
|
+
def set_at(self, index: winrt.system.UInt32, value: typing.Optional[IJsonValue], /) -> None: ...
|
|
65
|
+
def stringify(self) -> str: ...
|
|
66
|
+
def to_string(self) -> str: ...
|
|
67
|
+
@_property
|
|
68
|
+
def value_type(self) -> JsonValueType: ...
|
|
69
|
+
@_property
|
|
70
|
+
def size(self) -> winrt.system.UInt32: ...
|
|
71
|
+
|
|
72
|
+
@typing.final
|
|
73
|
+
class JsonError_Static(type):
|
|
74
|
+
def get_json_status(cls, hresult: winrt.system.Int32, /) -> JsonErrorStatus: ...
|
|
75
|
+
|
|
76
|
+
@typing.final
|
|
77
|
+
class JsonError(winrt.system.Object, metaclass=JsonError_Static):
|
|
78
|
+
pass
|
|
79
|
+
|
|
80
|
+
@typing.final
|
|
81
|
+
class JsonObject_Static(type):
|
|
82
|
+
def parse(cls, input: str, /) -> typing.Optional[JsonObject]: ...
|
|
83
|
+
def try_parse(cls, input: str, /) -> typing.Tuple[bool, typing.Optional[JsonObject]]: ...
|
|
84
|
+
|
|
85
|
+
@typing.final
|
|
86
|
+
class JsonObject(winrt.system.Object, winrt._winrt.MutableMapping[str, IJsonValue], metaclass=JsonObject_Static):
|
|
87
|
+
def __str__(self) -> str: ...
|
|
88
|
+
def __len__(self) -> int: ...
|
|
89
|
+
def __iter__(self) -> typing.Iterator[str]: ...
|
|
90
|
+
def __contains__(self, key: object) -> bool: ...
|
|
91
|
+
def __getitem__(self, key: str) -> IJsonValue: ...
|
|
92
|
+
def __setitem__(self, key: str, value: IJsonValue) -> None: ...
|
|
93
|
+
def __delitem__(self, key: str) -> None: ...
|
|
94
|
+
@staticmethod
|
|
95
|
+
def _from(obj: winrt.system.Object, /) -> JsonObject: ...
|
|
96
|
+
def __new__(cls: typing.Type[JsonObject]) -> JsonObject: ...
|
|
97
|
+
def clear(self) -> None: ...
|
|
98
|
+
def first(self) -> typing.Optional[windows_foundation_collections.IIterator[windows_foundation_collections.IKeyValuePair[str, IJsonValue]]]: ...
|
|
99
|
+
def get_array(self) -> typing.Optional[JsonArray]: ...
|
|
100
|
+
def get_boolean(self) -> bool: ...
|
|
101
|
+
@typing.overload
|
|
102
|
+
def get_named_array(self, name: str, /) -> typing.Optional[JsonArray]: ...
|
|
103
|
+
@typing.overload
|
|
104
|
+
def get_named_array(self, name: str, default_value: typing.Optional[JsonArray], /) -> typing.Optional[JsonArray]: ...
|
|
105
|
+
@typing.overload
|
|
106
|
+
def get_named_boolean(self, name: str, /) -> bool: ...
|
|
107
|
+
@typing.overload
|
|
108
|
+
def get_named_boolean(self, name: str, default_value: bool, /) -> bool: ...
|
|
109
|
+
@typing.overload
|
|
110
|
+
def get_named_number(self, name: str, /) -> winrt.system.Double: ...
|
|
111
|
+
@typing.overload
|
|
112
|
+
def get_named_number(self, name: str, default_value: winrt.system.Double, /) -> winrt.system.Double: ...
|
|
113
|
+
@typing.overload
|
|
114
|
+
def get_named_object(self, name: str, /) -> typing.Optional[JsonObject]: ...
|
|
115
|
+
@typing.overload
|
|
116
|
+
def get_named_object(self, name: str, default_value: typing.Optional[JsonObject], /) -> typing.Optional[JsonObject]: ...
|
|
117
|
+
@typing.overload
|
|
118
|
+
def get_named_string(self, name: str, /) -> str: ...
|
|
119
|
+
@typing.overload
|
|
120
|
+
def get_named_string(self, name: str, default_value: str, /) -> str: ...
|
|
121
|
+
@typing.overload
|
|
122
|
+
def get_named_value(self, name: str, /) -> typing.Optional[JsonValue]: ...
|
|
123
|
+
@typing.overload
|
|
124
|
+
def get_named_value(self, name: str, default_value: typing.Optional[JsonValue], /) -> typing.Optional[JsonValue]: ...
|
|
125
|
+
def get_number(self) -> winrt.system.Double: ...
|
|
126
|
+
def get_object(self) -> typing.Optional[JsonObject]: ...
|
|
127
|
+
def get_string(self) -> str: ...
|
|
128
|
+
def get_view(self) -> typing.Optional[windows_foundation_collections.IMapView[str, IJsonValue]]: ...
|
|
129
|
+
def has_key(self, key: str, /) -> bool: ...
|
|
130
|
+
def insert(self, key: str, value: typing.Optional[IJsonValue], /) -> bool: ...
|
|
131
|
+
def lookup(self, key: str, /) -> typing.Optional[IJsonValue]: ...
|
|
132
|
+
def remove(self, key: str, /) -> None: ...
|
|
133
|
+
def set_named_value(self, name: str, value: typing.Optional[IJsonValue], /) -> None: ...
|
|
134
|
+
def stringify(self) -> str: ...
|
|
135
|
+
def to_string(self) -> str: ...
|
|
136
|
+
@_property
|
|
137
|
+
def value_type(self) -> JsonValueType: ...
|
|
138
|
+
@_property
|
|
139
|
+
def size(self) -> winrt.system.UInt32: ...
|
|
140
|
+
|
|
141
|
+
@typing.final
|
|
142
|
+
class JsonValue_Static(type):
|
|
143
|
+
def create_boolean_value(cls, input: bool, /) -> typing.Optional[JsonValue]: ...
|
|
144
|
+
def create_null_value(cls) -> typing.Optional[JsonValue]: ...
|
|
145
|
+
def create_number_value(cls, input: winrt.system.Double, /) -> typing.Optional[JsonValue]: ...
|
|
146
|
+
def create_string_value(cls, input: str, /) -> typing.Optional[JsonValue]: ...
|
|
147
|
+
def parse(cls, input: str, /) -> typing.Optional[JsonValue]: ...
|
|
148
|
+
def try_parse(cls, input: str, /) -> typing.Tuple[bool, typing.Optional[JsonValue]]: ...
|
|
149
|
+
|
|
150
|
+
@typing.final
|
|
151
|
+
class JsonValue(winrt.system.Object, metaclass=JsonValue_Static):
|
|
152
|
+
def __str__(self) -> str: ...
|
|
153
|
+
@staticmethod
|
|
154
|
+
def _from(obj: winrt.system.Object, /) -> JsonValue: ...
|
|
155
|
+
def get_array(self) -> typing.Optional[JsonArray]: ...
|
|
156
|
+
def get_boolean(self) -> bool: ...
|
|
157
|
+
def get_number(self) -> winrt.system.Double: ...
|
|
158
|
+
def get_object(self) -> typing.Optional[JsonObject]: ...
|
|
159
|
+
def get_string(self) -> str: ...
|
|
160
|
+
def stringify(self) -> str: ...
|
|
161
|
+
def to_string(self) -> str: ...
|
|
162
|
+
@_property
|
|
163
|
+
def value_type(self) -> JsonValueType: ...
|
|
164
|
+
|
|
165
|
+
@typing.final
|
|
166
|
+
class IJsonValue(winrt.system.Object):
|
|
167
|
+
@staticmethod
|
|
168
|
+
def _from(obj: winrt.system.Object, /) -> IJsonValue: ...
|
|
169
|
+
def get_array(self) -> typing.Optional[JsonArray]: ...
|
|
170
|
+
def get_boolean(self) -> bool: ...
|
|
171
|
+
def get_number(self) -> winrt.system.Double: ...
|
|
172
|
+
def get_object(self) -> typing.Optional[JsonObject]: ...
|
|
173
|
+
def get_string(self) -> str: ...
|
|
174
|
+
def stringify(self) -> str: ...
|
|
175
|
+
@_property
|
|
176
|
+
def value_type(self) -> JsonValueType: ...
|
|
177
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
|
|
5
|
+
import winrt.system
|
|
6
|
+
from winrt import _winrt_windows_data_json
|
|
7
|
+
|
|
8
|
+
__all__ = [
|
|
9
|
+
"JsonErrorStatus",
|
|
10
|
+
"JsonValueType",
|
|
11
|
+
"JsonArray",
|
|
12
|
+
"JsonError",
|
|
13
|
+
"JsonObject",
|
|
14
|
+
"JsonValue",
|
|
15
|
+
"IJsonValue",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
class JsonErrorStatus(enum.IntEnum):
|
|
19
|
+
UNKNOWN = 0
|
|
20
|
+
INVALID_JSON_STRING = 1
|
|
21
|
+
INVALID_JSON_NUMBER = 2
|
|
22
|
+
JSON_VALUE_NOT_FOUND = 3
|
|
23
|
+
IMPLEMENTATION_LIMIT = 4
|
|
24
|
+
|
|
25
|
+
class JsonValueType(enum.IntEnum):
|
|
26
|
+
NULL = 0
|
|
27
|
+
BOOLEAN = 1
|
|
28
|
+
NUMBER = 2
|
|
29
|
+
STRING = 3
|
|
30
|
+
ARRAY = 4
|
|
31
|
+
OBJECT = 5
|
|
32
|
+
|
|
33
|
+
JsonArray = _winrt_windows_data_json.JsonArray
|
|
34
|
+
winrt.system._mixin_mutable_sequence(JsonArray)
|
|
35
|
+
JsonError = _winrt_windows_data_json.JsonError
|
|
36
|
+
JsonObject = _winrt_windows_data_json.JsonObject
|
|
37
|
+
winrt.system._mixin_mutable_mapping(JsonObject)
|
|
38
|
+
JsonValue = _winrt_windows_data_json.JsonValue
|
|
39
|
+
IJsonValue = _winrt_windows_data_json.IJsonValue
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Data.Json
|
|
3
|
+
Version: 2.2.0
|
|
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.14,>=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime ==2.2.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
|
|
18
|
+
|
|
19
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
|
+
|
|
21
|
+
# winrt-Windows.Data.Json
|
|
22
|
+
|
|
23
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Data.Json` namespace.
|
|
24
|
+
|
|
25
|
+
This package provides the `winrt.windows.data.json` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_data_json.cp313-win32.pyd,sha256=-uSYdJVXyV5TLvQggetWD7cJer8_yGwgXPh5Uzc9AzY,128000
|
|
2
|
+
winrt/_winrt_windows_data_json.pyi,sha256=R0tuygWSAOwCNeYBbNKKkxJ0LbNBgovobIekUl5t6dg,8544
|
|
3
|
+
winrt/windows/data/json/__init__.py,sha256=RgKwnn3i1C27rSrSei1gFyHJvmgM_8xd_9V9jQLmMks,931
|
|
4
|
+
winrt/windows/data/json/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_Windows.Data.Json-2.2.0.dist-info/METADATA,sha256=M2r6dK6-a5ERjRiB3dHrJmcJ5fGPsCbIhmhAU5Mp4D0,1031
|
|
6
|
+
winrt_Windows.Data.Json-2.2.0.dist-info/WHEEL,sha256=rHSPOKLHVf857fDiba9Pzuf1iCvh9pcRQ5-VWQYz3ms,97
|
|
7
|
+
winrt_Windows.Data.Json-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_Windows.Data.Json-2.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|