Skip to main content

Scapy packet to dict

Project description

# scapy2dict
Scapy packet to dict

`pip3 install scapy2dict`


from scapy.all import sniff
from scapy2dict import to_dict
pkt = sniff(count=1)[0]

# To ChainMap dict
data = to_dict(pkt)

# to exactly dict
data = to_dict(pkt, strict=True)

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

scapy2dict-0.11.tar.gz (3.8 kB view hashes)

Uploaded source

Built Distribution

scapy2dict-0.11-py35, py36-none-any.whl (3.1 kB view hashes)

Uploaded py35, py36

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