skillfed

pyobjc-framework-CoreSpotlight

Wrappers for the framework CoreSpotlight on macOS

pyobjc-framework-corespotlight v12.2.2 657.6K downloads/30d#5,475 on PyPI803
Permissive license MIT Active released

What it is and what it does

This package wraps Apple's CoreSpotlight framework for use in Python, letting you interact with macOS's built-in search indexing system. It depends on pyobjc-core and pyobjc-framework-Cocoa to bridge between Python and Objective-C, and runs only on macOS with Python 3.10 or later.

The package itself provides no high-level documentation—you work directly with the CoreSpotlight API as exposed through PyObjC's translation layer, consulting Apple's framework documentation and PyObjC's general guidance on Python-to-Objective-C mapping. It is useful for macOS applications that need to index content for Spotlight search or query indexed metadata.

Use it for:

  • Index custom document types or app content into macOS Spotlight so users can search them from the system search interface
  • Query the Spotlight index programmatically to retrieve indexed metadata about files or content on the system
  • Build macOS desktop applications that integrate with the native search experience without reimplementing indexing

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python bindings to macOS's CoreSpotlight framework, enabling programmatic access to the system's search indexing and metadata capabilities.

Yes, if you are building a macOS application in Python that needs to integrate with Spotlight search or access CoreSpotlight APIs. The package is actively maintained, has no known vulnerabilities, and carries a permissive license. Install friction is moderate due to platform specificity and compiled dependencies, but that is inherent to the task. Not applicable on non-macOS platforms.

Install

pyobjc-framework-corespotlight on PyPI

pip

pip install pyobjc-framework-corespotlight

uv

uv add pyobjc-framework-corespotlight

poetry

poetry add pyobjc-framework-corespotlight

Installing pyobjc-framework-CoreSpotlight

Before you install

Medium friction: platform-specific wheels for macOS only (Python 3.10–3.15), with two compiled dependencies. Active maintenance—released 3 days ago with recent commits—reduces risk of bit-rot.

License in practice

MIT license is permissive; you may use, modify, and distribute this package with minimal restrictions, provided you retain the license notice.

Quickstart

pip install pyobjc-framework-corespotlight
import CoreSpotlight
# Use CoreSpotlight APIs via PyObjC translation layer

macOS only; requires Python 3.10 or later and depends on pyobjc-core and pyobjc-framework-Cocoa

Verify before relying

  • Whether CoreSpotlight access requires specific macOS versions or entitlements beyond wheel metadata
  • Performance characteristics when indexing large numbers of items or querying the search index
  • High-level usage examples or tutorials beyond Apple's framework documentation

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 657,645/month — #5,475 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyobjc_framework_corespotlight-12.2.2-cp310-cp310-macosx_10_9_universal2.whl; pyobjc_framework_corespotlight-12.2.2-cp311-cp311-macosx_10_9_universal2.whl; pyobjc_framework_corespotlight-12.2.2-cp312-cp312-macosx_10_13_universal2.whl; pyobjc_framework_corespotlight-12.2.2-cp313-cp313-macosx_10_13_universal2.whl; pyobjc_framework_corespotlight-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl; pyobjc_framework_corespotlight-12.2.2-cp314-cp314-macosx_10_15_universal2.whl; pyobjc_framework_corespotlight-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl; pyobjc_framework_corespotlight-12.2.2-cp315-cp315-macosx_10_15_universal2.whl; pyobjc_framework_corespotlight-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl

Keywords: PyObjC, CoreSpotlight

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 spotlight search integrationcorespotlight python bindingsmacos search index apipyobjc framework wrappermacos metadata indexingspotlight framework python
macos-nativeobjective-c-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-LinkPresentation

Provides Python bindings for macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-SearchKit

Provides Python bindings for macOS's SearchKit…

permissive · top 15,000 on PyPI

pyobjc-framework-MapKit

Provides Python bindings to Apple's MapKit…

permissive · top 15,000 on PyPI

pyobjc-framework-SafariServices

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-SharedWithYouCore

Provides Python bindings for Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-DeviceDiscoveryExtension

Provides Python bindings for Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-BrowserEngineKit

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-CoreLocation

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-Network

Provides Python bindings to Apple's Network…

permissive · top 15,000 on PyPI

pyobjc-framework-PhotosUI

Provides Python bindings to macOS's PhotosUI…

permissive · top 15,000 on PyPI