CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-rodi

Implementation of dependency injection for Python 3

Overall
score

92%

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This evaluation assesses how effectively the engineer uses rodi's function execution with dependency injection capabilities, specifically focusing on the provider.exec() method and provider.get_executor() function for executing functions with auto-injected parameters.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses provider.exec()",
      "description": "Uses the provider.exec() method to execute handler functions with automatically injected dependencies",
      "max_score": 40
    },
    {
      "name": "Handles sync/async",
      "description": "Correctly handles both synchronous and asynchronous handler functions using provider.exec() which supports both",
      "max_score": 20
    },
    {
      "name": "Type hint resolution",
      "description": "Leverages rodi's automatic parameter resolution from function signature type hints - handlers use type-annotated parameters that get automatically resolved",
      "max_score": 25
    },
    {
      "name": "Provider initialization",
      "description": "Properly accepts and uses a rodi Services provider instance in the EventManager constructor",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-rodi

tile.json