winrt-Windows.Networking.Connectivity 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_networking_connectivity.cp313-win32.pyd +0 -0
- winrt/_winrt_windows_networking_connectivity.pyi +401 -0
- winrt/windows/networking/connectivity/__init__.py +200 -0
- winrt/windows/networking/connectivity/py.typed +0 -0
- winrt_Windows.Networking.Connectivity-2.2.0.dist-info/METADATA +28 -0
- winrt_Windows.Networking.Connectivity-2.2.0.dist-info/RECORD +8 -0
- winrt_Windows.Networking.Connectivity-2.2.0.dist-info/WHEEL +5 -0
- winrt_Windows.Networking.Connectivity-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,401 @@
|
|
|
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 as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.networking as windows_networking
|
|
15
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
16
|
+
|
|
17
|
+
from winrt.windows.networking.connectivity import CellularApnAuthenticationType, ConnectionProfileDeleteStatus, DataUsageGranularity, DomainAuthenticationKind, DomainConnectivityLevel, NetworkAuthenticationType, NetworkConnectivityLevel, NetworkCostType, NetworkEncryptionType, NetworkTypes, RoamingStates, TriStates, WwanDataClass, WwanNetworkIPKind, WwanNetworkRegistrationState
|
|
18
|
+
from winrt.windows.networking.connectivity import NetworkStatusChangedEventHandler
|
|
19
|
+
|
|
20
|
+
Self = typing.TypeVar('Self')
|
|
21
|
+
|
|
22
|
+
@typing.final
|
|
23
|
+
class NetworkUsageStates:
|
|
24
|
+
roaming: TriStates
|
|
25
|
+
shared: TriStates
|
|
26
|
+
def __init__(self, roaming: TriStates, shared: TriStates) -> None: ...
|
|
27
|
+
|
|
28
|
+
@typing.final
|
|
29
|
+
class AttributedNetworkUsage(winrt.system.Object):
|
|
30
|
+
@staticmethod
|
|
31
|
+
def _from(obj: winrt.system.Object, /) -> AttributedNetworkUsage: ...
|
|
32
|
+
@_property
|
|
33
|
+
def attribution_id(self) -> str: ...
|
|
34
|
+
@_property
|
|
35
|
+
def attribution_name(self) -> str: ...
|
|
36
|
+
@_property
|
|
37
|
+
def attribution_thumbnail(self) -> typing.Optional[windows_storage_streams.IRandomAccessStreamReference]: ...
|
|
38
|
+
@_property
|
|
39
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
40
|
+
@_property
|
|
41
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
42
|
+
|
|
43
|
+
@typing.final
|
|
44
|
+
class CellularApnContext(winrt.system.Object):
|
|
45
|
+
@staticmethod
|
|
46
|
+
def _from(obj: winrt.system.Object, /) -> CellularApnContext: ...
|
|
47
|
+
def __new__(cls: typing.Type[CellularApnContext]) -> CellularApnContext: ...
|
|
48
|
+
@_property
|
|
49
|
+
def user_name(self) -> str: ...
|
|
50
|
+
@user_name.setter
|
|
51
|
+
def user_name(self, value: str) -> None: ...
|
|
52
|
+
@_property
|
|
53
|
+
def provider_id(self) -> str: ...
|
|
54
|
+
@provider_id.setter
|
|
55
|
+
def provider_id(self, value: str) -> None: ...
|
|
56
|
+
@_property
|
|
57
|
+
def password(self) -> str: ...
|
|
58
|
+
@password.setter
|
|
59
|
+
def password(self, value: str) -> None: ...
|
|
60
|
+
@_property
|
|
61
|
+
def is_compression_enabled(self) -> bool: ...
|
|
62
|
+
@is_compression_enabled.setter
|
|
63
|
+
def is_compression_enabled(self, value: bool) -> None: ...
|
|
64
|
+
@_property
|
|
65
|
+
def authentication_type(self) -> CellularApnAuthenticationType: ...
|
|
66
|
+
@authentication_type.setter
|
|
67
|
+
def authentication_type(self, value: CellularApnAuthenticationType) -> None: ...
|
|
68
|
+
@_property
|
|
69
|
+
def access_point_name(self) -> str: ...
|
|
70
|
+
@access_point_name.setter
|
|
71
|
+
def access_point_name(self, value: str) -> None: ...
|
|
72
|
+
@_property
|
|
73
|
+
def profile_name(self) -> str: ...
|
|
74
|
+
@profile_name.setter
|
|
75
|
+
def profile_name(self, value: str) -> None: ...
|
|
76
|
+
|
|
77
|
+
@typing.final
|
|
78
|
+
class ConnectionCost(winrt.system.Object):
|
|
79
|
+
@staticmethod
|
|
80
|
+
def _from(obj: winrt.system.Object, /) -> ConnectionCost: ...
|
|
81
|
+
@_property
|
|
82
|
+
def approaching_data_limit(self) -> bool: ...
|
|
83
|
+
@_property
|
|
84
|
+
def network_cost_type(self) -> NetworkCostType: ...
|
|
85
|
+
@_property
|
|
86
|
+
def over_data_limit(self) -> bool: ...
|
|
87
|
+
@_property
|
|
88
|
+
def roaming(self) -> bool: ...
|
|
89
|
+
@_property
|
|
90
|
+
def background_data_usage_restricted(self) -> bool: ...
|
|
91
|
+
|
|
92
|
+
@typing.final
|
|
93
|
+
class ConnectionProfile(winrt.system.Object):
|
|
94
|
+
@staticmethod
|
|
95
|
+
def _from(obj: winrt.system.Object, /) -> ConnectionProfile: ...
|
|
96
|
+
def get_attributed_network_usage_async(self, start_time: datetime.datetime, end_time: datetime.datetime, states: NetworkUsageStates, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[AttributedNetworkUsage]]: ...
|
|
97
|
+
def get_connection_cost(self) -> typing.Optional[ConnectionCost]: ...
|
|
98
|
+
def get_connectivity_intervals_async(self, start_time: datetime.datetime, end_time: datetime.datetime, states: NetworkUsageStates, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[ConnectivityInterval]]: ...
|
|
99
|
+
def get_data_plan_status(self) -> typing.Optional[DataPlanStatus]: ...
|
|
100
|
+
def get_domain_connectivity_level(self) -> DomainConnectivityLevel: ...
|
|
101
|
+
@typing.overload
|
|
102
|
+
def get_local_usage(self, start_time: datetime.datetime, end_time: datetime.datetime, /) -> typing.Optional[DataUsage]: ...
|
|
103
|
+
@typing.overload
|
|
104
|
+
def get_local_usage(self, start_time: datetime.datetime, end_time: datetime.datetime, states: RoamingStates, /) -> typing.Optional[DataUsage]: ...
|
|
105
|
+
def get_network_connectivity_level(self) -> NetworkConnectivityLevel: ...
|
|
106
|
+
def get_network_names(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
107
|
+
def get_network_usage_async(self, start_time: datetime.datetime, end_time: datetime.datetime, granularity: DataUsageGranularity, states: NetworkUsageStates, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[NetworkUsage]]: ...
|
|
108
|
+
def get_provider_network_usage_async(self, start_time: datetime.datetime, end_time: datetime.datetime, states: NetworkUsageStates, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[ProviderNetworkUsage]]: ...
|
|
109
|
+
def get_signal_bars(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
|
|
110
|
+
def is_domain_authenticated_by(self, kind: DomainAuthenticationKind, /) -> bool: ...
|
|
111
|
+
def try_delete_async(self) -> windows_foundation.IAsyncOperation[ConnectionProfileDeleteStatus]: ...
|
|
112
|
+
@_property
|
|
113
|
+
def network_adapter(self) -> typing.Optional[NetworkAdapter]: ...
|
|
114
|
+
@_property
|
|
115
|
+
def network_security_settings(self) -> typing.Optional[NetworkSecuritySettings]: ...
|
|
116
|
+
@_property
|
|
117
|
+
def profile_name(self) -> str: ...
|
|
118
|
+
@_property
|
|
119
|
+
def is_wlan_connection_profile(self) -> bool: ...
|
|
120
|
+
@_property
|
|
121
|
+
def is_wwan_connection_profile(self) -> bool: ...
|
|
122
|
+
@_property
|
|
123
|
+
def service_provider_guid(self) -> typing.Optional[typing.Optional[_uuid.UUID]]: ...
|
|
124
|
+
@_property
|
|
125
|
+
def wlan_connection_profile_details(self) -> typing.Optional[WlanConnectionProfileDetails]: ...
|
|
126
|
+
@_property
|
|
127
|
+
def wwan_connection_profile_details(self) -> typing.Optional[WwanConnectionProfileDetails]: ...
|
|
128
|
+
@_property
|
|
129
|
+
def can_delete(self) -> bool: ...
|
|
130
|
+
|
|
131
|
+
@typing.final
|
|
132
|
+
class ConnectionProfileFilter(winrt.system.Object):
|
|
133
|
+
@staticmethod
|
|
134
|
+
def _from(obj: winrt.system.Object, /) -> ConnectionProfileFilter: ...
|
|
135
|
+
def __new__(cls: typing.Type[ConnectionProfileFilter]) -> ConnectionProfileFilter: ...
|
|
136
|
+
@_property
|
|
137
|
+
def service_provider_guid(self) -> typing.Optional[typing.Optional[_uuid.UUID]]: ...
|
|
138
|
+
@service_provider_guid.setter
|
|
139
|
+
def service_provider_guid(self, value: typing.Optional[typing.Optional[_uuid.UUID]]) -> None: ...
|
|
140
|
+
@_property
|
|
141
|
+
def network_cost_type(self) -> NetworkCostType: ...
|
|
142
|
+
@network_cost_type.setter
|
|
143
|
+
def network_cost_type(self, value: NetworkCostType) -> None: ...
|
|
144
|
+
@_property
|
|
145
|
+
def is_wwan_connection_profile(self) -> bool: ...
|
|
146
|
+
@is_wwan_connection_profile.setter
|
|
147
|
+
def is_wwan_connection_profile(self, value: bool) -> None: ...
|
|
148
|
+
@_property
|
|
149
|
+
def is_wlan_connection_profile(self) -> bool: ...
|
|
150
|
+
@is_wlan_connection_profile.setter
|
|
151
|
+
def is_wlan_connection_profile(self, value: bool) -> None: ...
|
|
152
|
+
@_property
|
|
153
|
+
def is_connected(self) -> bool: ...
|
|
154
|
+
@is_connected.setter
|
|
155
|
+
def is_connected(self, value: bool) -> None: ...
|
|
156
|
+
@_property
|
|
157
|
+
def is_roaming(self) -> typing.Optional[typing.Optional[bool]]: ...
|
|
158
|
+
@is_roaming.setter
|
|
159
|
+
def is_roaming(self, value: typing.Optional[typing.Optional[bool]]) -> None: ...
|
|
160
|
+
@_property
|
|
161
|
+
def is_over_data_limit(self) -> typing.Optional[typing.Optional[bool]]: ...
|
|
162
|
+
@is_over_data_limit.setter
|
|
163
|
+
def is_over_data_limit(self, value: typing.Optional[typing.Optional[bool]]) -> None: ...
|
|
164
|
+
@_property
|
|
165
|
+
def is_background_data_usage_restricted(self) -> typing.Optional[typing.Optional[bool]]: ...
|
|
166
|
+
@is_background_data_usage_restricted.setter
|
|
167
|
+
def is_background_data_usage_restricted(self, value: typing.Optional[typing.Optional[bool]]) -> None: ...
|
|
168
|
+
@_property
|
|
169
|
+
def raw_data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
|
|
170
|
+
@_property
|
|
171
|
+
def purpose_guid(self) -> typing.Optional[typing.Optional[_uuid.UUID]]: ...
|
|
172
|
+
@purpose_guid.setter
|
|
173
|
+
def purpose_guid(self, value: typing.Optional[typing.Optional[_uuid.UUID]]) -> None: ...
|
|
174
|
+
|
|
175
|
+
@typing.final
|
|
176
|
+
class ConnectionSession(winrt.system.Object):
|
|
177
|
+
def __enter__(self: Self) -> Self: ...
|
|
178
|
+
def __exit__(self, *args) -> None: ...
|
|
179
|
+
@staticmethod
|
|
180
|
+
def _from(obj: winrt.system.Object, /) -> ConnectionSession: ...
|
|
181
|
+
def close(self) -> None: ...
|
|
182
|
+
@_property
|
|
183
|
+
def connection_profile(self) -> typing.Optional[ConnectionProfile]: ...
|
|
184
|
+
|
|
185
|
+
@typing.final
|
|
186
|
+
class ConnectivityInterval(winrt.system.Object):
|
|
187
|
+
@staticmethod
|
|
188
|
+
def _from(obj: winrt.system.Object, /) -> ConnectivityInterval: ...
|
|
189
|
+
@_property
|
|
190
|
+
def connection_duration(self) -> datetime.timedelta: ...
|
|
191
|
+
@_property
|
|
192
|
+
def start_time(self) -> datetime.datetime: ...
|
|
193
|
+
|
|
194
|
+
@typing.final
|
|
195
|
+
class ConnectivityManager_Static(type):
|
|
196
|
+
def acquire_connection_async(cls, cellular_apn_context: typing.Optional[CellularApnContext], /) -> windows_foundation.IAsyncOperation[ConnectionSession]: ...
|
|
197
|
+
def add_http_route_policy(cls, route_policy: typing.Optional[RoutePolicy], /) -> None: ...
|
|
198
|
+
def remove_http_route_policy(cls, route_policy: typing.Optional[RoutePolicy], /) -> None: ...
|
|
199
|
+
|
|
200
|
+
@typing.final
|
|
201
|
+
class ConnectivityManager(winrt.system.Object, metaclass=ConnectivityManager_Static):
|
|
202
|
+
pass
|
|
203
|
+
|
|
204
|
+
@typing.final
|
|
205
|
+
class DataPlanStatus(winrt.system.Object):
|
|
206
|
+
@staticmethod
|
|
207
|
+
def _from(obj: winrt.system.Object, /) -> DataPlanStatus: ...
|
|
208
|
+
@_property
|
|
209
|
+
def data_limit_in_megabytes(self) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
|
|
210
|
+
@_property
|
|
211
|
+
def data_plan_usage(self) -> typing.Optional[DataPlanUsage]: ...
|
|
212
|
+
@_property
|
|
213
|
+
def inbound_bits_per_second(self) -> typing.Optional[typing.Optional[winrt.system.UInt64]]: ...
|
|
214
|
+
@_property
|
|
215
|
+
def max_transfer_size_in_megabytes(self) -> typing.Optional[typing.Optional[winrt.system.UInt32]]: ...
|
|
216
|
+
@_property
|
|
217
|
+
def next_billing_cycle(self) -> typing.Optional[typing.Optional[datetime.datetime]]: ...
|
|
218
|
+
@_property
|
|
219
|
+
def outbound_bits_per_second(self) -> typing.Optional[typing.Optional[winrt.system.UInt64]]: ...
|
|
220
|
+
|
|
221
|
+
@typing.final
|
|
222
|
+
class DataPlanUsage(winrt.system.Object):
|
|
223
|
+
@staticmethod
|
|
224
|
+
def _from(obj: winrt.system.Object, /) -> DataPlanUsage: ...
|
|
225
|
+
@_property
|
|
226
|
+
def last_sync_time(self) -> datetime.datetime: ...
|
|
227
|
+
@_property
|
|
228
|
+
def megabytes_used(self) -> winrt.system.UInt32: ...
|
|
229
|
+
|
|
230
|
+
@typing.final
|
|
231
|
+
class DataUsage(winrt.system.Object):
|
|
232
|
+
@staticmethod
|
|
233
|
+
def _from(obj: winrt.system.Object, /) -> DataUsage: ...
|
|
234
|
+
@_property
|
|
235
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
236
|
+
@_property
|
|
237
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
238
|
+
|
|
239
|
+
@typing.final
|
|
240
|
+
class IPInformation(winrt.system.Object):
|
|
241
|
+
@staticmethod
|
|
242
|
+
def _from(obj: winrt.system.Object, /) -> IPInformation: ...
|
|
243
|
+
@_property
|
|
244
|
+
def network_adapter(self) -> typing.Optional[NetworkAdapter]: ...
|
|
245
|
+
@_property
|
|
246
|
+
def prefix_length(self) -> typing.Optional[typing.Optional[winrt.system.UInt8]]: ...
|
|
247
|
+
|
|
248
|
+
@typing.final
|
|
249
|
+
class LanIdentifier(winrt.system.Object):
|
|
250
|
+
@staticmethod
|
|
251
|
+
def _from(obj: winrt.system.Object, /) -> LanIdentifier: ...
|
|
252
|
+
@_property
|
|
253
|
+
def infrastructure_id(self) -> typing.Optional[LanIdentifierData]: ...
|
|
254
|
+
@_property
|
|
255
|
+
def network_adapter_id(self) -> _uuid.UUID: ...
|
|
256
|
+
@_property
|
|
257
|
+
def port_id(self) -> typing.Optional[LanIdentifierData]: ...
|
|
258
|
+
|
|
259
|
+
@typing.final
|
|
260
|
+
class LanIdentifierData(winrt.system.Object):
|
|
261
|
+
@staticmethod
|
|
262
|
+
def _from(obj: winrt.system.Object, /) -> LanIdentifierData: ...
|
|
263
|
+
@_property
|
|
264
|
+
def type(self) -> winrt.system.UInt32: ...
|
|
265
|
+
@_property
|
|
266
|
+
def value(self) -> typing.Optional[windows_foundation_collections.IVectorView[winrt.system.UInt8]]: ...
|
|
267
|
+
|
|
268
|
+
@typing.final
|
|
269
|
+
class NetworkAdapter(winrt.system.Object):
|
|
270
|
+
@staticmethod
|
|
271
|
+
def _from(obj: winrt.system.Object, /) -> NetworkAdapter: ...
|
|
272
|
+
def get_connected_profile_async(self) -> windows_foundation.IAsyncOperation[ConnectionProfile]: ...
|
|
273
|
+
@_property
|
|
274
|
+
def iana_interface_type(self) -> winrt.system.UInt32: ...
|
|
275
|
+
@_property
|
|
276
|
+
def inbound_max_bits_per_second(self) -> winrt.system.UInt64: ...
|
|
277
|
+
@_property
|
|
278
|
+
def network_adapter_id(self) -> _uuid.UUID: ...
|
|
279
|
+
@_property
|
|
280
|
+
def network_item(self) -> typing.Optional[NetworkItem]: ...
|
|
281
|
+
@_property
|
|
282
|
+
def outbound_max_bits_per_second(self) -> winrt.system.UInt64: ...
|
|
283
|
+
|
|
284
|
+
@typing.final
|
|
285
|
+
class NetworkInformation_Static(type):
|
|
286
|
+
def find_connection_profiles_async(cls, p_profile_filter: typing.Optional[ConnectionProfileFilter], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[ConnectionProfile]]: ...
|
|
287
|
+
def get_connection_profiles(cls) -> typing.Optional[windows_foundation_collections.IVectorView[ConnectionProfile]]: ...
|
|
288
|
+
def get_host_names(cls) -> typing.Optional[windows_foundation_collections.IVectorView[windows_networking.HostName]]: ...
|
|
289
|
+
def get_internet_connection_profile(cls) -> typing.Optional[ConnectionProfile]: ...
|
|
290
|
+
def get_lan_identifiers(cls) -> typing.Optional[windows_foundation_collections.IVectorView[LanIdentifier]]: ...
|
|
291
|
+
def get_proxy_configuration_async(cls, uri: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperation[ProxyConfiguration]: ...
|
|
292
|
+
def get_sorted_endpoint_pairs(cls, destination_list: typing.Iterable[windows_networking.EndpointPair], sort_options: windows_networking.HostNameSortOptions, /) -> typing.Optional[windows_foundation_collections.IVectorView[windows_networking.EndpointPair]]: ...
|
|
293
|
+
def add_network_status_changed(cls, network_status_handler: typing.Optional[NetworkStatusChangedEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
|
|
294
|
+
def remove_network_status_changed(cls, event_cookie: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
295
|
+
|
|
296
|
+
@typing.final
|
|
297
|
+
class NetworkInformation(winrt.system.Object, metaclass=NetworkInformation_Static):
|
|
298
|
+
pass
|
|
299
|
+
|
|
300
|
+
@typing.final
|
|
301
|
+
class NetworkItem(winrt.system.Object):
|
|
302
|
+
@staticmethod
|
|
303
|
+
def _from(obj: winrt.system.Object, /) -> NetworkItem: ...
|
|
304
|
+
def get_network_types(self) -> NetworkTypes: ...
|
|
305
|
+
@_property
|
|
306
|
+
def network_id(self) -> _uuid.UUID: ...
|
|
307
|
+
|
|
308
|
+
@typing.final
|
|
309
|
+
class NetworkSecuritySettings(winrt.system.Object):
|
|
310
|
+
@staticmethod
|
|
311
|
+
def _from(obj: winrt.system.Object, /) -> NetworkSecuritySettings: ...
|
|
312
|
+
@_property
|
|
313
|
+
def network_authentication_type(self) -> NetworkAuthenticationType: ...
|
|
314
|
+
@_property
|
|
315
|
+
def network_encryption_type(self) -> NetworkEncryptionType: ...
|
|
316
|
+
|
|
317
|
+
@typing.final
|
|
318
|
+
class NetworkStateChangeEventDetails(winrt.system.Object):
|
|
319
|
+
@staticmethod
|
|
320
|
+
def _from(obj: winrt.system.Object, /) -> NetworkStateChangeEventDetails: ...
|
|
321
|
+
@_property
|
|
322
|
+
def has_new_connection_cost(self) -> bool: ...
|
|
323
|
+
@_property
|
|
324
|
+
def has_new_domain_connectivity_level(self) -> bool: ...
|
|
325
|
+
@_property
|
|
326
|
+
def has_new_host_name_list(self) -> bool: ...
|
|
327
|
+
@_property
|
|
328
|
+
def has_new_internet_connection_profile(self) -> bool: ...
|
|
329
|
+
@_property
|
|
330
|
+
def has_new_network_connectivity_level(self) -> bool: ...
|
|
331
|
+
@_property
|
|
332
|
+
def has_new_wwan_registration_state(self) -> bool: ...
|
|
333
|
+
@_property
|
|
334
|
+
def has_new_tethering_client_count(self) -> bool: ...
|
|
335
|
+
@_property
|
|
336
|
+
def has_new_tethering_operational_state(self) -> bool: ...
|
|
337
|
+
|
|
338
|
+
@typing.final
|
|
339
|
+
class NetworkUsage(winrt.system.Object):
|
|
340
|
+
@staticmethod
|
|
341
|
+
def _from(obj: winrt.system.Object, /) -> NetworkUsage: ...
|
|
342
|
+
@_property
|
|
343
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
344
|
+
@_property
|
|
345
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
346
|
+
@_property
|
|
347
|
+
def connection_duration(self) -> datetime.timedelta: ...
|
|
348
|
+
|
|
349
|
+
@typing.final
|
|
350
|
+
class ProviderNetworkUsage(winrt.system.Object):
|
|
351
|
+
@staticmethod
|
|
352
|
+
def _from(obj: winrt.system.Object, /) -> ProviderNetworkUsage: ...
|
|
353
|
+
@_property
|
|
354
|
+
def bytes_received(self) -> winrt.system.UInt64: ...
|
|
355
|
+
@_property
|
|
356
|
+
def bytes_sent(self) -> winrt.system.UInt64: ...
|
|
357
|
+
@_property
|
|
358
|
+
def provider_id(self) -> str: ...
|
|
359
|
+
|
|
360
|
+
@typing.final
|
|
361
|
+
class ProxyConfiguration(winrt.system.Object):
|
|
362
|
+
@staticmethod
|
|
363
|
+
def _from(obj: winrt.system.Object, /) -> ProxyConfiguration: ...
|
|
364
|
+
@_property
|
|
365
|
+
def can_connect_directly(self) -> bool: ...
|
|
366
|
+
@_property
|
|
367
|
+
def proxy_uris(self) -> typing.Optional[windows_foundation_collections.IVectorView[windows_foundation.Uri]]: ...
|
|
368
|
+
|
|
369
|
+
@typing.final
|
|
370
|
+
class RoutePolicy(winrt.system.Object):
|
|
371
|
+
@staticmethod
|
|
372
|
+
def _from(obj: winrt.system.Object, /) -> RoutePolicy: ...
|
|
373
|
+
def __new__(cls: typing.Type[RoutePolicy], connection_profile: typing.Optional[ConnectionProfile], host_name: typing.Optional[windows_networking.HostName], type: windows_networking.DomainNameType) -> RoutePolicy: ...
|
|
374
|
+
@_property
|
|
375
|
+
def connection_profile(self) -> typing.Optional[ConnectionProfile]: ...
|
|
376
|
+
@_property
|
|
377
|
+
def host_name(self) -> typing.Optional[windows_networking.HostName]: ...
|
|
378
|
+
@_property
|
|
379
|
+
def host_name_type(self) -> windows_networking.DomainNameType: ...
|
|
380
|
+
|
|
381
|
+
@typing.final
|
|
382
|
+
class WlanConnectionProfileDetails(winrt.system.Object):
|
|
383
|
+
@staticmethod
|
|
384
|
+
def _from(obj: winrt.system.Object, /) -> WlanConnectionProfileDetails: ...
|
|
385
|
+
def get_connected_ssid(self) -> str: ...
|
|
386
|
+
|
|
387
|
+
@typing.final
|
|
388
|
+
class WwanConnectionProfileDetails(winrt.system.Object):
|
|
389
|
+
@staticmethod
|
|
390
|
+
def _from(obj: winrt.system.Object, /) -> WwanConnectionProfileDetails: ...
|
|
391
|
+
def get_current_data_class(self) -> WwanDataClass: ...
|
|
392
|
+
def get_network_registration_state(self) -> WwanNetworkRegistrationState: ...
|
|
393
|
+
@_property
|
|
394
|
+
def access_point_name(self) -> str: ...
|
|
395
|
+
@_property
|
|
396
|
+
def home_provider_id(self) -> str: ...
|
|
397
|
+
@_property
|
|
398
|
+
def i_p_kind(self) -> WwanNetworkIPKind: ...
|
|
399
|
+
@_property
|
|
400
|
+
def purpose_guids(self) -> typing.Optional[windows_foundation_collections.IVectorView[_uuid.UUID]]: ...
|
|
401
|
+
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
import uuid as _uuid
|
|
6
|
+
|
|
7
|
+
import winrt.system
|
|
8
|
+
from winrt import _winrt_windows_networking_connectivity
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"CellularApnAuthenticationType",
|
|
12
|
+
"ConnectionProfileDeleteStatus",
|
|
13
|
+
"DataUsageGranularity",
|
|
14
|
+
"DomainAuthenticationKind",
|
|
15
|
+
"DomainConnectivityLevel",
|
|
16
|
+
"NetworkAuthenticationType",
|
|
17
|
+
"NetworkConnectivityLevel",
|
|
18
|
+
"NetworkCostType",
|
|
19
|
+
"NetworkEncryptionType",
|
|
20
|
+
"NetworkTypes",
|
|
21
|
+
"RoamingStates",
|
|
22
|
+
"TriStates",
|
|
23
|
+
"WwanDataClass",
|
|
24
|
+
"WwanNetworkIPKind",
|
|
25
|
+
"WwanNetworkRegistrationState",
|
|
26
|
+
"NetworkUsageStates",
|
|
27
|
+
"AttributedNetworkUsage",
|
|
28
|
+
"CellularApnContext",
|
|
29
|
+
"ConnectionCost",
|
|
30
|
+
"ConnectionProfile",
|
|
31
|
+
"ConnectionProfileFilter",
|
|
32
|
+
"ConnectionSession",
|
|
33
|
+
"ConnectivityInterval",
|
|
34
|
+
"ConnectivityManager",
|
|
35
|
+
"DataPlanStatus",
|
|
36
|
+
"DataPlanUsage",
|
|
37
|
+
"DataUsage",
|
|
38
|
+
"IPInformation",
|
|
39
|
+
"LanIdentifier",
|
|
40
|
+
"LanIdentifierData",
|
|
41
|
+
"NetworkAdapter",
|
|
42
|
+
"NetworkInformation",
|
|
43
|
+
"NetworkItem",
|
|
44
|
+
"NetworkSecuritySettings",
|
|
45
|
+
"NetworkStateChangeEventDetails",
|
|
46
|
+
"NetworkUsage",
|
|
47
|
+
"ProviderNetworkUsage",
|
|
48
|
+
"ProxyConfiguration",
|
|
49
|
+
"RoutePolicy",
|
|
50
|
+
"WlanConnectionProfileDetails",
|
|
51
|
+
"WwanConnectionProfileDetails",
|
|
52
|
+
"NetworkStatusChangedEventHandler",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
class CellularApnAuthenticationType(enum.IntEnum):
|
|
56
|
+
NONE = 0
|
|
57
|
+
PAP = 1
|
|
58
|
+
CHAP = 2
|
|
59
|
+
MSCHAPV2 = 3
|
|
60
|
+
|
|
61
|
+
class ConnectionProfileDeleteStatus(enum.IntEnum):
|
|
62
|
+
SUCCESS = 0
|
|
63
|
+
DENIED_BY_USER = 1
|
|
64
|
+
DENIED_BY_SYSTEM = 2
|
|
65
|
+
UNKNOWN_ERROR = 3
|
|
66
|
+
|
|
67
|
+
class DataUsageGranularity(enum.IntEnum):
|
|
68
|
+
PER_MINUTE = 0
|
|
69
|
+
PER_HOUR = 1
|
|
70
|
+
PER_DAY = 2
|
|
71
|
+
TOTAL = 3
|
|
72
|
+
|
|
73
|
+
class DomainAuthenticationKind(enum.IntEnum):
|
|
74
|
+
NONE = 0
|
|
75
|
+
LDAP = 1
|
|
76
|
+
TLS = 2
|
|
77
|
+
|
|
78
|
+
class DomainConnectivityLevel(enum.IntEnum):
|
|
79
|
+
NONE = 0
|
|
80
|
+
UNAUTHENTICATED = 1
|
|
81
|
+
AUTHENTICATED = 2
|
|
82
|
+
|
|
83
|
+
class NetworkAuthenticationType(enum.IntEnum):
|
|
84
|
+
NONE = 0
|
|
85
|
+
UNKNOWN = 1
|
|
86
|
+
OPEN80211 = 2
|
|
87
|
+
SHARED_KEY80211 = 3
|
|
88
|
+
WPA = 4
|
|
89
|
+
WPA_PSK = 5
|
|
90
|
+
WPA_NONE = 6
|
|
91
|
+
RSNA = 7
|
|
92
|
+
RSNA_PSK = 8
|
|
93
|
+
IHV = 9
|
|
94
|
+
WPA3 = 10
|
|
95
|
+
WPA3_ENTERPRISE192_BITS = 10
|
|
96
|
+
WPA3_SAE = 11
|
|
97
|
+
OWE = 12
|
|
98
|
+
WPA3_ENTERPRISE = 13
|
|
99
|
+
|
|
100
|
+
class NetworkConnectivityLevel(enum.IntEnum):
|
|
101
|
+
NONE = 0
|
|
102
|
+
LOCAL_ACCESS = 1
|
|
103
|
+
CONSTRAINED_INTERNET_ACCESS = 2
|
|
104
|
+
INTERNET_ACCESS = 3
|
|
105
|
+
|
|
106
|
+
class NetworkCostType(enum.IntEnum):
|
|
107
|
+
UNKNOWN = 0
|
|
108
|
+
UNRESTRICTED = 1
|
|
109
|
+
FIXED = 2
|
|
110
|
+
VARIABLE = 3
|
|
111
|
+
|
|
112
|
+
class NetworkEncryptionType(enum.IntEnum):
|
|
113
|
+
NONE = 0
|
|
114
|
+
UNKNOWN = 1
|
|
115
|
+
WEP = 2
|
|
116
|
+
WEP40 = 3
|
|
117
|
+
WEP104 = 4
|
|
118
|
+
TKIP = 5
|
|
119
|
+
CCMP = 6
|
|
120
|
+
WPA_USE_GROUP = 7
|
|
121
|
+
RSN_USE_GROUP = 8
|
|
122
|
+
IHV = 9
|
|
123
|
+
GCMP = 10
|
|
124
|
+
GCMP256 = 11
|
|
125
|
+
|
|
126
|
+
class NetworkTypes(enum.IntFlag):
|
|
127
|
+
NONE = 0x0
|
|
128
|
+
INTERNET = 0x1
|
|
129
|
+
PRIVATE_NETWORK = 0x2
|
|
130
|
+
|
|
131
|
+
class RoamingStates(enum.IntFlag):
|
|
132
|
+
NONE = 0x0
|
|
133
|
+
NOT_ROAMING = 0x1
|
|
134
|
+
ROAMING = 0x2
|
|
135
|
+
|
|
136
|
+
class TriStates(enum.IntEnum):
|
|
137
|
+
DO_NOT_CARE = 0
|
|
138
|
+
NO = 1
|
|
139
|
+
YES = 2
|
|
140
|
+
|
|
141
|
+
class WwanDataClass(enum.IntFlag):
|
|
142
|
+
NONE = 0x0
|
|
143
|
+
GPRS = 0x1
|
|
144
|
+
EDGE = 0x2
|
|
145
|
+
UMTS = 0x4
|
|
146
|
+
HSDPA = 0x8
|
|
147
|
+
HSUPA = 0x10
|
|
148
|
+
LTE_ADVANCED = 0x20
|
|
149
|
+
CDMA1X_RTT = 0x10000
|
|
150
|
+
CDMA1X_EVDO = 0x20000
|
|
151
|
+
CDMA1X_EVDO_REV_A = 0x40000
|
|
152
|
+
CDMA1X_EVDV = 0x80000
|
|
153
|
+
CDMA3X_RTT = 0x100000
|
|
154
|
+
CDMA1X_EVDO_REV_B = 0x200000
|
|
155
|
+
CDMA_UMB = 0x400000
|
|
156
|
+
CUSTOM = 0x80000000
|
|
157
|
+
|
|
158
|
+
class WwanNetworkIPKind(enum.IntEnum):
|
|
159
|
+
NONE = 0
|
|
160
|
+
IPV4 = 1
|
|
161
|
+
IPV6 = 2
|
|
162
|
+
IPV4V6 = 3
|
|
163
|
+
IPV4V6V4_XLAT = 4
|
|
164
|
+
|
|
165
|
+
class WwanNetworkRegistrationState(enum.IntEnum):
|
|
166
|
+
NONE = 0
|
|
167
|
+
DEREGISTERED = 1
|
|
168
|
+
SEARCHING = 2
|
|
169
|
+
HOME = 3
|
|
170
|
+
ROAMING = 4
|
|
171
|
+
PARTNER = 5
|
|
172
|
+
DENIED = 6
|
|
173
|
+
|
|
174
|
+
NetworkUsageStates = _winrt_windows_networking_connectivity.NetworkUsageStates
|
|
175
|
+
AttributedNetworkUsage = _winrt_windows_networking_connectivity.AttributedNetworkUsage
|
|
176
|
+
CellularApnContext = _winrt_windows_networking_connectivity.CellularApnContext
|
|
177
|
+
ConnectionCost = _winrt_windows_networking_connectivity.ConnectionCost
|
|
178
|
+
ConnectionProfile = _winrt_windows_networking_connectivity.ConnectionProfile
|
|
179
|
+
ConnectionProfileFilter = _winrt_windows_networking_connectivity.ConnectionProfileFilter
|
|
180
|
+
ConnectionSession = _winrt_windows_networking_connectivity.ConnectionSession
|
|
181
|
+
ConnectivityInterval = _winrt_windows_networking_connectivity.ConnectivityInterval
|
|
182
|
+
ConnectivityManager = _winrt_windows_networking_connectivity.ConnectivityManager
|
|
183
|
+
DataPlanStatus = _winrt_windows_networking_connectivity.DataPlanStatus
|
|
184
|
+
DataPlanUsage = _winrt_windows_networking_connectivity.DataPlanUsage
|
|
185
|
+
DataUsage = _winrt_windows_networking_connectivity.DataUsage
|
|
186
|
+
IPInformation = _winrt_windows_networking_connectivity.IPInformation
|
|
187
|
+
LanIdentifier = _winrt_windows_networking_connectivity.LanIdentifier
|
|
188
|
+
LanIdentifierData = _winrt_windows_networking_connectivity.LanIdentifierData
|
|
189
|
+
NetworkAdapter = _winrt_windows_networking_connectivity.NetworkAdapter
|
|
190
|
+
NetworkInformation = _winrt_windows_networking_connectivity.NetworkInformation
|
|
191
|
+
NetworkItem = _winrt_windows_networking_connectivity.NetworkItem
|
|
192
|
+
NetworkSecuritySettings = _winrt_windows_networking_connectivity.NetworkSecuritySettings
|
|
193
|
+
NetworkStateChangeEventDetails = _winrt_windows_networking_connectivity.NetworkStateChangeEventDetails
|
|
194
|
+
NetworkUsage = _winrt_windows_networking_connectivity.NetworkUsage
|
|
195
|
+
ProviderNetworkUsage = _winrt_windows_networking_connectivity.ProviderNetworkUsage
|
|
196
|
+
ProxyConfiguration = _winrt_windows_networking_connectivity.ProxyConfiguration
|
|
197
|
+
RoutePolicy = _winrt_windows_networking_connectivity.RoutePolicy
|
|
198
|
+
WlanConnectionProfileDetails = _winrt_windows_networking_connectivity.WlanConnectionProfileDetails
|
|
199
|
+
WwanConnectionProfileDetails = _winrt_windows_networking_connectivity.WwanConnectionProfileDetails
|
|
200
|
+
NetworkStatusChangedEventHandler = typing.Callable[[typing.Optional[winrt.system.Object]], None]
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Networking.Connectivity
|
|
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[all] ==2.2.0 ; extra == 'all'
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
|
|
19
|
+
Requires-Dist: winrt-Windows.Networking[all] ==2.2.0 ; extra == 'all'
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
|
|
21
|
+
|
|
22
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
|
+
|
|
24
|
+
# winrt-Windows.Networking.Connectivity
|
|
25
|
+
|
|
26
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Networking.Connectivity` namespace.
|
|
27
|
+
|
|
28
|
+
This package provides the `winrt.windows.networking.connectivity` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_networking_connectivity.cp313-win32.pyd,sha256=lS0gZ3M1wURWfxmWUtnCRCabxs6ktB6xdJfga-pewU8,394752
|
|
2
|
+
winrt/_winrt_windows_networking_connectivity.pyi,sha256=5S-D285Qwg7GF4p0DMHV556c95EbE6DP1gYNFYdvfJc,18056
|
|
3
|
+
winrt/windows/networking/connectivity/__init__.py,sha256=QXJv0oKBz9sXvJMhpw9tHSbzObI7J6l01DNP8e4kaUA,5723
|
|
4
|
+
winrt/windows/networking/connectivity/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_Windows.Networking.Connectivity-2.2.0.dist-info/METADATA,sha256=F-zCi-I_npOfx2fufx2gVHz5_Zw-Z0TL61ewrugtbyI,1305
|
|
6
|
+
winrt_Windows.Networking.Connectivity-2.2.0.dist-info/WHEEL,sha256=rHSPOKLHVf857fDiba9Pzuf1iCvh9pcRQ5-VWQYz3ms,97
|
|
7
|
+
winrt_Windows.Networking.Connectivity-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_Windows.Networking.Connectivity-2.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|