Registry / auth-security / pyobjc-framework-securityinterface

pyobjc-framework-securityinterface

JSON →
library12.2pypypiunverified

This library provides Python wrappers for the `SecurityInterface` framework on macOS, allowing Python applications to integrate with macOS security UI components. It's part of the larger PyObjC project, bridging Python and Objective-C. The current version is 12.1, and releases are frequent, typically aligning with new macOS SDK updates and Python version support changes.

pip install pyobjc-framework-securityinterface
INSTALL
IMPORT
SIG · PYOBJC-FRAMEWORK-S
P
pyobjc-framework-securityinterface
auth-securitypythonv12.2
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
build_error
glibc
py 3.103.920 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SFAuthorizationView
from SecurityInterface import SFAuthorizationView
from AppKit import SFAuthorizationView
PyObjC frameworks are imported directly by their framework name, not via AppKit or other parent frameworks.

This quickstart demonstrates how to import and instantiate a core class from the `SecurityInterface` framework. For full UI functionality, including displaying windows and handling user input, you would typically integrate this with an `AppKit` application lifecycle.

import objc from SecurityInterface import SFAuthorizationView # Instantiate a SecurityInterface UI component auth_view = SFAuthorizationView.alloc().init() print(f"Successfully instantiated: {auth_view}") print(f"Type: {type(auth_view)}") print(f"Objective-C class: {auth_view.pyobjc_class__}") # Note: For actual UI display and interaction, you would need # to initialize an NSApplication and run its event loop (e.g., using AppKit or PyObjCTools.AppHelper). # This quickstart only demonstrates successful import and instantiation.
Debug
Known issues
breakingPyObjC dropped support for Python 3.9 in version 12.0 and Python 3.8 in version 11.0. Older PyObjC versions will not install on newer Python versions and vice-versa.
fix
Ensure your Python version meets the `requires_python` specification for the PyObjC version you intend to use. For current versions (>=12.0), Python 3.10+ is required.
affects: >=11.0
breakingVersion 11.1 introduced significant changes to how PyObjC handles Automatic Reference Counting (ARC) for initializer methods, aligning with `clang`'s documentation. This can affect custom Objective-C integration and memory management in Python subclasses.
fix
Review code that interacts with Objective-C initializer methods (those in the 'init' family) in Python subclasses for potential changes in reference counting behavior. Consult the PyObjC 11.1 release notes for details.
affects: >=11.1
gotchaPyObjC framework packages, including `pyobjc-framework-securityinterface`, are macOS-specific and will not work on other operating systems. They directly wrap Apple's system frameworks.
fix
This library is only suitable for macOS development. For cross-platform applications, use platform-agnostic libraries or conditional imports.
affects: All
gotchaThe functionality exposed by `pyobjc-framework-securityinterface` is directly tied to the macOS SDK version it was compiled against. Newer macOS features or deprecated APIs may lead to differing behavior or availability across macOS versions.
fix
Be aware that an application using this library might behave differently or require specific macOS versions for certain features. Check Apple's documentation for the `SecurityInterface` framework relevant to your target macOS version.
affects: All
breakingChanges in how PyObjC handles `__init__` when a user-defined `__new__` exists (v10.3 initially broke it, v10.3.1 partially reverted). If you are subclassing Objective-C classes in Python and overriding `__new__` and `__init__`, review the behavior.
fix
If you override both `__new__` and `__init__` in Python subclasses of Objective-C objects, verify the behavior in versions 10.3 and later. The current recommendation is to primarily use `__new__` for Objective-C object construction via PyObjC.
affects: >=10.3
Upgrade
Version history
12.2latest on PyPI · released May 30, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
pyobjc-framework-securityinterface — pip install pyobjc-framework-securityinterface · libregistry