You can install the capture tool as a Python module and use this module programmatically in custom Python scripts. The module exposes an API that allows you to start and stop the capture.
To install the nRF Sniffer Python module, complete the following steps: