skillfed

pyobjc-framework-AVFoundation

Wrappers for the framework AVFoundation on macOS

pyobjc-framework-avfoundation v12.2.2 715.7K downloads/30d#5,247 on PyPI803
Permissive license MIT Active released

What it is and what it does

This package wraps Apple's AVFoundation framework for use in Python on macOS, translating Objective-C APIs into Python-callable interfaces. It sits on top of pyobjc-core and four framework dependencies (pyobjc-framework-CoreMedia, pyobjc-framework-CoreAudio, pyobjc-framework-Cocoa, and pyobjc-framework-Quartz) to expose audio capture, video recording, media playback, and related functionality.

Developers use it to build macOS applications that need native media handling—screen recording, audio input/output, video composition, or real-time media processing—without dropping into Objective-C. The package is a thin binding layer; it does not include its own documentation, so you rely on Apple's documentation and PyObjC's translation guides to understand how to call the underlying APIs.

Use it for:

  • Build a macOS screen recorder or audio capture utility in Python.
  • Create a video editing or composition tool that leverages native AVFoundation codecs.
  • Develop a real-time audio processing application using AVFoundation's audio engine.
  • Integrate media playback or streaming into a macOS desktop application.
  • Access camera and microphone hardware directly for video conferencing or live streaming.

Worth the install?

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

Provides Python bindings to macOS's AVFoundation framework, enabling access to audio, video, and media capabilities through PyObjC.

Yes, if you are developing on macOS and need native audio or video capabilities. The package is actively maintained, has no known vulnerabilities, and carries a permissive MIT license. Install friction is moderate due to platform and Python version constraints, but that is inherent to any macOS-specific binding. Not applicable on Windows or Linux.

Install

pyobjc-framework-avfoundation on PyPI

pip

pip install pyobjc-framework-avfoundation

uv

uv add pyobjc-framework-avfoundation

poetry

poetry add pyobjc-framework-avfoundation

Installing pyobjc-framework-AVFoundation

Before you install

Medium install friction due to platform specificity—wheels are macOS-only and require matching Python versions and architecture. Five runtime dependencies on other PyObjC framework packages add setup complexity. Active maintenance with recent releases.

License in practice

MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects.

Quickstart

pip install pyobjc-framework-avfoundation
import AVFoundation
# Use AVFoundation classes via the wrapper

macOS only; requires Python 3.10 or later and matching wheel architecture (universal2 or CPU-specific)

Verify before relying

  • Whether AVFoundation bindings cover all current macOS versions or have version-specific gaps.
  • Performance characteristics when handling high-bandwidth audio or video streams.
  • Completeness of the wrapper relative to the native AVFoundation API surface.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies 5 — pyobjc-core, pyobjc-framework-CoreMedia, pyobjc-framework-CoreAudio, pyobjc-framework-Cocoa, pyobjc-framework-Quartz
Maintenance actively maintained — 3 days since the last release
Last repo commit
First released
Downloads 715,738/month — #5,247 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

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

Keywords: PyObjC, AVFoundation, AVFAudio

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 avfoundation python bindingsaudio video capture macospyobjc framework wrappermacos media framework pythonavfoundation python wrapper
macos-onlymedia-frameworkpyobjc

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

Provides Python bindings for Apple's Cinematic…

permissive · top 15,000 on PyPI

pyobjc-framework-CoreMedia

Provides Python bindings to macOS's CoreMedia…

permissive · top 15,000 on PyPI

pyobjc-framework-CoreMediaIO

Provides Python bindings to Apple's CoreMediaIO…

permissive · top 15,000 on PyPI

pyobjc-framework-AudioVideoBridging

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-PHASE

Provides Python bindings to Apple's PHASE…

permissive · top 15,000 on PyPI

pyobjc-framework-MediaPlayer

Provides Python bindings to macOS's MediaPlayer…

permissive · top 15,000 on PyPI

pyobjc-framework-AVKit

Provides Python bindings to macOS's AVKit…

permissive · top 15,000 on PyPI

pyobjc-framework-ImageCaptureCore

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-ScreenCaptureKit

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pymediainfo

pymediainfo extracts detailed metadata from…

permissive · top 5,000 on PyPI