pyobjc-framework-OSLog
Wrappers for the framework OSLog on macOS
What it is and what it does
pyobjc-framework-oslog is a thin Python wrapper around Apple's OSLog framework, part of the broader PyObjC project that bridges Python and Objective-C. It allows Python developers on macOS to write log messages directly to the system's unified logging infrastructure. The package is a compiled extension that depends on pyobjc-core, pyobjc-framework-CoreMedia, pyobjc-framework-Cocoa, and pyobjc-framework-Quartz.
The wrapper requires Python 3.10 or later and only runs on macOS. The package provides no standalone documentation beyond pointing you to Apple's OSLog documentation and PyObjC's general translation guide, so you will need to understand both the underlying framework and PyObjC's calling conventions to use it effectively.
Use it for:
- Integrate Python CLI tools with macOS system logging so logs appear in system log queries.
- Write logging from Python daemons or background services to the unified logging system.
- Debug macOS applications by routing Python module logs through the system logging infrastructure.
- Ensure Python application logs respect macOS logging levels and policies configured system-wide.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to macOS's OSLog framework, enabling logging to the system's unified logging system from Python applications.
Yes, if you are building a Python application on macOS that needs to integrate with the system's unified logging infrastructure. The package is actively maintained, has no known vulnerabilities, and carries a permissive license. The main constraint is that it only works on macOS and requires understanding both the OSLog framework and PyObjC's translation layer; it is not suitable for cross-platform projects.
Install
pyobjc-framework-oslog on PyPI
pip
pip install pyobjc-framework-osloguv
uv add pyobjc-framework-oslogpoetry
poetry add pyobjc-framework-oslogInstalling pyobjc-framework-OSLog
Before you install
Medium install friction due to platform-specific wheels (macOS only) and multiple compiled dependencies. Recently released (3 days ago) with active maintenance and no known vulnerabilities.
License in practice
MIT license is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install pyobjc-framework-oslog
import pyobjc_framework_oslog
# Use through pyobjc-core and framework dependencies
macOS only; requires Python 3.10 or later.
Verify before relying
- Whether the wrapper covers the full OSLog API surface or only a subset of framework functionality.
- Performance characteristics when logging high-volume messages to the unified logging system.
- Specific usage patterns and code examples beyond what Apple's OSLog documentation provides.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 4 — pyobjc-core, pyobjc-framework-CoreMedia, pyobjc-framework-Cocoa, pyobjc-framework-Quartz |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 654,172/month — #5,528 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyobjc_framework_oslog-12.2.2-cp310-cp310-macosx_10_9_universal2.whl; pyobjc_framework_oslog-12.2.2-cp311-cp311-macosx_10_9_universal2.whl; pyobjc_framework_oslog-12.2.2-cp312-cp312-macosx_10_13_universal2.whl; pyobjc_framework_oslog-12.2.2-cp313-cp313-macosx_10_13_universal2.whl; pyobjc_framework_oslog-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl; pyobjc_framework_oslog-12.2.2-cp314-cp314-macosx_10_15_universal2.whl; pyobjc_framework_oslog-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl; pyobjc_framework_oslog-12.2.2-cp315-cp315-macosx_10_15_universal2.whl; pyobjc_framework_oslog-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl
Keywords: PyObjC, OSLog
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-NetworkProvides Python bindings to Apple's Network…
permissive · top 15,000 on PyPI
pyobjc-framework-BrowserEngineKitProvides Python bindings to Apple's…
permissive · top 15,000 on PyPI
pyobjc-framework-SafariServicesProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-ScreenSaverProvides Python bindings to macOS's ScreenSaver…
permissive · top 15,000 on PyPI
pyobjc-framework-FileProviderProvides Python bindings to macOS's…
permissive · top 15,000 on PyPI
pyobjc-framework-ClassKitProvides Python bindings to Apple's ClassKit…
permissive · top 15,000 on PyPI
pyobjc-framework-CarbonProvides Python bindings to macOS's Carbon…
permissive · top 15,000 on PyPI
pyobjc-framework-CallKitProvides Python bindings for Apple's CallKit…
permissive · top 15,000 on PyPI
pyobjc-framework-FSKitProvides Python bindings to macOS's FSKit…
permissive · top 15,000 on PyPI
pyobjc-framework-DeviceDiscoveryExtensionProvides Python bindings for Apple's…
permissive · top 15,000 on PyPI