Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 620 Bytes

File metadata and controls

24 lines (18 loc) · 620 Bytes

flowlens Python bindings

See the project README for what flowlens does.

import flowlens

result = flowlens.extract("capture.pcap")
result.features        # (n_flows, 56) float64, NumPy adopted the C++ buffer
result.to_torch()      # same memory again, no copy
result.to_pandas()     # identity columns joined on (this one does copy)

Build

cmake -S .. -B ../build-py -DFLOWLENS_BUILD_PYTHON=ON -DCMAKE_BUILD_TYPE=Release
cmake --build ../build-py
pip install -e .
pytest

The extension lands in flowlens/ during the CMake build, so it must be built before installing.