sFlow parser, written in Python
Project description
A simple sFlow parser library for Python.
Requirements
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.
Installation
To install the library, run:
pip install pysflow
or if you have cloned this Git repository, run:
python setup.py install
Usage
A very simple program that uses the library can be found in example.py. 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pysflow-0.1.2.tar.gz
.
File metadata
- Download URL: pysflow-0.1.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baa37f0442ff717439b6c46306902ce327fbca2df6c99cbbc4fde97cd1693aae |
|
MD5 | a8ea54d28b5d24b10a434dc4abd6d4c9 |
|
BLAKE2b-256 | 41da09e7d509ee69765f95d0582757d4dc4c509054ec59646125426f1ae6b2af |