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-6/

{
  "context": "This criteria evaluates how well the engineer uses the rodi package's service availability checking functionality to implement a service configuration validator. The focus is on proper usage of rodi's Container class and the 'in' operator to check if services are registered.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Container import",
      "description": "Imports the Container class from rodi package",
      "max_score": 10
    },
    {
      "name": "Container storage",
      "description": "Stores the container instance passed to __init__ for later use in validation",
      "max_score": 10
    },
    {
      "name": "Service availability check",
      "description": "Uses the 'in' operator or equivalent container membership check (e.g., 'ServiceType in container' or 'Type in container') to verify if a service is registered",
      "max_score": 40
    },
    {
      "name": "Service class resolution",
      "description": "Correctly converts service name strings from configuration into actual class/type objects that can be checked against the container",
      "max_score": 20
    },
    {
      "name": "Multiple service checks",
      "description": "Iterates through all required services and checks each one's availability in the container",
      "max_score": 10
    },
    {
      "name": "Accurate result reporting",
      "description": "Returns validation results with correct 'valid' status (True when all services available, False otherwise), accurate 'missing' list, and correct 'checked' count",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-rodi

tile.json