/pypcappy

Pure Python3 PcapNg reader

Primary LanguagePythonMIT LicenseMIT

PyPcapPy

A Pure Python3 PcapNg reader

Build Status Coverage Status Requirements Status PyPI version Coverity Scan Build Status

Use

with PcapNgFile('file_name.pcapng.gz') as pcap_file:
  for packet in pcap_file.packets:
    print(packet)

Why not pypcap or pypcapfile?

  • Pure python
  • Will work on CPython, PyPy, Jpython or whatever
  • Python 3
  • No legacy packet data as strings
  • PcapNG
  • Only support for the new next gen format
  • Gzip
  • Build in support for both *.pcapng and *.pcapng.gz files

Downloads

Links