pyobjc-framework-BackgroundAssets 11.0__cp313-cp313-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.
- BackgroundAssets/_BackgroundAssets.cpython-313-darwin.so +0 -0
- BackgroundAssets/__init__.py +46 -0
- BackgroundAssets/_metadata.py +275 -0
- pyobjc_framework_BackgroundAssets-11.0.dist-info/METADATA +56 -0
- pyobjc_framework_BackgroundAssets-11.0.dist-info/RECORD +8 -0
- pyobjc_framework_BackgroundAssets-11.0.dist-info/WHEEL +5 -0
- pyobjc_framework_BackgroundAssets-11.0.dist-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_BackgroundAssets-11.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the BackgroundAssets 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, _BackgroundAssets
|
|
15
|
+
|
|
16
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
17
|
+
name="BackgroundAssets",
|
|
18
|
+
frameworkIdentifier="com.apple.mobileasset.BackgroundAssets",
|
|
19
|
+
frameworkPath=objc.pathForFramework(
|
|
20
|
+
"/System/Library/Frameworks/BackgroundAssets.framework"
|
|
21
|
+
),
|
|
22
|
+
globals_dict=globals(),
|
|
23
|
+
inline_list=None,
|
|
24
|
+
parents=(_BackgroundAssets, Foundation),
|
|
25
|
+
metadict=_metadata.__dict__,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
globals()["__dir__"] = dir_func
|
|
29
|
+
globals()["__getattr__"] = getattr_func
|
|
30
|
+
|
|
31
|
+
for cls, sel in (
|
|
32
|
+
("BADownloadManager", b"init"),
|
|
33
|
+
("BADownloadManager", b"new"),
|
|
34
|
+
("BAURLDownload", b"init"),
|
|
35
|
+
("BAURLDownload", b"new"),
|
|
36
|
+
("BAAppExtensionInfo", b"init"),
|
|
37
|
+
("BAAppExtensionInfo", b"new"),
|
|
38
|
+
("BADownload", b"init"),
|
|
39
|
+
("BADownload", b"new"),
|
|
40
|
+
):
|
|
41
|
+
objc.registerUnavailableMethod(cls, sel)
|
|
42
|
+
|
|
43
|
+
del sys.modules["BackgroundAssets._metadata"]
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
globals().pop("_setup")()
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# This file is generated by objective.metadata
|
|
2
|
+
#
|
|
3
|
+
# Last update: Tue Jun 11 10:05:52 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 = """$BADownloaderPriorityDefault@q$BADownloaderPriorityMax@q$BADownloaderPriorityMin@q$BAErrorDomain$"""
|
|
34
|
+
enums = """$BAContentRequestInstall@1$BAContentRequestPeriodic@3$BAContentRequestUpdate@2$BADownloadStateCreated@0$BADownloadStateDownloading@2$BADownloadStateFailed@-1$BADownloadStateFinished@3$BADownloadStateWaiting@1$BAErrorCodeCallFromExtensionNotAllowed@50$BAErrorCodeCallFromInactiveProcessNotAllowed@51$BAErrorCodeCallerConnectionInvalid@56$BAErrorCodeCallerConnectionNotAccepted@55$BAErrorCodeDownloadAlreadyFailed@103$BAErrorCodeDownloadAlreadyScheduled@100$BAErrorCodeDownloadBackgroundActivityProhibited@111$BAErrorCodeDownloadEssentialDownloadNotPermitted@109$BAErrorCodeDownloadFailedToStart@102$BAErrorCodeDownloadInvalid@0$BAErrorCodeDownloadNotScheduled@101$BAErrorCodeDownloadWouldExceedAllowance@112$BAErrorCodeSessionDownloadAllowanceExceeded@204$BAErrorCodeSessionDownloadDisallowedByAllowance@203$BAErrorCodeSessionDownloadDisallowedByDomain@202$BAErrorCodeSessionDownloadNotPermittedBeforeAppLaunch@206$"""
|
|
35
|
+
misc.update(
|
|
36
|
+
{
|
|
37
|
+
"BADownloadState": NewType("BADownloadState", int),
|
|
38
|
+
"BAErrorCode": NewType("BAErrorCode", int),
|
|
39
|
+
"BAContentRequest": NewType("BAContentRequest", int),
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
misc.update(
|
|
43
|
+
{
|
|
44
|
+
"BADownloadState": NewType("BADownloadState", int),
|
|
45
|
+
"BADownloaderPriority": NewType("BADownloaderPriority", int),
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
misc.update({})
|
|
49
|
+
r = objc.registerMetaDataForSelector
|
|
50
|
+
objc._updatingMetadata(True)
|
|
51
|
+
try:
|
|
52
|
+
r(b"BADownload", b"isEssential", {"retval": {"type": b"Z"}})
|
|
53
|
+
r(
|
|
54
|
+
b"BADownloadManager",
|
|
55
|
+
b"cancelDownload:error:",
|
|
56
|
+
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
57
|
+
)
|
|
58
|
+
r(
|
|
59
|
+
b"BADownloadManager",
|
|
60
|
+
b"etchCurrentDownloads:",
|
|
61
|
+
{"arguments": {2: {"type_modifier": b"o"}}},
|
|
62
|
+
)
|
|
63
|
+
r(
|
|
64
|
+
b"BADownloadManager",
|
|
65
|
+
b"fetchCurrentDownloads:",
|
|
66
|
+
{"arguments": {2: {"type_modifier": b"o"}}},
|
|
67
|
+
)
|
|
68
|
+
r(
|
|
69
|
+
b"BADownloadManager",
|
|
70
|
+
b"fetchCurrentDownloadsWithCompletionHandler:",
|
|
71
|
+
{
|
|
72
|
+
"arguments": {
|
|
73
|
+
2: {
|
|
74
|
+
"callable": {
|
|
75
|
+
"retval": {"type": b"v"},
|
|
76
|
+
"arguments": {
|
|
77
|
+
0: {"type": b"^v"},
|
|
78
|
+
1: {"type": b"@"},
|
|
79
|
+
2: {"type": b"@"},
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
)
|
|
86
|
+
r(
|
|
87
|
+
b"BADownloadManager",
|
|
88
|
+
b"performWithExclusiveControl:",
|
|
89
|
+
{
|
|
90
|
+
"arguments": {
|
|
91
|
+
2: {
|
|
92
|
+
"callable": {
|
|
93
|
+
"retval": {"type": b"v"},
|
|
94
|
+
"arguments": {
|
|
95
|
+
0: {"type": b"^v"},
|
|
96
|
+
1: {"type": b"Z"},
|
|
97
|
+
2: {"type": b"@"},
|
|
98
|
+
},
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
)
|
|
104
|
+
r(
|
|
105
|
+
b"BADownloadManager",
|
|
106
|
+
b"performWithExclusiveControlBeforeDate:performHandler:",
|
|
107
|
+
{
|
|
108
|
+
"arguments": {
|
|
109
|
+
3: {
|
|
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
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
)
|
|
122
|
+
r(
|
|
123
|
+
b"BADownloadManager",
|
|
124
|
+
b"scheduleDownload:error:",
|
|
125
|
+
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
126
|
+
)
|
|
127
|
+
r(
|
|
128
|
+
b"BADownloadManager",
|
|
129
|
+
b"startForegroundDownload:error:",
|
|
130
|
+
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
131
|
+
)
|
|
132
|
+
r(
|
|
133
|
+
b"BAURLDownload",
|
|
134
|
+
b"initWithIdentifier:request:essential:fileSize:applicationGroupIdentifier:priority:",
|
|
135
|
+
{"arguments": {4: {"type": b"Z"}}},
|
|
136
|
+
)
|
|
137
|
+
r(
|
|
138
|
+
b"NSObject",
|
|
139
|
+
b"backgroundDownload:didReceiveChallenge:completionHandler:",
|
|
140
|
+
{
|
|
141
|
+
"required": False,
|
|
142
|
+
"retval": {"type": b"v"},
|
|
143
|
+
"arguments": {
|
|
144
|
+
2: {"type": b"@"},
|
|
145
|
+
3: {"type": b"@"},
|
|
146
|
+
4: {
|
|
147
|
+
"callable": {
|
|
148
|
+
"retval": {"type": b"v"},
|
|
149
|
+
"arguments": {
|
|
150
|
+
0: {"type": b"^v"},
|
|
151
|
+
1: {"type": b"q"},
|
|
152
|
+
2: {"type": b"@"},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
"type": b"@?",
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
)
|
|
160
|
+
r(
|
|
161
|
+
b"NSObject",
|
|
162
|
+
b"backgroundDownload:failedWithError:",
|
|
163
|
+
{
|
|
164
|
+
"required": False,
|
|
165
|
+
"retval": {"type": b"v"},
|
|
166
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
|
|
167
|
+
},
|
|
168
|
+
)
|
|
169
|
+
r(
|
|
170
|
+
b"NSObject",
|
|
171
|
+
b"backgroundDownload:finishedWithFileURL:",
|
|
172
|
+
{
|
|
173
|
+
"required": False,
|
|
174
|
+
"retval": {"type": b"v"},
|
|
175
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
|
|
176
|
+
},
|
|
177
|
+
)
|
|
178
|
+
r(
|
|
179
|
+
b"NSObject",
|
|
180
|
+
b"download:didReceiveChallenge:completionHandler:",
|
|
181
|
+
{
|
|
182
|
+
"required": False,
|
|
183
|
+
"retval": {"type": b"v"},
|
|
184
|
+
"arguments": {
|
|
185
|
+
2: {"type": b"@"},
|
|
186
|
+
3: {"type": b"@"},
|
|
187
|
+
4: {
|
|
188
|
+
"callable": {
|
|
189
|
+
"retval": {"type": b"v"},
|
|
190
|
+
"arguments": {
|
|
191
|
+
0: {"type": b"^v"},
|
|
192
|
+
1: {"type": b"q"},
|
|
193
|
+
2: {"type": b"@"},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
"type": b"@?",
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
)
|
|
201
|
+
r(
|
|
202
|
+
b"NSObject",
|
|
203
|
+
b"download:didWriteBytes:totalBytesWritten:totalBytesExpectedToWrite:",
|
|
204
|
+
{
|
|
205
|
+
"required": False,
|
|
206
|
+
"retval": {"type": b"v"},
|
|
207
|
+
"arguments": {
|
|
208
|
+
2: {"type": b"@"},
|
|
209
|
+
3: {"type": b"q"},
|
|
210
|
+
4: {"type": b"q"},
|
|
211
|
+
5: {"type": b"q"},
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
)
|
|
215
|
+
r(
|
|
216
|
+
b"NSObject",
|
|
217
|
+
b"download:failedWithError:",
|
|
218
|
+
{
|
|
219
|
+
"required": False,
|
|
220
|
+
"retval": {"type": b"v"},
|
|
221
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
|
|
222
|
+
},
|
|
223
|
+
)
|
|
224
|
+
r(
|
|
225
|
+
b"NSObject",
|
|
226
|
+
b"download:finishedWithFileURL:",
|
|
227
|
+
{
|
|
228
|
+
"required": False,
|
|
229
|
+
"retval": {"type": b"v"},
|
|
230
|
+
"arguments": {2: {"type": b"@"}, 3: {"type": b"@"}},
|
|
231
|
+
},
|
|
232
|
+
)
|
|
233
|
+
r(
|
|
234
|
+
b"NSObject",
|
|
235
|
+
b"downloadDidBegin:",
|
|
236
|
+
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
237
|
+
)
|
|
238
|
+
r(
|
|
239
|
+
b"NSObject",
|
|
240
|
+
b"downloadDidPause:",
|
|
241
|
+
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"@"}}},
|
|
242
|
+
)
|
|
243
|
+
r(
|
|
244
|
+
b"NSObject",
|
|
245
|
+
b"downloadsForRequest:manifestURL:extensionInfo:",
|
|
246
|
+
{
|
|
247
|
+
"required": False,
|
|
248
|
+
"retval": {"type": b"@"},
|
|
249
|
+
"arguments": {2: {"type": b"q"}, 3: {"type": b"@"}, 4: {"type": b"@"}},
|
|
250
|
+
},
|
|
251
|
+
)
|
|
252
|
+
r(
|
|
253
|
+
b"NSObject",
|
|
254
|
+
b"extensionWillTerminate",
|
|
255
|
+
{"required": False, "retval": {"type": b"v"}},
|
|
256
|
+
)
|
|
257
|
+
finally:
|
|
258
|
+
objc._updatingMetadata(False)
|
|
259
|
+
|
|
260
|
+
objc.registerNewKeywordsFromSelector(
|
|
261
|
+
"BAURLDownload", b"initWithIdentifier:request:applicationGroupIdentifier:"
|
|
262
|
+
)
|
|
263
|
+
objc.registerNewKeywordsFromSelector(
|
|
264
|
+
"BAURLDownload", b"initWithIdentifier:request:applicationGroupIdentifier:priority:"
|
|
265
|
+
)
|
|
266
|
+
objc.registerNewKeywordsFromSelector(
|
|
267
|
+
"BAURLDownload",
|
|
268
|
+
b"initWithIdentifier:request:essential:fileSize:applicationGroupIdentifier:priority:",
|
|
269
|
+
)
|
|
270
|
+
objc.registerNewKeywordsFromSelector(
|
|
271
|
+
"BAURLDownload", b"initWithIdentifier:request:fileSize:applicationGroupIdentifier:"
|
|
272
|
+
)
|
|
273
|
+
expressions = {}
|
|
274
|
+
|
|
275
|
+
# END OF FILE
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pyobjc-framework-BackgroundAssets
|
|
3
|
+
Version: 11.0
|
|
4
|
+
Summary: Wrappers for the framework BackgroundAssets 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,BackgroundAssets
|
|
10
|
+
Platform: MacOS X (>=13.0)
|
|
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
|
+
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
34
|
+
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
35
|
+
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
36
|
+
Requires-Dist: pyobjc-core >=11.0
|
|
37
|
+
Requires-Dist: pyobjc-framework-Cocoa >=11.0
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
Wrappers for the "BackgroundAssets" framework on macOS.
|
|
41
|
+
|
|
42
|
+
These wrappers don't include documentation, please check Apple's documentation
|
|
43
|
+
for information on how to use this framework and PyObjC's documentation
|
|
44
|
+
for general tips and tricks regarding the translation between Python
|
|
45
|
+
and (Objective-)C frameworks
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Project links
|
|
49
|
+
-------------
|
|
50
|
+
|
|
51
|
+
* `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
|
|
52
|
+
|
|
53
|
+
* `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
|
|
54
|
+
|
|
55
|
+
* `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
|
|
56
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
BackgroundAssets/_BackgroundAssets.cpython-313-darwin.so,sha256=lU67Ak6FV2uK9GiJD58KQppjCmtotEW_TJ5qpBiEjq0,68552
|
|
2
|
+
BackgroundAssets/__init__.py,sha256=zTvZLESsq6T586KTnaSHdhYCF_YlaWlbElGMlCvwWOk,1299
|
|
3
|
+
BackgroundAssets/_metadata.py,sha256=N7s_zdSzAR2nKqa_mcG7ztQSxmObl0BdCztT4OgavrA,8411
|
|
4
|
+
pyobjc_framework_BackgroundAssets-11.0.dist-info/METADATA,sha256=ZzR4jGntePQBSMaZlcMNDcttgttFL-SKXNplEw4A_mc,2266
|
|
5
|
+
pyobjc_framework_BackgroundAssets-11.0.dist-info/WHEEL,sha256=BaDLO86rtLHw1JImJZ9x0AYN59zASvSeL7zhuB6KJ20,116
|
|
6
|
+
pyobjc_framework_BackgroundAssets-11.0.dist-info/pyobjc-build-info.txt,sha256=R5YEsJoyZ8GByMQk4k_4WWEg6V4RNO715NMQwx6YaNI,85
|
|
7
|
+
pyobjc_framework_BackgroundAssets-11.0.dist-info/top_level.txt,sha256=f4rbXmA-IysbgmEMDTGxY42ozvwWHzjCyKeV_sXBowE,17
|
|
8
|
+
pyobjc_framework_BackgroundAssets-11.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
BackgroundAssets
|