Python wrapper for tshark that enables packet parsing using Wireshark's dissectors for both live capture and file analysis.
pyshark is a Python wrapper for tshark that enables programmatic packet parsing using Wireshark's dissectors. It allows developers to analyze network traffic from live captures or files directly in Python, leveraging Wireshark's extensive protocol support without implementing custom parsers. The library solves the problem of integrating deep packet inspection capabilities into Python-based network tools and security applications.
Network engineers, security analysts, and developers who need to programmatically analyze network packets within Python scripts or applications. It's particularly useful for those already familiar with Wireshark/tshark who want to automate packet inspection workflows.
Developers choose pyshark because it provides direct access to Wireshark's battle-tested dissectors through a clean Python API, eliminating the need to write custom protocol parsers. Its support for live capture, filtering, decryption, and remote interfaces makes it a comprehensive solution for network analysis tasks within Python ecosystems.
Python wrapper for tshark, allowing python packet parsing using wireshark dissectors
Directly leverages hundreds of Wireshark protocol dissectors for accurate parsing, eliminating the need to implement custom parsers as stated in the README.
Provides intuitive attribute-based access to packet fields like packet.ip.src, making it easy to script network analysis in Python.
Supports live, file, and remote capture with BPF and Wireshark filters, plus built-in decryption for WEP/WPA standards as documented.
Allows both BPF and Wireshark display filters, enabling precise traffic focus without manual packet inspection.
Relies on spawning tshark processes for parsing, which can be slower and more resource-intensive than native Python libraries, especially for large captures.
Requires tshark/Wireshark to be installed and configured separately, adding setup complexity and potential cross-platform issues, as noted in Mac OS X installation notes.
The README indicates the maintainer has limited time and is seeking contributors, which could lead to slower bug fixes and feature updates.
A terminal UI for tshark, inspired by Wireshark
iperf3: A TCP, UDP, and SCTP network bandwidth measurement tool
open-source IEEE 802.11 WiFi baseband FPGA (chip) design: driver, software
Linux 'net top' tool
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.