pyobjc-framework-MultipeerConnectivity 11.1__cp314-cp314t-macosx_11_0_universal2.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.
@@ -0,0 +1,37 @@
1
+ """
2
+ Python mapping for the MultipeerConnectivity framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import Foundation
13
+ import objc
14
+ from . import _metadata, _MultipeerConnectivity
15
+
16
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
17
+ name="MultipeerConnectivity",
18
+ frameworkIdentifier="com.apple.MultipeerConnectivity",
19
+ frameworkPath=objc.pathForFramework(
20
+ "/System/Library/Frameworks/MultipeerConnectivity.framework"
21
+ ),
22
+ globals_dict=globals(),
23
+ inline_list=None,
24
+ parents=(
25
+ _MultipeerConnectivity,
26
+ Foundation,
27
+ ),
28
+ metadict=_metadata.__dict__,
29
+ )
30
+
31
+ globals()["__dir__"] = dir_func
32
+ globals()["__getattr__"] = getattr_func
33
+
34
+ del sys.modules["MultipeerConnectivity._metadata"]
35
+
36
+
37
+ globals().pop("_setup")()
@@ -0,0 +1,285 @@
1
+ # This file is generated by objective.metadata
2
+ #
3
+ # Last update: Tue Jun 11 10:15:46 2024
4
+ #
5
+ # flake8: noqa
6
+
7
+ import objc, sys
8
+ from typing import NewType
9
+
10
+ if sys.maxsize > 2**32:
11
+
12
+ def sel32or64(a, b):
13
+ return b
14
+
15
+ else:
16
+
17
+ def sel32or64(a, b):
18
+ return a
19
+
20
+
21
+ if objc.arch == "arm64":
22
+
23
+ def selAorI(a, b):
24
+ return a
25
+
26
+ else:
27
+
28
+ def selAorI(a, b):
29
+ return b
30
+
31
+
32
+ misc = {}
33
+ constants = """$MCErrorDomain$kMCSessionMaximumNumberOfPeers@Q$kMCSessionMinimumNumberOfPeers@Q$"""
34
+ enums = """$MCEncryptionNone@2$MCEncryptionOptional@0$MCEncryptionRequired@1$MCErrorCancelled@5$MCErrorInvalidParameter@2$MCErrorNotConnected@1$MCErrorTimedOut@4$MCErrorUnavailable@6$MCErrorUnknown@0$MCErrorUnsupported@3$MCSessionSendDataReliable@0$MCSessionSendDataUnreliable@1$MCSessionStateConnected@2$MCSessionStateConnecting@1$MCSessionStateNotConnected@0$"""
35
+ misc.update(
36
+ {
37
+ "MCSessionState": NewType("MCSessionState", int),
38
+ "MCEncryptionPreference": NewType("MCEncryptionPreference", int),
39
+ "MCSessionSendDataMode": NewType("MCSessionSendDataMode", int),
40
+ "MCErrorCode": NewType("MCErrorCode", int),
41
+ }
42
+ )
43
+ misc.update({})
44
+ misc.update({})
45
+ r = objc.registerMetaDataForSelector
46
+ objc._updatingMetadata(True)
47
+ try:
48
+ r(
49
+ b"MCSession",
50
+ b"nearbyConnectionDataForPeer:withCompletionHandler:",
51
+ {
52
+ "arguments": {
53
+ 3: {
54
+ "callable": {
55
+ "retval": {"type": b"v"},
56
+ "arguments": {
57
+ 0: {"type": b"^v"},
58
+ 1: {"type": b"@"},
59
+ 2: {"type": b"@"},
60
+ },
61
+ }
62
+ }
63
+ }
64
+ },
65
+ )
66
+ r(
67
+ b"MCSession",
68
+ b"sendData:toPeers:withMode:error:",
69
+ {"retval": {"type": b"Z"}, "arguments": {5: {"type_modifier": b"o"}}},
70
+ )
71
+ r(
72
+ b"MCSession",
73
+ b"sendResourceAtURL:withName:toPeer:withCompletionHandler:",
74
+ {
75
+ "arguments": {
76
+ 5: {
77
+ "callable": {
78
+ "retval": {"type": b"v"},
79
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
80
+ }
81
+ }
82
+ }
83
+ },
84
+ )
85
+ r(
86
+ b"MCSession",
87
+ b"startStreamWithName:toPeer:error:",
88
+ {"arguments": {4: {"type_modifier": b"o"}}},
89
+ )
90
+ r(
91
+ b"NSObject",
92
+ b"advertiser:didNotStartAdvertisingPeer:",
93
+ {
94
+ "required": False,
95
+ "retval": {"type": b"v"},
96
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
97
+ },
98
+ )
99
+ r(
100
+ b"NSObject",
101
+ b"advertiser:didReceiveInvitationFromPeer:withContext:invitationHandler:",
102
+ {
103
+ "required": True,
104
+ "retval": {"type": b"v"},
105
+ "arguments": {
106
+ 2: {"type": b"@"},
107
+ 3: {"type": b"@"},
108
+ 4: {"type": b"@"},
109
+ 5: {
110
+ "callable": {
111
+ "retval": {"type": b"v"},
112
+ "arguments": {
113
+ 0: {"type": b"^v"},
114
+ 1: {"type": b"Z"},
115
+ 2: {"type": b"@"},
116
+ },
117
+ },
118
+ "type": "@?",
119
+ },
120
+ },
121
+ },
122
+ )
123
+ r(
124
+ b"NSObject",
125
+ b"advertiserAssistantDidDismissInvitation:",
126
+ {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
127
+ )
128
+ r(
129
+ b"NSObject",
130
+ b"advertiserAssistantWillPresentInvitation:",
131
+ {"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
132
+ )
133
+ r(
134
+ b"NSObject",
135
+ b"browser:didNotStartBrowsingForPeers:",
136
+ {
137
+ "required": False,
138
+ "retval": {"type": b"v"},
139
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
140
+ },
141
+ )
142
+ r(
143
+ b"NSObject",
144
+ b"browser:foundPeer:withDiscoveryInfo:",
145
+ {
146
+ "required": True,
147
+ "retval": {"type": b"v"},
148
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
149
+ },
150
+ )
151
+ r(
152
+ b"NSObject",
153
+ b"browser:lostPeer:",
154
+ {
155
+ "required": True,
156
+ "retval": {"type": b"v"},
157
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
158
+ },
159
+ )
160
+ r(
161
+ b"NSObject",
162
+ b"browserViewController:shouldPresentNearbyPeer:withDiscoveryInfo:",
163
+ {
164
+ "required": False,
165
+ "retval": {"type": b"Z"},
166
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
167
+ },
168
+ )
169
+ r(
170
+ b"NSObject",
171
+ b"browserViewControllerDidFinish:",
172
+ {"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
173
+ )
174
+ r(
175
+ b"NSObject",
176
+ b"browserViewControllerWasCancelled:",
177
+ {"required": True, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
178
+ )
179
+ r(
180
+ b"NSObject",
181
+ b"session:didFinishReceivingResourceWithName:fromPeer:atURL:withError:",
182
+ {
183
+ "required": True,
184
+ "retval": {"type": b"v"},
185
+ "arguments": {
186
+ 2: {"type": b"@"},
187
+ 3: {"type": b"@"},
188
+ 4: {"type": b"@"},
189
+ 5: {"type": b"@"},
190
+ 6: {"type": b"@"},
191
+ },
192
+ },
193
+ )
194
+ r(
195
+ b"NSObject",
196
+ b"session:didReceiveCertificate:fromPeer:certificateHandler:",
197
+ {
198
+ "required": False,
199
+ "retval": {"type": b"v"},
200
+ "arguments": {
201
+ 2: {"type": b"@"},
202
+ 3: {"type": b"@"},
203
+ 4: {"type": b"@"},
204
+ 5: {
205
+ "callable": {
206
+ "retval": {"type": b"v"},
207
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"Z"}},
208
+ },
209
+ "type": "@?",
210
+ },
211
+ },
212
+ },
213
+ )
214
+ r(
215
+ b"NSObject",
216
+ b"session:didReceiveData:fromPeer:",
217
+ {
218
+ "required": True,
219
+ "retval": {"type": b"v"},
220
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
221
+ },
222
+ )
223
+ r(
224
+ b"NSObject",
225
+ b"session:didReceiveStream:withName:fromPeer:",
226
+ {
227
+ "required": True,
228
+ "retval": {"type": b"v"},
229
+ "arguments": {
230
+ 2: {"type": b"@"},
231
+ 3: {"type": b"@"},
232
+ 4: {"type": b"@"},
233
+ 5: {"type": b"@"},
234
+ },
235
+ },
236
+ )
237
+ r(
238
+ b"NSObject",
239
+ b"session:didStartReceivingResourceWithName:fromPeer:withProgress:",
240
+ {
241
+ "required": True,
242
+ "retval": {"type": b"v"},
243
+ "arguments": {
244
+ 2: {"type": b"@"},
245
+ 3: {"type": b"@"},
246
+ 4: {"type": b"@"},
247
+ 5: {"type": b"@"},
248
+ },
249
+ },
250
+ )
251
+ r(
252
+ b"NSObject",
253
+ b"session:peer:didChangeState:",
254
+ {
255
+ "required": True,
256
+ "retval": {"type": b"v"},
257
+ "arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": "Q"}},
258
+ },
259
+ )
260
+ finally:
261
+ objc._updatingMetadata(False)
262
+
263
+ objc.registerNewKeywordsFromSelector(
264
+ "MCAdvertiserAssistant", b"initWithServiceType:discoveryInfo:session:"
265
+ )
266
+ objc.registerNewKeywordsFromSelector(
267
+ "MCBrowserViewController", b"initWithBrowser:session:"
268
+ )
269
+ objc.registerNewKeywordsFromSelector(
270
+ "MCBrowserViewController", b"initWithServiceType:session:"
271
+ )
272
+ objc.registerNewKeywordsFromSelector(
273
+ "MCNearbyServiceAdvertiser", b"initWithPeer:discoveryInfo:serviceType:"
274
+ )
275
+ objc.registerNewKeywordsFromSelector(
276
+ "MCNearbyServiceBrowser", b"initWithPeer:serviceType:"
277
+ )
278
+ objc.registerNewKeywordsFromSelector("MCPeerID", b"initWithDisplayName:")
279
+ objc.registerNewKeywordsFromSelector("MCSession", b"initWithPeer:")
280
+ objc.registerNewKeywordsFromSelector(
281
+ "MCSession", b"initWithPeer:securityIdentity:encryptionPreference:"
282
+ )
283
+ expressions = {}
284
+
285
+ # END OF FILE
@@ -0,0 +1,69 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyobjc-framework-MultipeerConnectivity
3
+ Version: 11.1
4
+ Summary: Wrappers for the framework MultipeerConnectivity on macOS
5
+ Home-page: https://github.com/ronaldoussoren/pyobjc
6
+ Author: Ronald Oussoren
7
+ Author-email: pyobjc-dev@lists.sourceforge.net
8
+ License: MIT
9
+ Keywords: PyObjC,MultipeerConnectivity
10
+ Platform: MacOS X (>=10.10)
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Console
13
+ Classifier: Environment :: MacOS X :: Cocoa
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Natural Language :: English
16
+ Classifier: Operating System :: MacOS :: MacOS X
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3 :: Only
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Programming Language :: Python :: 3.10
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Programming Language :: Python :: Implementation :: CPython
27
+ Classifier: Programming Language :: Objective C
28
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
+ Classifier: Topic :: Software Development :: User Interfaces
30
+ Requires-Python: >=3.9
31
+ Description-Content-Type: text/x-rst; charset=UTF-8
32
+ License-File: LICENSE.txt
33
+ Requires-Dist: pyobjc-core>=11.1
34
+ Requires-Dist: pyobjc-framework-Cocoa>=11.1
35
+ Dynamic: author
36
+ Dynamic: author-email
37
+ Dynamic: classifier
38
+ Dynamic: description
39
+ Dynamic: description-content-type
40
+ Dynamic: home-page
41
+ Dynamic: keywords
42
+ Dynamic: license
43
+ Dynamic: license-file
44
+ Dynamic: platform
45
+ Dynamic: requires-dist
46
+ Dynamic: requires-python
47
+ Dynamic: summary
48
+ Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
49
+ Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
50
+ Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
51
+
52
+
53
+ Wrappers for the "MultipeerConnectivity" framework on macOS.
54
+
55
+ These wrappers don't include documentation, please check Apple's documentation
56
+ for information on how to use this framework and PyObjC's documentation
57
+ for general tips and tricks regarding the translation between Python
58
+ and (Objective-)C frameworks
59
+
60
+
61
+ Project links
62
+ -------------
63
+
64
+ * `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
65
+
66
+ * `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
67
+
68
+ * `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
69
+
@@ -0,0 +1,9 @@
1
+ MultipeerConnectivity/_MultipeerConnectivity.cpython-314t-darwin.so,sha256=8fKnYXT3_m1GV0mpgYr0mfWUT5WMX9VvAVPq19Bjb0M,86848
2
+ MultipeerConnectivity/__init__.py,sha256=SZDwK_s2yI6vZwXa20zlr6hlkGwUg4q1m7aHOIovZLg,982
3
+ MultipeerConnectivity/_metadata.py,sha256=rBe8sHq660XNY-QRDfgQtIK0wUbvSnDcRfmbzpJwljA,8236
4
+ pyobjc_framework_multipeerconnectivity-11.1.dist-info/licenses/LICENSE.txt,sha256=DKBLB5KNSHK52bsiGHygQm3Yv6sI8m6toJmacdyBqv8,1249
5
+ pyobjc_framework_multipeerconnectivity-11.1.dist-info/METADATA,sha256=c8tZQf7euSnBkhIvY3mMvlB0sXz5yqontuvGU7598VE,2524
6
+ pyobjc_framework_multipeerconnectivity-11.1.dist-info/WHEEL,sha256=1kJy1YLP9yfjMgPUXS1-zkDXrz64nbj434ovEphh3P0,115
7
+ pyobjc_framework_multipeerconnectivity-11.1.dist-info/pyobjc-build-info.txt,sha256=OfQNPl9BwB9fSU4KMztzne_AW50mIPMwZ9jSbPyMI-g,82
8
+ pyobjc_framework_multipeerconnectivity-11.1.dist-info/top_level.txt,sha256=IUU82dmFTBaV44OXEYmfdzoCP0LOj-pHYNkxJq8PCkI,22
9
+ pyobjc_framework_multipeerconnectivity-11.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314t-macosx_11_0_universal2
5
+
@@ -0,0 +1,10 @@
1
+ (This is the MIT license, note that libffi-src is a separate product with its own license)
2
+
3
+ Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
4
+ Copyright 2003-2025 - Ronald Oussoren
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
+
8
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,3 @@
1
+ macOS 15.5 (24F74)
2
+ Apple clang version 17.0.0 (clang-1700.0.13.5)
3
+ SDK: macOS 15.5
@@ -0,0 +1 @@
1
+ MultipeerConnectivity