pyobjc-framework-CloudKit 10.3.2__py3-none-any.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.
CloudKit/__init__.py ADDED
@@ -0,0 +1,182 @@
1
+ """
2
+ Python mapping for the CloudKit 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 Accounts
13
+ import CoreData
14
+ import CoreLocation
15
+ import Foundation
16
+ import objc
17
+ from . import _metadata
18
+
19
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
20
+ name="CloudKit",
21
+ frameworkIdentifier="com.apple.cloudkit.CloudKit",
22
+ frameworkPath=objc.pathForFramework(
23
+ "/System/Library/Frameworks/CloudKit.framework"
24
+ ),
25
+ globals_dict=globals(),
26
+ inline_list=None,
27
+ parents=(
28
+ CoreData,
29
+ CoreLocation,
30
+ Accounts,
31
+ Foundation,
32
+ ),
33
+ metadict=_metadata.__dict__,
34
+ )
35
+
36
+ globals()["__dir__"] = dir_func
37
+ globals()["__getattr__"] = getattr_func
38
+
39
+ for cls, sel in (
40
+ ("CKDatabase", b"init"),
41
+ ("CKDatabase", b"new"),
42
+ ("CKNotification", b"init"),
43
+ ("CKNotification", b"new"),
44
+ ("CKServerChangeToken", b"init"),
45
+ ("CKServerChangeToken", b"new"),
46
+ ("CKQuery", b"init"),
47
+ ("CKQuery", b"new"),
48
+ ("CKReference", b"init"),
49
+ ("CKReference", b"new"),
50
+ ("CKShareParticipant", b"init"),
51
+ ("CKShareParticipant", b"new"),
52
+ ("CKRecordZoneID", b"init"),
53
+ ("CKRecordZoneID", b"new"),
54
+ ("CKSystemSharingUIObserver", b"init"),
55
+ ("CKSystemSharingUIObserver", b"new"),
56
+ ("CKSyncEngineState", b"init"),
57
+ ("CKSyncEngineState", b"new"),
58
+ ("CKSyncEngineStateSerialization", b"init"),
59
+ ("CKSyncEngineStateSerialization", b"new"),
60
+ ("CKSyncEnginePendingRecordZoneChange", b"init"),
61
+ ("CKSyncEnginePendingRecordZoneChange", b"new"),
62
+ ("CKSyncEnginePendingDatabaseChange", b"init"),
63
+ ("CKSyncEnginePendingDatabaseChange", b"new"),
64
+ ("CKSyncEngineConfiguration", b"init"),
65
+ ("CKSyncEngineConfiguration", b"new"),
66
+ ("CKSyncEngineEvent", b"init"),
67
+ ("CKSyncEngineEvent", b"new"),
68
+ ("CKSyncEngineFetchedRecordDeletion", b"init"),
69
+ ("CKSyncEngineFetchedRecordDeletion", b"new"),
70
+ ("CKSyncEngineFetchedZoneDeletion", b"init"),
71
+ ("CKSyncEngineFetchedZoneDeletion", b"new"),
72
+ ("CKSyncEngineFailedRecordSave", b"init"),
73
+ ("CKSyncEngineFailedRecordSave", b"new"),
74
+ ("CKSyncEngineFailedZoneSave", b"init"),
75
+ ("CKSyncEngineFailedZoneSave", b"new"),
76
+ ("CKRecordZone", b"init"),
77
+ ("CKRecordZone", b"new"),
78
+ ("CKRecordID", b"init"),
79
+ ("CKRecordID", b"new"),
80
+ ("CKShare", b"init"),
81
+ ("CKShare", b"new"),
82
+ ("CKShare", b"initWithRecordType:"),
83
+ ("CKShare", b"initWithRecordType:recordID:"),
84
+ ("CKShare", b"initWithRecordType:zoneID:"),
85
+ ("CKLocationSortDescriptor", b"init"),
86
+ ("CKLocationSortDescriptor", b"new"),
87
+ ("CKQueryCursor", b"init"),
88
+ ("CKQueryCursor", b"new"),
89
+ ("CKSubscription", b"init"),
90
+ ("CKSubscription", b"new"),
91
+ ("CKRecord", b"init"),
92
+ ("CKRecord", b"new"),
93
+ ("CKContainer", b"init"),
94
+ ("CKContainer", b"new"),
95
+ ("CKAsset", b"init"),
96
+ ("CKAsset", b"new"),
97
+ ("CKUserIdentityLookupInfo", b"init"),
98
+ ("CKUserIdentityLookupInfo", b"new"),
99
+ ("CKSyncEngineRecordZoneChangeBatch", b"init"),
100
+ ("CKSyncEngineRecordZoneChangeBatch", b"new"),
101
+ ("CKUserIdentity", b"init"),
102
+ ("CKUserIdentity", b"new"),
103
+ ("CKSyncEngine", b"init"),
104
+ ("CKSyncEngine", b"new"),
105
+ ("CKSyncEngineFetchChangesContext", b"init"),
106
+ ("CKSyncEngineFetchChangesContext", b"new"),
107
+ ("CKSyncEngineSendChangesContext", b"init"),
108
+ ("CKSyncEngineSendChangesContext", b"new"),
109
+ ):
110
+ objc.registerUnavailableMethod(cls, sel)
111
+
112
+ del sys.modules["CloudKit._metadata"]
113
+
114
+ for clsname in (
115
+ "CKAllowedSharingOptions",
116
+ "CKAsset",
117
+ "CKContainer",
118
+ "CKDatabase",
119
+ "CKDatabaseNotification",
120
+ "CKDatabaseSubscription",
121
+ "CKFetchRecordZoneChangesConfiguration",
122
+ "CKNotification",
123
+ "CKNotificationID",
124
+ "CKNotificationInfo",
125
+ "CKOperationConfiguration",
126
+ "CKOperationGroup",
127
+ "CKQuery",
128
+ "CKQueryCursor",
129
+ "CKQueryNotification",
130
+ "CKQuerySubscription",
131
+ "CKRecord",
132
+ "CKRecordID",
133
+ "CKRecordZone",
134
+ "CKRecordZoneID",
135
+ "CKRecordZoneNotification",
136
+ "CKRecordZoneSubscription",
137
+ "CKReference",
138
+ "CKServerChangeToken",
139
+ "CKShare",
140
+ "CKShareMetadata",
141
+ "CKShareParticipant",
142
+ "CKSubscription",
143
+ "CKSyncEngine",
144
+ "CKSyncEngineAccountChangeEvent",
145
+ "CKSyncEngineConfiguration",
146
+ "CKSyncEngineDidFetchChangesEvent",
147
+ "CKSyncEngineDidFetchRecordZoneChangesEvent",
148
+ "CKSyncEngineDidSendChangesEvent",
149
+ "CKSyncEngineEvent",
150
+ "CKSyncEngineFailedRecordSave",
151
+ "CKSyncEngineFailedZoneSave",
152
+ "CKSyncEngineFetchChangesOptions",
153
+ "CKSyncEngineFetchedDatabaseChangesEvent",
154
+ "CKSyncEngineFetchedRecordDeletion",
155
+ "CKSyncEngineFetchedRecordZoneChangesEvent",
156
+ "CKSyncEngineFetchedZoneDeletion",
157
+ "CKSyncEnginePendingDatabaseChange",
158
+ "CKSyncEnginePendingRecordZoneChange",
159
+ "CKSyncEnginePendingZoneDelete",
160
+ "CKSyncEnginePendingZoneSave",
161
+ "CKSyncEngineRecordZoneChangeBatch",
162
+ "CKSyncEngineSendChangesContext",
163
+ "CKSyncEngineSendChangesOptions",
164
+ "CKSyncEngineSentDatabaseChangesEvent",
165
+ "CKSyncEngineSentRecordZoneChangesEvent",
166
+ "CKSyncEngineState",
167
+ "CKSyncEngineStateSerialization",
168
+ "CKSyncEngineStateUpdateEvent",
169
+ "CKSyncEngineWillFetchChangesEvent",
170
+ "CKSyncEngineWillFetchRecordZoneChangesEvent",
171
+ "CKSyncEngineWillSendChangesEvent",
172
+ "CKSystemSharingUIObserver",
173
+ "CKUserIdentity",
174
+ "CKUserIdentityLookupInfo",
175
+ ):
176
+ try:
177
+ objc.lookUpClass(clsname).__final__ = True
178
+ except objc.error:
179
+ pass
180
+
181
+
182
+ globals().pop("_setup")()