nDPI/python
2019-11-28 03:09:13 +01:00
..
flow_printer.py Implement cffi bindings. 2019-11-28 03:09:13 +01:00
Makefile.in Fixes #777 2019-09-23 18:04:55 +02:00
ndpi.py Implement cffi bindings. 2019-11-28 03:09:13 +01:00
ndpi_example.py Polish. 2019-11-15 19:30:50 +01:00
ndpi_typestruct.py Polish. 2019-11-15 19:30:50 +01:00
ndpi_wrap.c Fixes #777 2019-09-23 18:04:55 +02:00
python_extensions_guide.pdf Reworked categories handling 2019-09-29 21:46:41 +02:00
README.rst Implement cffi bindings. 2019-11-28 03:09:13 +01:00

nDPI Python bindings
--------------------

This directory contains the Python3 bindings for nDPI. We provide both ctypes and cffi based bindings.

**ctypes bindings**

Files:

* ndpi_typestruct.py
* ndpi_wrap.c
* Makefile.in

Example:

.. code-block:: bash

    pip3 install scapy
    python3 ndpi_example.py <interface>
    python3 ndpi_example.py <pcap_file>

Code courtesy:

* Massimo Puddu
* Zied Aouini

**cffi bindings**

Files:

* ndpi.py


Example (using NFStream package):

.. code-block:: bash

    pip3 install nfstream
    python3 flow_printer.py <interface>
    python3 flow_printer.py <pcap_file>

Code courtesy:

* Zied Aouini