Skip to main content

pysflow

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.

Metadata

Release files for pysflow 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysflow 0.1.2
File Size Uploaded Provenance Actions
pysflow-0.1.2.tar.gz 4.6 kB Without provenance Details for pysflow-0.1.2.tar.gz

Release files / pysflow-0.1.2.tar.gz

Download URL pysflow-0.1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
baa37f0442ff717439b6c46306902ce327fbca2df6c99cbbc4fde97cd1693aae
BLAKE2b-256 checksum
How to use checksums
41da09e7d509ee69765f95d0582757d4dc4c509054ec59646125426f1ae6b2af
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pysflow 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page