skillfed

pyobjc-framework-Security

Wrappers for the framework Security on macOS

pyobjc-framework-security v12.2.2 995.8K downloads/30d#4,548 on PyPI803
Permissive license MIT Active released

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-security

uv

uv add pyobjc-framework-security

poetry

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 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: MacOS X :: CocoaIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: MacOS :: MacOS XProgramming Language :: Objective CProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Free Threading :: 3 - StableProgramming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: User Interfaces

Tags

macos security framework pythonkeychain access pythoncertificate handling macoscryptographic operations macospyobjc security bindingsmacos native security apiobjective-c security wrapper
macos-nativepyobjc-bindingcryptography

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

pyobjc-framework-CryptoTokenKit

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-SafetyKit

Provides Python bindings to macOS's SafetyKit…

permissive · top 15,000 on PyPI

pyobjc-framework-SecurityFoundation

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-Symbols

Provides Python bindings for macOS's Symbols…

permissive · top 15,000 on PyPI

pyobjc-framework-SecurityInterface

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-SecurityUI

Provides Python bindings to macOS's SecurityUI…

permissive · top 15,000 on PyPI

pyobjc-framework-FSKit

Provides Python bindings to macOS's FSKit…

permissive · top 15,000 on PyPI

pyobjc-framework-GameSave

Provides Python bindings for macOS's GameSave…

permissive · top 15,000 on PyPI

pyobjc-framework-AdServices

Provides Python bindings for Apple's AdServices…

permissive · top 15,000 on PyPI

pyobjc-framework-ThreadNetwork

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI