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
{
"context": "This criteria evaluates how well the engineer uses Modal's Secret API to manage credentials across different deployment environments. The focus is on correct usage of Secret creation methods and proper integration with Modal functions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Secret.from_dict() usage",
"description": "Uses modal.Secret.from_dict() to create credentials from a dictionary in the create_credentials_from_dict function",
"max_score": 25
},
{
"name": "Secret.from_local_environ() usage",
"description": "Uses modal.Secret.from_local_environ() to copy specified environment variables in the create_credentials_from_env function",
"max_score": 25
},
{
"name": "Secret.from_dotenv() usage",
"description": "Uses modal.Secret.from_dotenv() to load credentials from a .env file in the create_credentials_from_file function",
"max_score": 25
},
{
"name": "Secret injection pattern",
"description": "Correctly demonstrates how to inject secrets into Modal functions using the secrets parameter in function decorators (e.g., @app.function(secrets=[...]))",
"max_score": 15
},
{
"name": "Environment variable access",
"description": "Correctly accesses injected credentials as environment variables using os.environ or os.getenv within Modal functions",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-modaldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10