pyobjc-framework-LocalAuthentication
Wrappers for the framework LocalAuthentication on macOS
What it is and what it does
This package wraps Apple's LocalAuthentication framework, exposing macOS biometric and device authentication APIs to Python. It allows developers to integrate Touch ID, Face ID, and other local authentication mechanisms into Python applications running on macOS. The bindings are thin wrappers around the Objective-C framework with no bundled documentation—users must consult Apple's framework documentation and PyObjC's general translation guides.
The package depends on three other PyObjC framework packages (pyobjc-core, pyobjc-framework-Cocoa, pyobjc-framework-Security) and is distributed as precompiled wheels for macOS universal2 binaries across Python 3.10 through 3.15. It is actively maintained and carries no known security vulnerabilities.
Use it for:
- Add Touch ID or Face ID authentication to a macOS desktop application to unlock features or authorize actions.
- Implement device-level biometric verification in a Python service running on macOS hardware.
- Build a cross-platform authentication layer that uses LocalAuthentication on macOS and falls back to other methods elsewhere.
- Integrate biometric security into a macOS-native Python tool that requires user verification.
- Prototype or test biometric authentication workflows in Python before porting to Objective-C or Swift.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to macOS's LocalAuthentication framework, enabling biometric and device authentication (Touch ID, Face ID) in Python applications.
Yes, if you are building a macOS application in Python and need biometric or device authentication. The package is actively maintained, carries no vulnerabilities, and provides direct access to a native macOS capability. Install friction is moderate due to platform specificity and three framework dependencies, but this is unavoidable for macOS-native authentication. Not applicable on non-macOS platforms.
Install
pyobjc-framework-localauthentication on PyPI
pip
pip install pyobjc-framework-localauthenticationuv
uv add pyobjc-framework-localauthenticationpoetry
poetry add pyobjc-framework-localauthenticationInstalling pyobjc-framework-LocalAuthentication
Before you install
Medium install friction: platform-specific wheels for macOS only (universal2 binaries across Python 3.10–3.15). Three runtime dependencies on other PyObjC framework packages. Active maintenance with a release 3 days old.
License in practice
MIT license is permissive; no restrictions on use, modification, or distribution in commercial or proprietary projects.
Quickstart
pip install pyobjc-framework-localauthentication
from LocalAuthentication import LAContext
context = LAContext()
error = None
can_evaluate = context.canEvaluatePolicy_error_(0, error)
macOS only; requires Python 3.10 or later; LocalAuthentication framework available on modern macOS versions.
Verify before relying
- Specific macOS version requirements for LocalAuthentication framework availability.
- Whether biometric authentication works on all supported macOS hardware (M1/M2/Intel).
- Real-world error handling patterns and fallback behavior when biometric auth is unavailable.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 3 — pyobjc-core, pyobjc-framework-Cocoa, pyobjc-framework-Security |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 663,822/month — #5,433 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyobjc_framework_localauthentication-12.2.2-cp310-cp310-macosx_10_9_universal2.whl; pyobjc_framework_localauthentication-12.2.2-cp311-cp311-macosx_10_9_universal2.whl; pyobjc_framework_localauthentication-12.2.2-cp312-cp312-macosx_10_13_universal2.whl; pyobjc_framework_localauthentication-12.2.2-cp313-cp313-macosx_10_13_universal2.whl; pyobjc_framework_localauthentication-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl; pyobjc_framework_localauthentication-12.2.2-cp314-cp314-macosx_10_15_universal2.whl; pyobjc_framework_localauthentication-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl; pyobjc_framework_localauthentication-12.2.2-cp315-cp315-macosx_10_15_universal2.whl; pyobjc_framework_localauthentication-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl
Keywords: PyObjC, LocalAuthentication
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-LocalAuthenticationEmbeddedUIProvides Python bindings for macOS's…
permissive · top 15,000 on PyPI
webauthnImplements server-side WebAuthn validation for…
permissive · top 5,000 on PyPI
pyobjc-framework-DeviceDiscoveryExtensionProvides Python bindings for Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-AccountsProvides Python bindings to macOS's Accounts…
permissive · top 15,000 on PyPI
pyobjc-framework-DeviceCheckProvides Python bindings to Apple's DeviceCheck…
permissive · top 15,000 on PyPI
pyobjc-framework-NetworkProvides Python bindings to Apple's Network…
permissive · top 15,000 on PyPI
pyobjc-framework-SecurityProvides Python bindings to macOS's native…
permissive · top 5,000 on PyPI
pyobjc-framework-VideoSubscriberAccountProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-AuthenticationServicesProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-SecurityInterfaceProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI