skillfed

pyobjc-framework-LocalAuthentication

Wrappers for the framework LocalAuthentication on macOS

pyobjc-framework-localauthentication v12.2.2 663.8K downloads/30d#5,433 on PyPI803
Permissive license MIT Active released

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

uv

uv add pyobjc-framework-localauthentication

poetry

poetry add pyobjc-framework-localauthentication

Installing 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

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 biometric authenticationtouch id face id pythonlocal authentication frameworkmacos device authenticationpyobjc localauthenticationpython macos securitybiometric auth macos
macos-onlybiometric-authpyobjc-binding

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

Provides Python bindings for macOS's…

permissive · top 15,000 on PyPI

webauthn

Implements server-side WebAuthn validation for…

permissive · top 5,000 on PyPI

pyobjc-framework-DeviceDiscoveryExtension

Provides Python bindings for Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-Accounts

Provides Python bindings to macOS's Accounts…

permissive · top 15,000 on PyPI

pyobjc-framework-DeviceCheck

Provides Python bindings to Apple's DeviceCheck…

permissive · top 15,000 on PyPI

pyobjc-framework-Network

Provides Python bindings to Apple's Network…

permissive · top 15,000 on PyPI

pyobjc-framework-Security

Provides Python bindings to macOS's native…

permissive · top 5,000 on PyPI

pyobjc-framework-VideoSubscriberAccount

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-AuthenticationServices

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-SecurityInterface

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI