From dcb6fde0c98ca0965b1362dcd94cc5c90b8e5c15 Mon Sep 17 00:00:00 2001 From: Zied Aouini Date: Fri, 21 Feb 2020 17:28:44 +0100 Subject: Update Python cffi bindings. --- python/README.rst | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'python/README.rst') diff --git a/python/README.rst b/python/README.rst index dfdce0a25..bb8e51aef 100644 --- a/python/README.rst +++ b/python/README.rst @@ -1,44 +1,43 @@ nDPI Python bindings -------------------- -This directory contains the Python3 bindings for nDPI. We provide both ctypes and cffi based bindings. +This directory contains the Python3 bindings for nDPI. We provide both cffi and ctypes based bindings. -**ctypes bindings** +**cffi bindings** Files: -* ndpi_typestruct.py -* ndpi_wrap.c -* Makefile.in +* ndpi.py -Example: +Example (using `nfstream `_ package): .. code-block:: bash - pip3 install scapy - python3 ndpi_example.py - python3 ndpi_example.py + pip3 install nfstream + python3 flow_printer.py + python3 flow_printer.py Code courtesy: -* Massimo Puddu * Zied Aouini -**cffi bindings** +**ctypes bindings** Files: -* ndpi.py - +* ndpi_typestruct.py +* ndpi_wrap.c +* Makefile.in -Example (using NFStream package): +Example: .. code-block:: bash - pip3 install nfstream - python3 flow_printer.py - python3 flow_printer.py + pip3 install scapy + python3 ndpi_example.py + python3 ndpi_example.py Code courtesy: -* Zied Aouini \ No newline at end of file +* Massimo Puddu +* Zied Aouini -- cgit v1.2.3