CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-bleak

Cross-platform Bluetooth Low Energy GATT client library for asynchronous BLE communication

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-2/

{
  "context": "This evaluation assesses how well the engineer uses Bleak's BleakClient class to manage BLE device connections, particularly focusing on proper disconnection handling, connection status tracking, and async context manager implementation for automatic lifecycle management.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "BleakClient instantiation",
      "description": "Creates and stores a BleakClient instance in __init__ using the provided device address",
      "max_score": 15
    },
    {
      "name": "Connect method",
      "description": "Implements connect() method that calls BleakClient.connect() to establish connection",
      "max_score": 15
    },
    {
      "name": "Disconnect method",
      "description": "Implements disconnect() method that calls BleakClient.disconnect() to properly disconnect from the device",
      "max_score": 20
    },
    {
      "name": "Connection status check",
      "description": "Implements is_connected() method that returns BleakClient.is_connected property value",
      "max_score": 15
    },
    {
      "name": "Context manager entry",
      "description": "Implements __aenter__ that calls connect() method and returns self",
      "max_score": 15
    },
    {
      "name": "Context manager exit",
      "description": "Implements __aexit__ that calls disconnect() method for automatic cleanup",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-bleak

tile.json