--- id: pytun-pmd3 version: "3.0.3" license: Copyright (c) 2011, montag451. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the… (full text in the JSON record) license_treatment: copyleft maintenance: aging --- # pytun-pmd3 — python-pytun fork with darwin and windows support (IPv6-ONLY) License: copyleft · Maintenance: aging · Downloads: 321.0K/mo ## What it is and what it does pytun-pmd3 is a Python wrapper around the TUN/TAP interface creation and management APIs on Linux and macOS. It allows developers to programmatically create virtual network interfaces at the packet level, enabling use cases like network tunneling, packet filtering, and custom network protocol implementation. The package is a fork of the original pytun project with added support for Darwin (macOS) and Windows keywords, though support is described as partial. The package has no external runtime dependencies, making installation straightforward. It supports Python 3.9 through 3.13 and requires at least Python 3.8. The codebase is aging with infrequent updates, and the small repository size suggests it serves a niche audience. Users should be aware that creating TUN/TAP interfaces typically requires elevated privileges (root or capabilities) on the host system. Use it for: - Build VPN or tunneling applications that need direct control over virtual network interfaces - Implement custom network protocols or packet filters at the kernel interface level - Create network simulation or testing environments that require virtual network devices - Develop tools for network packet capture and manipulation on macOS or Linux systems ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides Python bindings to create and manage TUN/TAP virtual network interfaces on Linux and Darwin (macOS), enabling low-level network packet manipulation and tunneling. Yes, if you need TUN/TAP interface control on Linux or macOS and accept the copyleft license. The low install friction and lack of dependencies make it straightforward to add. However, the aging maintenance status and small user base mean you should verify that Darwin support meets your needs and be prepared to maintain a fork if critical bugs emerge. ## Install pip install pytun-pmd3 uv add pytun-pmd3 poetry add pytun-pmd3 ## Installing pytun-pmd3 Before you install: Low install friction with no runtime dependencies. Maintenance status is aging—last commit was 2026-01-27 and the repository has only 8 stars, suggesting limited active development and a small user base. License in practice: Licensed under GPLv3+, a copyleft license requiring derivative works and modifications to be distributed under the same terms. Use is unrestricted for private purposes, but redistribution of modified versions must include source code. Quickstart: pip install pytun-pmd3 import pytun # Create a TUN interface tun = pytun.TunTapDevice(name='tun0', flags=pytun.IFF_TUN) tun.up() # Read/write packets from/to the interface Requires root or appropriate capabilities to create TUN/TAP interfaces on Linux; macOS support is partial and may require system configuration. Verify before relying: - Extent of Darwin/macOS support and any known limitations or missing features compared to Linux - Whether IPv6-only mode is a hard requirement or a configuration option - Current maintenance status and likelihood of future updates or bug fixes ## Package facts - License: Copyright (c) 2011, montag451. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the… (full text in the JSON record) (copyleft) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 321.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags tun tap interface python, virtual network interface linux macos, network packet tunneling python, tuntap wrapper darwin, low-level network interface python, virtual network device creation, packet-level networking, network-interfaces, low-level-networking, system-administration [View on SkillFed](https://skillfed.io/packages/pytun-pmd3) · [View on PyPI](https://pypi.org/project/pytun-pmd3/)