pyobjc-framework-Security
Wrappers for the framework Security on macOS
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 on this page — 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
pyobjc-framework-security on PyPI
pip
pip install pyobjc-framework-securityuv
uv add pyobjc-framework-securitypoetry
poetry add pyobjc-framework-securityInstalling 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 the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 2 — pyobjc-core, pyobjc-framework-Cocoa |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 995,825/month — #4,548 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyobjc_framework_security-12.2.2-cp310-cp310-macosx_10_9_universal2.whl; pyobjc_framework_security-12.2.2-cp311-cp311-macosx_10_9_universal2.whl; pyobjc_framework_security-12.2.2-cp312-cp312-macosx_10_13_universal2.whl; pyobjc_framework_security-12.2.2-cp313-cp313-macosx_10_13_universal2.whl; pyobjc_framework_security-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl; pyobjc_framework_security-12.2.2-cp314-cp314-macosx_10_15_universal2.whl; pyobjc_framework_security-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl; pyobjc_framework_security-12.2.2-cp315-cp315-macosx_10_15_universal2.whl; pyobjc_framework_security-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl
Keywords: PyObjC, Security
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pyobjc-framework-CryptoTokenKitProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-SafetyKitProvides Python bindings to macOS's SafetyKit…
permissive · top 15,000 on PyPI
pyobjc-framework-SecurityFoundationProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-SymbolsProvides Python bindings for macOS's Symbols…
permissive · top 15,000 on PyPI
pyobjc-framework-SecurityInterfaceProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-SecurityUIProvides Python bindings to macOS's SecurityUI…
permissive · top 15,000 on PyPI
pyobjc-framework-FSKitProvides Python bindings to macOS's FSKit…
permissive · top 15,000 on PyPI
pyobjc-framework-GameSaveProvides Python bindings for macOS's GameSave…
permissive · top 15,000 on PyPI
pyobjc-framework-AdServicesProvides Python bindings for Apple's AdServices…
permissive · top 15,000 on PyPI
pyobjc-framework-ThreadNetworkProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI