Python module for hardware detection and classification