Skip to main content

Convert a pcap file into pandas DataFrame or CSV

Project description

import library as:

from pcap_handler import *
			or
from pcap_handler import pcapHandler
			or
from pcap_handler import dfHandler

Make an object of library

To convert pcap to pandas DataFrame:

pcap2df = pcapHandler(file="path to pcap file", verbose=True)
df = pcap2df.to_DF(head=True)

To conver DataFrame to CSV:

df2csv = dfHandler(dataFrame=df, verbose=True)
df2csv.to_CSV(outputPath="path to save csv")

Descriptive README soon...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pcap_handler-0.1.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

pcap_handler-0.1.3-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page