--- id: pypcap version: "1.3.0" license: unclear license_treatment: unclear maintenance: abandoned --- # pypcap — pypcap -- Python interface to pcap a packet capture library License: unclear · Maintenance: abandoned · Downloads: 187.5K/mo ## What it is and what it does Pypcap is a Python wrapper around libpcap, the standard packet-capture library used by tcpdump and other network tools. It provides an object-oriented interface to capture live network traffic from a specified interface, allowing you to iterate over packets and extract headers and payload data. The package works on both Linux and Windows, though the description notes WinPcap has compatibility issues with Windows 10. The library is designed for network analysis, packet inspection, and traffic monitoring tasks where you need direct access to link-layer frames. It has no Python runtime dependencies but requires compilation of C extensions and system-level packet-capture libraries to be present before installation. The project is currently unmaintained and the authors are seeking a new maintainer. Use it for: - Build a network packet sniffer to monitor and log traffic on a specific interface for debugging or security analysis. - Analyze network protocols by capturing raw packets and extracting source and destination addresses. - Create a network traffic monitor component that needs to inspect live packets as they arrive. - Develop packet-level network diagnostics tools that require direct access to link-layer frames. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python wrapper around libpcap that lets you capture and inspect network packets at the link layer, with support for both Linux and Windows systems. No—install only if you have a specific, legacy requirement. The project is unmaintained and actively seeking a new maintainer; the last commit was 2023-03-29. High installation friction (system dependencies, C compilation), unclear licensing, and no Python version guarantees make this a poor choice for new projects. ## Install pip install pypcap uv add pypcap poetry add pypcap ## Installing pypcap Before you install: Installation requires system-level dependencies (libpcap-dev on Linux, Npcap SDK on Windows) and compiles C extensions, creating high friction. The project is explicitly unmaintained; the last commit was 2023-03-29 and maintainers are actively seeking someone to take over. License in practice: License treatment is unclear—no SPDX identifier or raw license text is provided in the package metadata, making it uncertain what restrictions or permissions apply to use or modification. Quickstart: pip install pypcap # Capture packets from network interface sniffer = pcap.pcap(name=None, promisc=True, immediate=True, timeout_ms=50) for ts, pkt in sniffer: print(ts, pkt) Requires libpcap-dev (Linux) or Npcap SDK (Windows) to be installed before pip install; compiles C extensions during installation. Verify before relying: - Whether the 2023-03-29 commit represents a stable state or stalled development. - What the actual license is, given the unclear treatment in metadata. - Python version compatibility—requires_python is unspecified in the metadata. - Whether WinPcap compatibility issues with Windows 10 affect current Windows deployments. ## Package facts - License: not declared (unclear) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 187.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags packet capture python, network sniffer library, libpcap wrapper, pcap python interface, live packet sniffing, network traffic analysis, packet-capture, network-analysis, unmaintained [View on SkillFed](https://skillfed.io/packages/pypcap) · [View on PyPI](https://pypi.org/project/pypcap/)