Skip to main content

sFlow parser, written in Python

Project description

A simple sFlow parser library for Python.


This project is built and tested against Python 3.6 and 3.7. Older versions might or might not work. Tests for this are planned to be included in later releases. The library has no external dependencies and only uses the built-in xdrlib and ipaddress functions.


To install the library, run:

pip install pysflow

or if you have cloned this Git repository, run:

python install


A very simple program that uses the library can be found in There is one high-level entry point, sflow.decode(), which takes a byte array as the argument. It will decode a raw sFlow datagram into a Python dict. Each component (flow record, data type, etc.) can be used in a stand-alone way by calling the static .decode() function on the class. This function takes an xdrlib.Unpacker as an argument.

Project details

Download files

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

Files for pysflow, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size pysflow-0.1.2.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page