skillfed

pyobjc-framework-OSLog

Wrappers for the framework OSLog on macOS

pyobjc-framework-oslog v12.2.2 654.2K downloads/30d#5,528 on PyPI803
Permissive license MIT Active released

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

uv

uv add pyobjc-framework-oslog

poetry

poetry add pyobjc-framework-oslog

Installing 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

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 system logging pythonoslog framework bindingsunified logging macospython macos loggingpyobjc oslog wrapper
macos-onlysystem-integrationlogging

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

Provides Python bindings to Apple's Network…

permissive · top 15,000 on PyPI

pyobjc-framework-BrowserEngineKit

Provides Python bindings to Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-SafariServices

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-ScreenSaver

Provides Python bindings to macOS's ScreenSaver…

permissive · top 15,000 on PyPI

pyobjc-framework-FileProvider

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-ClassKit

Provides Python bindings to Apple's ClassKit…

permissive · top 15,000 on PyPI

pyobjc-framework-Carbon

Provides Python bindings to macOS's Carbon…

permissive · top 15,000 on PyPI

pyobjc-framework-CallKit

Provides Python bindings for Apple's CallKit…

permissive · top 15,000 on PyPI

pyobjc-framework-FSKit

Provides Python bindings to macOS's FSKit…

permissive · top 15,000 on PyPI

pyobjc-framework-DeviceDiscoveryExtension

Provides Python bindings for Apple's…

permissive · top 15,000 on PyPI