pyobjc-framework-Security 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.
Binary file
Security/__init__.py ADDED
@@ -0,0 +1,93 @@
1
+ """
2
+ Python mapping for the Security 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, _Security
15
+
16
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
17
+ name="Security",
18
+ frameworkIdentifier="com.apple.security",
19
+ frameworkPath=objc.pathForFramework(
20
+ "/System/Library/Frameworks/Security.framework"
21
+ ),
22
+ globals_dict=globals(),
23
+ inline_list=None,
24
+ parents=(
25
+ _Security,
26
+ Foundation,
27
+ ),
28
+ metadict=_metadata.__dict__,
29
+ )
30
+
31
+ globals()["__dir__"] = dir_func
32
+ globals()["__getattr__"] = getattr_func
33
+
34
+ del sys.modules["Security._metadata"]
35
+
36
+ # The type encoding for older versions of macOS (at least
37
+ # up to 10.11)
38
+
39
+ if objc.macos_available(10, 10):
40
+ from . import SecAccessControlGetTypeID # isort:skip
41
+
42
+ objc.registerCFSignature(
43
+ "SecAccessControl",
44
+ b"^{OpaqueSecAccessControl=}",
45
+ SecAccessControlGetTypeID(),
46
+ )
47
+
48
+ from . import SecTrustedApplicationGetTypeID # isort:skip
49
+
50
+ objc.registerCFSignature(
51
+ "SecTrustedApplicationRef",
52
+ b"^{OpaqueSecTrustedApplicationRef=}",
53
+ SecTrustedApplicationGetTypeID(),
54
+ )
55
+
56
+ from . import SecCertificateGetTypeID # isort:skip
57
+
58
+ objc.registerCFSignature(
59
+ "SecCertificateRef",
60
+ b"^{OpaqueSecCertificateRef=}",
61
+ SecCertificateGetTypeID(),
62
+ )
63
+
64
+ from . import SecAccessGetTypeID # isort:skip
65
+
66
+ objc.registerCFSignature(
67
+ "SecAccessRef", b"^{OpaqueSecAccessRef=}", SecAccessGetTypeID()
68
+ )
69
+
70
+ from . import SecIdentityGetTypeID # isort:skip
71
+
72
+ objc.registerCFSignature(
73
+ "SecIdentityRef", b"^{OpaqueSecIdentityRef=}", SecIdentityGetTypeID()
74
+ )
75
+
76
+ from . import SecIdentitySearchGetTypeID # isort:skip
77
+
78
+ objc.registerCFSignature(
79
+ "SecIdentitySearchRef",
80
+ b"^{OpaqueSecIdentitySearchRef=}",
81
+ SecIdentitySearchGetTypeID(),
82
+ )
83
+
84
+ from . import SecTrustedApplicationGetTypeID # isort:skip
85
+
86
+ objc.registerCFSignature(
87
+ "SecTrustedApplicationRef",
88
+ b"^{OpaqueSecAccessControlRef=}",
89
+ SecTrustedApplicationGetTypeID(),
90
+ )
91
+
92
+
93
+ globals().pop("_setup")()