Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Robotic Tooling
  3. pyshark

pyshark

MITPythonv0.6

Python wrapper for tshark that enables packet parsing using Wireshark's dissectors for both live capture and file analysis.

GitHubGitHub
2.5k stars445 forks0 contributors

What is pyshark?

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.

Target Audience

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.

Value Proposition

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.

Overview

Python wrapper for tshark, allowing python packet parsing using wireshark dissectors

Use Cases

Best For

  • Automating network traffic analysis in Python scripts
  • Building custom network monitoring and security tools
  • Integrating packet inspection into DevOps or CI/CD pipelines
  • Analyzing encrypted network traffic (WEP/WPA)
  • Processing large packet capture files programmatically
  • Creating educational tools for network protocol analysis

Not Ideal For

  • High-performance applications requiring microsecond-level packet processing due to tshark process overhead
  • Embedded or containerized environments where installing Wireshark/tshark is infeasible
  • Projects demanding a pure Python library without external binary dependencies for portability
  • Teams needing frequent updates or active maintainer support, as the project seeks contributors per the README

Pros & Cons

Pros

Wireshark Dissector Integration

Directly leverages hundreds of Wireshark protocol dissectors for accurate parsing, eliminating the need to implement custom parsers as stated in the README.

Pythonic Packet Access

Provides intuitive attribute-based access to packet fields like packet.ip.src, making it easy to script network analysis in Python.

Comprehensive Capture Features

Supports live, file, and remote capture with BPF and Wireshark filters, plus built-in decryption for WEP/WPA standards as documented.

Flexible Filtering Options

Allows both BPF and Wireshark display filters, enabling precise traffic focus without manual packet inspection.

Cons

Performance Overhead

Relies on spawning tshark processes for parsing, which can be slower and more resource-intensive than native Python libraries, especially for large captures.

External Dependency Burden

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.

Maintenance Risks

The README indicates the maintainer has limited time and is seeking contributors, which could lead to slower bug fixes and feature updates.

Frequently Asked Questions

Quick Stats

Stars2,483
Forks445
Contributors0
Open Issues119
Last commit1 month ago
CreatedSince 2013

Tags

#wireshark#pcap#tshark#python#network-monitoring#network-analysis#packet-capture#cybersecurity

Built With

P
Python

Included in

Robotic Tooling3.8k
Auto-fetched 1 day ago

Related Projects

termsharktermshark

A terminal UI for tshark, inspired by Wireshark

Stars9,873
Forks434
Last commit2 years ago
iperfiperf

iperf3: A TCP, UDP, and SCTP network bandwidth measurement tool

Stars8,414
Forks1,408
Last commit10 days ago
openwifiopenwifi

open-source IEEE 802.11 WiFi baseband FPGA (chip) design: driver, software

Stars4,602
Forks778
Last commit11 days ago
nethogsnethogs

Linux 'net top' tool

Stars3,616
Forks295
Last commit2 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub