Description
NFStream is a Python package for analysing network traffic. It reads a live network interface or a pcap capture file and groups the packets into network flows, each with statistical features. The flows can be exported directly to a Pandas dataframe or to CSV files. Its deep packet inspection is based on nDPI, so it can identify encrypted application traffic and fingerprint metadata from protocols such as TLS, SSH, DHCP and HTTP. Developers can add their own flow features with NFPlugin classes written in a few lines of Python. The project also targets machine learning work on network traffic: the same feature code can be used to train models and to run them on live traffic, so comparisons between models use the same features. NFStream is supported on major Linux distributions, macOS and Windows. The website has documentation, a live notebook and a community section.…
Highlights
- Flows from live interfaces or pcap files
- Statistical flow features to Pandas or CSV
- Encrypted application identification with nDPI
- Custom flow features through NFPlugin
- Same features for training and live traffic
- Runs on Linux, macOS and Windows
Ratings & Reviews
No ratings yet
Be the first to rate nfstream.
People also visit
nfstream FAQ
What is NFStream?
NFStream is a Python package that turns network traffic into flows with statistical features. You can use it on a live interface or on a saved pcap capture.
Who is it for?
People who analyse network data in Python, including researchers who train machine learning models on traffic. Sharing the feature code means models are trained and evaluated the same way.
What can it identify in encrypted traffic?
Its deep packet inspection uses nDPI to identify encrypted applications and to fingerprint metadata from protocols such as TLS, SSH, DHCP and HTTP.
How do I get the data out?
Flows can be converted to a Pandas dataframe with to_pandas, or written to CSV files in batches with to_csv.
Can I add my own features?
Yes. You write an NFPlugin class that computes a new value for each flow and pass it to the streamer.
What are the best nfstream alternatives?
Popular alternatives to nfstream include MCP Shark, Poseidon and Kubeshark. See all nfstream alternatives




