CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-modal

Python client library for Modal, a serverless cloud computing platform that enables developers to run Python code in the cloud with on-demand access to compute resources.

85

1.60x
Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses Modal's Function capabilities for serverless execution, including parallel processing with .map(), asynchronous execution with .spawn(), and state management with Dict.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "App Definition",
      "description": "Creates a Modal App instance using modal.App() to group functions and resources",
      "max_score": 10
    },
    {
      "name": "Function Decoration",
      "description": "Decorates the thumbnail generation function with @app.function() to make it a Modal Function with proper image configuration (pip_install for Pillow and requests)",
      "max_score": 15
    },
    {
      "name": "Remote Execution",
      "description": "Uses .remote() method to execute the thumbnail generation function on Modal's infrastructure",
      "max_score": 10
    },
    {
      "name": "Parallel Map",
      "description": "Uses Function.map() to process multiple images in parallel, passing the list of URLs to distribute work across containers",
      "max_score": 20
    },
    {
      "name": "Dict Creation",
      "description": "Creates a Modal Dict using modal.Dict.from_name() or modal.Dict.ephemeral() for caching thumbnail results",
      "max_score": 15
    },
    {
      "name": "Dict Operations",
      "description": "Uses Dict.__setitem__() or .put() to store thumbnails and __getitem__() or .get() to retrieve cached results",
      "max_score": 15
    },
    {
      "name": "Async Spawn",
      "description": "Uses .spawn() method to trigger asynchronous execution of thumbnail generation without blocking",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-modal

tile.json