Registry / http-networking / mitmproxy-macos

mitmproxy-macos

JSON →
library0.12.9pypypiunverified

Native macOS TLS support for mitmproxy (mitmproxy-rs). This library provides the low-level TLS API for mitmproxy on macOS, leveraging Apple's Security Framework. Version 0.12.9 is the latest, with monthly releases. Compatible with Python >=3.12.

pip install mitmproxy-macos
INSTALL
IMPORT
SIG · MITMPROXY-MACOS
M
mitmproxy-macos
http-networkingpythonv0.12.9
Install
1.6s avg
Import
Disk
21MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.11.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 1.5s
py 3.11
✓ —
✓ 1.7s
py 3.12
✓ —
✓ 1.5s
py 3.13
✓ —
✓ 1.6s
py 3.9
✕ build_error
✕ build_error
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TLSLayer
from mitmproxy_macos import TLSLayer
from mitmproxy_macos import TLSLayer

Verify import and basic instantiation of TLSLayer.

import os from mitmproxy_macos import TLSLayer # The library is meant to be used as part of mitmproxy. # Below is a snippet to verify the import works. tls_layer = TLSLayer() print('TLSLayer initialized successfully')
Debug
Known issues
breakingRequires Python >=3.12; not compatible with earlier versions.
fix
Upgrade Python to 3.12 or later.
affects: <0.12.0
deprecatedThe module `mitmproxy_macos.tls` was deprecated in 0.12.5; use `mitmproxy_macos.TLSLayer` instead.
fix
Replace `from mitmproxy_macos.tls import TLSLayer` with `from mitmproxy_macos import TLSLayer`.
affects: >=0.12.5, <0.13.0
gotchaLibrary only works on macOS; importing on other platforms raises an ImportError.
fix
Use conditional import or run only on macOS.
affects: all
Upgrade
Version history
0.12.9latest on PyPI · released Jan 30, 2026
Audit
Dependencies
mitmproxyrequiredmitmproxy-macos is a dependency of mitmproxy; typically installed automatically as part of mitmproxy.
cryptographyrequiredRequired for TLS operations; installed as a transitive dependency.
Agent activity
26 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources