The Leap Motion Controller (https://www.ultraleap.com/product/leap-motion-controller/) has been a favourite input device for user interface designers and hackers alike. It allows to create touchless user interfaces that track hand movement and recognize gestures (not bad in the current situation).
Unfortunately the company who made it has decided to go big and bold on VR and Windows only and stopped supporting development on a Mac. There are still options available, for example getting the Leap Motion data via node.js. Yet Python can be the right choice, especially if you want to feed the data into a machine learning pipeline or use any of the numerous libraries that the Python ecosystem offers.
Getting this to work on macOS requires a few steps (tested on macOS 11 Big Sur, could work on Catalina as well).
Step 1 Get the Leap Motion SDK.
Download the macOS SDK from https://developer.leapmotion.com/sdk-leap-motion-controller/. The current/final(?) version is 2.3.1. It contains installer and the