aboutsummaryrefslogtreecommitdiff
path: root/python/README.rst
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2019-12-01 21:56:10 +0100
committerGitHub <noreply@github.com>2019-12-01 21:56:10 +0100
commitb4468239b9f55b95b469ee5b394bc647b03645da (patch)
tree140a9f86b432b9a7c6614966d150e801e853ed94 /python/README.rst
parent95c1282ef478cb2ff624d46a8b0b035de15df33b (diff)
parenta95cfcc98906c1807acf6707c838cc49d15ae39b (diff)
Merge pull request #814 from aouinizied/python_cffi_bindings
Implement cffi bindings.
Diffstat (limited to 'python/README.rst')
-rw-r--r--python/README.rst44
1 files changed, 44 insertions, 0 deletions
diff --git a/python/README.rst b/python/README.rst
new file mode 100644
index 000000000..dfdce0a25
--- /dev/null
+++ b/python/README.rst
@@ -0,0 +1,44 @@
+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 \ No newline at end of file