--- id: pyobjc-framework-security version: "12.2.2" license: MIT license_treatment: permissive maintenance: active --- # pyobjc-framework-Security — Wrappers for the framework Security on macOS License: permissive · Maintenance: active · Downloads: 995.8K/mo ## What it is and what it does pyobjc-framework-security is a thin wrapper layer that exposes Apple's native macOS Security framework to Python code via PyObjC. It allows developers to call Security framework functions directly from Python without writing Objective-C, bridging the gap between Python and macOS's built-in cryptographic, certificate, and keychain management capabilities. The package is part of the larger PyObjC project and provides no independent documentation—users must consult Apple's Security framework documentation and PyObjC's general translation guides to understand how to use each wrapped API. It depends on pyobjc-core and pyobjc-framework-Cocoa and runs only on macOS, making it a platform-specific tool for developers who need direct access to native security APIs. Use it for: - Access macOS keychain to store and retrieve passwords, certificates, or cryptographic keys from Python applications. - Perform certificate validation or inspection using native Security framework APIs in a Python context. - Integrate Python scripts with macOS security features for system administration or automation tasks. - Build cross-language macOS applications that need to call Security framework functions from Python components. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python bindings to macOS's native Security framework, enabling access to cryptographic, certificate, and keychain operations through PyObjC. Yes, if you are developing on macOS and need direct access to native Security framework APIs from Python. The package is actively maintained, has no known vulnerabilities, and carries a permissive license. However, it is macOS-only and requires familiarity with both PyObjC's translation model and Apple's Security framework documentation, making it suitable only for developers with those specific needs. ## Install pip install pyobjc-framework-security uv add pyobjc-framework-security poetry add pyobjc-framework-security ## Installing pyobjc-framework-Security Before you install: Medium install friction due to platform and compiled-dependency constraints. The package is actively maintained with recent releases and supports current Python versions (3.10–3.15), but installation requires macOS and depends on pyobjc-core and pyobjc-framework-Cocoa. License in practice: MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects. Quickstart: pip install pyobjc-framework-security from Security import SecKeychain keychain = SecKeychain.defaultKeychain() macOS operating system required; installation will fail on Linux or Windows. Requires Python 3.10 or later. Verify before relying: - Specific Security framework capabilities exposed (e.g., which classes/functions are wrapped) not detailed in the excerpt. - Performance characteristics or overhead of the Python-to-Objective-C bridge for security operations. - Whether all current macOS Security framework APIs are covered or if some are missing. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 995.8K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags macos security framework python, keychain access python, certificate handling macos, cryptographic operations macos, pyobjc security bindings, macos native security api, objective-c security wrapper, macos-native, pyobjc-binding, cryptography [View on SkillFed](https://skillfed.io/packages/pyobjc-framework-security) · [View on PyPI](https://pypi.org/project/pyobjc-framework-security/)