pyobjc-framework-WebKit 12.2__cp315-cp315-macosx_10_15_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.
- JavaScriptCore/_JavaScriptCore.cpython-315-darwin.so +0 -0
- JavaScriptCore/__init__.py +56 -0
- JavaScriptCore/_metadata.py +688 -0
- JavaScriptCore/_util.py +25 -0
- WebKit/_WebKit.cpython-315-darwin.so +0 -0
- WebKit/__init__.py +73 -0
- WebKit/_metadata.py +4219 -0
- pyobjc_framework_webkit-12.2.dist-info/METADATA +72 -0
- pyobjc_framework_webkit-12.2.dist-info/RECORD +13 -0
- pyobjc_framework_webkit-12.2.dist-info/WHEEL +5 -0
- pyobjc_framework_webkit-12.2.dist-info/licenses/LICENSE.txt +10 -0
- pyobjc_framework_webkit-12.2.dist-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_webkit-12.2.dist-info/top_level.txt +2 -0
|
Binary file
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the JavaScriptCore 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
|
+
import objc as _objc
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def _setup():
|
|
12
|
+
import sys
|
|
13
|
+
|
|
14
|
+
import CoreFoundation
|
|
15
|
+
import objc
|
|
16
|
+
from . import _metadata, _util, _JavaScriptCore
|
|
17
|
+
|
|
18
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
19
|
+
name="JavaScriptCore",
|
|
20
|
+
frameworkIdentifier="com.apple.JavaScriptCore",
|
|
21
|
+
frameworkPath=objc.pathForFramework(
|
|
22
|
+
"/System/Library/Frameworks/JavaScriptCore.framework"
|
|
23
|
+
),
|
|
24
|
+
globals_dict=globals(),
|
|
25
|
+
inline_list=None,
|
|
26
|
+
parents=(
|
|
27
|
+
_util,
|
|
28
|
+
_JavaScriptCore,
|
|
29
|
+
CoreFoundation,
|
|
30
|
+
),
|
|
31
|
+
metadict=_metadata.__dict__,
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
globals()["__dir__"] = dir_func
|
|
35
|
+
globals()["__getattr__"] = getattr_func
|
|
36
|
+
|
|
37
|
+
del sys.modules["JavaScriptCore._metadata"]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
globals().pop("_setup")()
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def JSExportAs(PropertyName, Selector):
|
|
44
|
+
return (
|
|
45
|
+
_objc.selector(
|
|
46
|
+
None,
|
|
47
|
+
selector=Selector.selector
|
|
48
|
+
+ b"__JS_EXPORT_AS__"
|
|
49
|
+
+ PropertyName.encode()
|
|
50
|
+
+ b":",
|
|
51
|
+
signature=Selector.signature + b"@",
|
|
52
|
+
isRequired=False,
|
|
53
|
+
isClassMethod=Selector.isClassMethod,
|
|
54
|
+
),
|
|
55
|
+
Selector,
|
|
56
|
+
)
|