skillfed

pyobjc-framework-Network

Wrappers for the framework Network on macOS

pyobjc-framework-network v12.2.2 655.6K downloads/30d#5,513 on PyPI803
Permissive license MIT Active released

What it is and what it does

pyobjc-framework-network is a thin wrapper layer that exposes Apple's native Network framework to Python developers on macOS. It sits on top of PyObjC's core bridge infrastructure and the Cocoa framework bindings, translating Objective-C classes and methods into Python equivalents so you can call Network framework APIs directly from Python code.

The package is primarily useful for macOS-specific applications that need low-level networking control—things like custom protocol handling, advanced socket configuration, or integration with system-level networking features. It does not include its own documentation; you rely on Apple's Network framework documentation and PyObjC's general translation guide to understand how to use the exposed APIs. This is a straightforward bridge, not a high-level abstraction, so you are working with the same concepts and patterns as you would in Objective-C or Swift.

Use it for:

  • Build macOS desktop applications that need direct access to Apple's Network framework for custom protocol implementation.
  • Integrate Python scripts with system-level networking features on macOS that are not available through standard Python libraries.
  • Develop tools that require low-level socket or connection management on macOS using Python.
  • Create macOS automation or system utilities that leverage native networking capabilities.

Worth the install?

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

Provides Python bindings to Apple's Network framework on macOS, enabling direct access to low-level networking APIs from Python code.

Yes, if you are developing on macOS and need direct access to Apple's Network framework. The package is actively maintained, production-stable, has no known vulnerabilities, and covers modern Python versions. Install friction is moderate due to platform and architecture specificity, but that is inherent to any macOS-native binding. Not applicable for cross-platform projects or non-macOS development.

Install

pyobjc-framework-network on PyPI

pip

pip install pyobjc-framework-network

uv

uv add pyobjc-framework-network

poetry

poetry add pyobjc-framework-network

Installing pyobjc-framework-Network

Before you install

Medium install friction: macOS-only wheels for Python 3.10–3.15, with dependencies on pyobjc-core and pyobjc-framework-Cocoa. Active maintenance (last commit 2026-08-14, release 3 days ago) and production-stable status reduce risk.

License in practice

MIT license permits commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install pyobjc-framework-network
import Network
# Access Network framework classes and functions via the Network module

macOS only; requires Python 3.10 or later and a compatible macOS version matching the wheel (10.9 to 10.15 depending on Python version).

Verify before relying

  • Specific Network framework APIs exposed and their completeness relative to Apple's current documentation.
  • Performance characteristics and overhead of the Python-to-Objective-C bridge for network operations.
  • Whether this is the recommended approach versus native Swift or direct C bindings for new projects.

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

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

Keywords: PyObjC, Network

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 network framework pythonpyobjc network bindingsapple network api pythonmacos networking libraryobjective-c network wrapper
macos-onlyobjective-c-bridge

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

Provides Python bindings to macOS's Accounts…

permissive · top 15,000 on PyPI

pyobjc-framework-BusinessChat

Provides Python bindings for Apple's…

permissive · top 15,000 on PyPI

pyobjc-framework-CallKit

Provides Python bindings for Apple's CallKit…

permissive · top 15,000 on PyPI

pyobjc-framework-CFNetwork

Provides Python bindings to macOS's CFNetwork…

permissive · top 15,000 on PyPI

pyobjc-framework-ClassKit

Provides Python bindings to Apple's ClassKit…

permissive · top 15,000 on PyPI

pyobjc-framework-CoreML

Provides Python bindings to Apple's CoreML…

permissive · top 5,000 on PyPI

pyobjc-framework-ExceptionHandling

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-iTunesLibrary

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-KernelManagement

Provides Python bindings to macOS's…

permissive · top 15,000 on PyPI

pyobjc-framework-libdispatch

Provides Python bindings to macOS's libdispatch…

permissive · top 5,000 on PyPI