CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-invoke

Pythonic task execution library for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks

Overall
score

96%

Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "This criteria evaluates how well the engineer uses Invoke's terminal utility APIs to implement character-level input handling and terminal size detection. The focus is on correct usage of invoke.terminals module functions and context managers.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Character buffering usage",
      "description": "Uses invoke.terminals.character_buffered() context manager to enable raw character input mode in the read_character() function",
      "max_score": 35
    },
    {
      "name": "stdin handling",
      "description": "Correctly reads from sys.stdin within the character_buffered() context to capture single characters without waiting for newline",
      "max_score": 15
    },
    {
      "name": "PTY size detection",
      "description": "Uses invoke.terminals.pty_size() function to detect terminal dimensions in get_terminal_size()",
      "max_score": 35
    },
    {
      "name": "Error handling",
      "description": "Properly handles cases where terminal size cannot be determined (e.g., when pty_size() returns None or raises exceptions), implementing graceful fallback behavior",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-invoke

tile.json