pyobjc-framework-ClassKit 11.0__cp313-cp313t-macosx_10_13_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.
- ClassKit/_ClassKit.cpython-313t-darwin.so +0 -0
- ClassKit/__init__.py +49 -0
- ClassKit/_metadata.py +257 -0
- pyobjc_framework_ClassKit-11.0.dist-info/METADATA +68 -0
- pyobjc_framework_ClassKit-11.0.dist-info/RECORD +8 -0
- pyobjc_framework_ClassKit-11.0.dist-info/WHEEL +5 -0
- pyobjc_framework_ClassKit-11.0.dist-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_ClassKit-11.0.dist-info/top_level.txt +1 -0
|
Binary file
|
ClassKit/__init__.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the ClassKit 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, _ClassKit
|
|
15
|
+
|
|
16
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
17
|
+
name="ClassKit",
|
|
18
|
+
frameworkIdentifier="com.apple.ClassKit",
|
|
19
|
+
frameworkPath=objc.pathForFramework(
|
|
20
|
+
"/System/Library/Frameworks/ClassKit.framework"
|
|
21
|
+
),
|
|
22
|
+
globals_dict=globals(),
|
|
23
|
+
inline_list=None,
|
|
24
|
+
parents=(
|
|
25
|
+
_ClassKit,
|
|
26
|
+
Foundation,
|
|
27
|
+
),
|
|
28
|
+
metadict=_metadata.__dict__,
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
globals()["__dir__"] = dir_func
|
|
32
|
+
globals()["__getattr__"] = getattr_func
|
|
33
|
+
|
|
34
|
+
for cls, sel in (
|
|
35
|
+
("CLSObject", b"init"),
|
|
36
|
+
("CLSObject", b"new"),
|
|
37
|
+
("CLSContext", b"init"),
|
|
38
|
+
("CLSContext", b"new"),
|
|
39
|
+
("CLSDataStore", b"init"),
|
|
40
|
+
("CLSDataStore", b"new"),
|
|
41
|
+
("CLSActivityItem", b"init"),
|
|
42
|
+
("CLSActivityItem", b"new"),
|
|
43
|
+
):
|
|
44
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
45
|
+
|
|
46
|
+
del sys.modules["ClassKit._metadata"]
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
globals().pop("_setup")()
|
ClassKit/_metadata.py
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# This file is generated by objective.metadata
|
|
2
|
+
#
|
|
3
|
+
# Last update: Tue Jun 11 10:06:28 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 = """$CLSContextTopicArtsAndMusic$CLSContextTopicComputerScienceAndEngineering$CLSContextTopicHealthAndFitness$CLSContextTopicLiteracyAndWriting$CLSContextTopicMath$CLSContextTopicScience$CLSContextTopicSocialScience$CLSContextTopicWorldLanguage$CLSErrorCodeDomain$CLSErrorObjectKey$CLSErrorSuccessfulObjectsKey$CLSErrorUnderlyingErrorsKey$CLSPredicateKeyPathDateCreated$CLSPredicateKeyPathIdentifier$CLSPredicateKeyPathParent$CLSPredicateKeyPathTitle$CLSPredicateKeyPathTopic$CLSPredicateKeyPathUniversalLinkURL$"""
|
|
34
|
+
enums = """$CLSBinaryValueTypeCorrectIncorrect@3$CLSBinaryValueTypePassFail@1$CLSBinaryValueTypeTrueFalse@0$CLSBinaryValueTypeYesNo@2$CLSContextTypeApp@1$CLSContextTypeAudio@14$CLSContextTypeBook@11$CLSContextTypeChallenge@7$CLSContextTypeChapter@2$CLSContextTypeCourse@16$CLSContextTypeCustom@17$CLSContextTypeDocument@13$CLSContextTypeExercise@9$CLSContextTypeGame@12$CLSContextTypeLesson@10$CLSContextTypeLevel@4$CLSContextTypeNone@0$CLSContextTypePage@5$CLSContextTypeQuiz@8$CLSContextTypeSection@3$CLSContextTypeTask@6$CLSContextTypeVideo@15$CLSErrorCodeAuthorizationDenied@4$CLSErrorCodeClassKitUnavailable@1$CLSErrorCodeDatabaseInaccessible@5$CLSErrorCodeInvalidAccountCredentials@10$CLSErrorCodeInvalidArgument@2$CLSErrorCodeInvalidCreate@7$CLSErrorCodeInvalidModification@3$CLSErrorCodeInvalidUpdate@8$CLSErrorCodeLimits@6$CLSErrorCodeNone@0$CLSErrorCodePartialFailure@9$CLSProgressReportingCapabilityKindBinary@2$CLSProgressReportingCapabilityKindDuration@0$CLSProgressReportingCapabilityKindPercent@1$CLSProgressReportingCapabilityKindQuantity@3$CLSProgressReportingCapabilityKindScore@4$"""
|
|
35
|
+
misc.update(
|
|
36
|
+
{
|
|
37
|
+
"CLSBinaryValueType": NewType("CLSBinaryValueType", int),
|
|
38
|
+
"CLSErrorCode": NewType("CLSErrorCode", int),
|
|
39
|
+
"CLSContextType": NewType("CLSContextType", int),
|
|
40
|
+
"CLSProgressReportingCapabilityKind": NewType(
|
|
41
|
+
"CLSProgressReportingCapabilityKind", int
|
|
42
|
+
),
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
misc.update({"CLSContextTopic": NewType("CLSContextTopic", str)})
|
|
46
|
+
misc.update({})
|
|
47
|
+
r = objc.registerMetaDataForSelector
|
|
48
|
+
objc._updatingMetadata(True)
|
|
49
|
+
try:
|
|
50
|
+
r(
|
|
51
|
+
b"CLSActivity",
|
|
52
|
+
b"contextsMatchingPredicate:completion:",
|
|
53
|
+
{
|
|
54
|
+
"arguments": {
|
|
55
|
+
3: {
|
|
56
|
+
"callable": {
|
|
57
|
+
"retval": {"type": b"v"},
|
|
58
|
+
"arguments": {
|
|
59
|
+
0: {"type": b"^v"},
|
|
60
|
+
1: {"type": b"@"},
|
|
61
|
+
2: {"type": b"@"},
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
)
|
|
68
|
+
r(b"CLSActivity", b"isStarted", {"retval": {"type": b"Z"}})
|
|
69
|
+
r(b"CLSBinaryItem", b"setValue:", {"arguments": {2: {"type": b"Z"}}})
|
|
70
|
+
r(b"CLSBinaryItem", b"value", {"retval": {"type": b"Z"}})
|
|
71
|
+
r(
|
|
72
|
+
b"CLSContext",
|
|
73
|
+
b"descendantMatchingIdentifierPath:completion:",
|
|
74
|
+
{
|
|
75
|
+
"arguments": {
|
|
76
|
+
3: {
|
|
77
|
+
"callable": {
|
|
78
|
+
"retval": {"type": b"v"},
|
|
79
|
+
"arguments": {
|
|
80
|
+
0: {"type": b"^v"},
|
|
81
|
+
1: {"type": b"@"},
|
|
82
|
+
2: {"type": b"@"},
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
)
|
|
89
|
+
r(b"CLSContext", b"isActive", {"retval": {"type": b"Z"}})
|
|
90
|
+
r(b"CLSContext", b"isAssignable", {"retval": {"type": b"Z"}})
|
|
91
|
+
r(b"CLSContext", b"setAssignable:", {"arguments": {2: {"type": b"Z"}}})
|
|
92
|
+
r(
|
|
93
|
+
b"CLSDataStore",
|
|
94
|
+
b"contextsMatchingIdentifierPath:completion:",
|
|
95
|
+
{
|
|
96
|
+
"arguments": {
|
|
97
|
+
3: {
|
|
98
|
+
"callable": {
|
|
99
|
+
"retval": {"type": b"v"},
|
|
100
|
+
"arguments": {
|
|
101
|
+
0: {"type": b"^v"},
|
|
102
|
+
1: {"type": b"@"},
|
|
103
|
+
2: {"type": b"@"},
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
)
|
|
110
|
+
r(
|
|
111
|
+
b"CLSDataStore",
|
|
112
|
+
b"contextsMatchingPredicate:completion:",
|
|
113
|
+
{
|
|
114
|
+
"arguments": {
|
|
115
|
+
3: {
|
|
116
|
+
"callable": {
|
|
117
|
+
"retval": {"type": b"v"},
|
|
118
|
+
"arguments": {
|
|
119
|
+
0: {"type": b"^v"},
|
|
120
|
+
1: {"type": b"@"},
|
|
121
|
+
2: {"type": b"@"},
|
|
122
|
+
},
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
)
|
|
128
|
+
r(
|
|
129
|
+
b"CLSDataStore",
|
|
130
|
+
b"fetchActivityForURL:completion:",
|
|
131
|
+
{
|
|
132
|
+
"arguments": {
|
|
133
|
+
3: {
|
|
134
|
+
"callable": {
|
|
135
|
+
"retval": {"type": b"v"},
|
|
136
|
+
"arguments": {
|
|
137
|
+
0: {"type": b"^v"},
|
|
138
|
+
1: {"type": b"@"},
|
|
139
|
+
2: {"type": b"@"},
|
|
140
|
+
},
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
)
|
|
146
|
+
r(
|
|
147
|
+
b"CLSDataStore",
|
|
148
|
+
b"saveWithCompletion:",
|
|
149
|
+
{
|
|
150
|
+
"arguments": {
|
|
151
|
+
2: {
|
|
152
|
+
"callable": {
|
|
153
|
+
"retval": {"type": b"v"},
|
|
154
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
)
|
|
160
|
+
r(
|
|
161
|
+
b"NSObject",
|
|
162
|
+
b"createContextForIdentifier:parentContext:parentIdentifierPath:",
|
|
163
|
+
{
|
|
164
|
+
"required": True,
|
|
165
|
+
"retval": {"type": b"@"},
|
|
166
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
|
|
167
|
+
},
|
|
168
|
+
)
|
|
169
|
+
r(
|
|
170
|
+
b"NSObject",
|
|
171
|
+
b"updateDescendantsOfContext:completion:",
|
|
172
|
+
{
|
|
173
|
+
"required": True,
|
|
174
|
+
"retval": {"type": b"v"},
|
|
175
|
+
"arguments": {
|
|
176
|
+
2: {"type": b"@"},
|
|
177
|
+
3: {
|
|
178
|
+
"callable": {
|
|
179
|
+
"retval": {"type": b"v"},
|
|
180
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
181
|
+
},
|
|
182
|
+
"type": b"@?",
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
)
|
|
187
|
+
r(b"NSUserActivity", b"isClassKitDeepLink", {"retval": {"type": b"Z"}})
|
|
188
|
+
r(
|
|
189
|
+
b"null",
|
|
190
|
+
b"contextsMatchingIdentifierPath:completion:",
|
|
191
|
+
{
|
|
192
|
+
"arguments": {
|
|
193
|
+
3: {
|
|
194
|
+
"callable": {
|
|
195
|
+
"retval": {"type": b"v"},
|
|
196
|
+
"arguments": {
|
|
197
|
+
0: {"type": b"^v"},
|
|
198
|
+
1: {"type": b"@"},
|
|
199
|
+
2: {"type": b"@"},
|
|
200
|
+
},
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
)
|
|
206
|
+
r(
|
|
207
|
+
b"null",
|
|
208
|
+
b"contextsMatchingPredicate:completion:",
|
|
209
|
+
{
|
|
210
|
+
"arguments": {
|
|
211
|
+
3: {
|
|
212
|
+
"callable": {
|
|
213
|
+
"retval": {"type": b"v"},
|
|
214
|
+
"arguments": {
|
|
215
|
+
0: {"type": b"^v"},
|
|
216
|
+
1: {"type": b"@"},
|
|
217
|
+
2: {"type": b"@"},
|
|
218
|
+
},
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
)
|
|
224
|
+
r(
|
|
225
|
+
b"null",
|
|
226
|
+
b"fetchActivityForURL:completion:",
|
|
227
|
+
{
|
|
228
|
+
"arguments": {
|
|
229
|
+
3: {
|
|
230
|
+
"callable": {
|
|
231
|
+
"retval": {"type": b"v"},
|
|
232
|
+
"arguments": {
|
|
233
|
+
0: {"type": b"^v"},
|
|
234
|
+
1: {"type": b"@"},
|
|
235
|
+
2: {"type": b"@"},
|
|
236
|
+
},
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
)
|
|
242
|
+
r(b"null", b"isStarted", {"retval": {"type": b"Z"}})
|
|
243
|
+
finally:
|
|
244
|
+
objc._updatingMetadata(False)
|
|
245
|
+
|
|
246
|
+
objc.registerNewKeywordsFromSelector("CLSBinaryItem", b"initWithIdentifier:title:type:")
|
|
247
|
+
objc.registerNewKeywordsFromSelector("CLSContext", b"initWithType:identifier:title:")
|
|
248
|
+
objc.registerNewKeywordsFromSelector(
|
|
249
|
+
"CLSProgressReportingCapability", b"initWithKind:details:"
|
|
250
|
+
)
|
|
251
|
+
objc.registerNewKeywordsFromSelector("CLSQuantityItem", b"initWithIdentifier:title:")
|
|
252
|
+
objc.registerNewKeywordsFromSelector(
|
|
253
|
+
"CLSScoreItem", b"initWithIdentifier:title:score:maxScore:"
|
|
254
|
+
)
|
|
255
|
+
expressions = {}
|
|
256
|
+
|
|
257
|
+
# END OF FILE
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: pyobjc-framework-ClassKit
|
|
3
|
+
Version: 11.0
|
|
4
|
+
Summary: Wrappers for the framework ClassKit 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 License
|
|
9
|
+
Keywords: PyObjC,ClassKit
|
|
10
|
+
Platform: MacOS X (>=10.16)
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
|
+
Classifier: Programming Language :: Python
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Objective C
|
|
29
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
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: platform
|
|
44
|
+
Dynamic: requires-dist
|
|
45
|
+
Dynamic: requires-python
|
|
46
|
+
Dynamic: summary
|
|
47
|
+
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
48
|
+
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
49
|
+
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
Wrappers for the "ClassKit" framework on macOS.
|
|
53
|
+
|
|
54
|
+
These wrappers don't include documentation, please check Apple's documentation
|
|
55
|
+
for information on how to use this framework and PyObjC's documentation
|
|
56
|
+
for general tips and tricks regarding the translation between Python
|
|
57
|
+
and (Objective-)C frameworks
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
Project links
|
|
61
|
+
-------------
|
|
62
|
+
|
|
63
|
+
* `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
|
|
64
|
+
|
|
65
|
+
* `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
|
|
66
|
+
|
|
67
|
+
* `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
|
|
68
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
ClassKit/_ClassKit.cpython-313t-darwin.so,sha256=0nM9xcIUJQJjn_tAOD1rmYh-m9_SD7_8N5AXXwW1sxg,68080
|
|
2
|
+
ClassKit/__init__.py,sha256=Cbo5u141qVVb1S08DzihhzXlxakh39_SBRodbRHEloc,1242
|
|
3
|
+
ClassKit/_metadata.py,sha256=bUWZuO6vsnjPMe55EZPjYyZXyBbLLEu7pn5RsS62ecs,8736
|
|
4
|
+
pyobjc_framework_ClassKit-11.0.dist-info/METADATA,sha256=fTnLJQW4F8STe89pXoBZR9HyZc5_MKPpeMbAAFzVc3Q,2483
|
|
5
|
+
pyobjc_framework_ClassKit-11.0.dist-info/WHEEL,sha256=vmKAF-w3NxL0fWr6YyduqKUKgIU_eNDksc7lj0RTN34,116
|
|
6
|
+
pyobjc_framework_ClassKit-11.0.dist-info/pyobjc-build-info.txt,sha256=R5YEsJoyZ8GByMQk4k_4WWEg6V4RNO715NMQwx6YaNI,85
|
|
7
|
+
pyobjc_framework_ClassKit-11.0.dist-info/top_level.txt,sha256=zWlN-sn0toCagY8VF-aAWbAGlGpNlF-6SjM_YUrVemI,9
|
|
8
|
+
pyobjc_framework_ClassKit-11.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ClassKit
|