tessl install tessl/pypi-aws-requests-auth@0.4.0AWS signature version 4 signing process for the python requests module
Agent Success
Agent success rate when using this tile
84%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.11x
Baseline
Agent success rate without this tile
76%
{
"context": "This criteria evaluates how well the engineer uses the aws-requests-auth package to implement authenticated requests to multiple AWS services. The focus is on properly configuring the AWSRequestsAuth class for different service types and integrating it with the requests library.",
"type": "weighted_checklist",
"checklist": [
{
"name": "AWSRequestsAuth Import",
"description": "Imports the AWSRequestsAuth class from the aws_requests_auth package",
"max_score": 10
},
{
"name": "Credential Initialization",
"description": "Properly initializes AWSRequestsAuth instances with aws_access_key and aws_secret_access_key parameters from the client's credentials",
"max_score": 15
},
{
"name": "Elasticsearch Service Configuration",
"description": "Creates an AWSRequestsAuth instance with aws_service='es' and the correct aws_host and aws_region for Elasticsearch requests",
"max_score": 20
},
{
"name": "API Gateway Service Configuration",
"description": "Creates an AWSRequestsAuth instance with aws_service='execute-api' and the correct aws_host and aws_region for API Gateway requests",
"max_score": 20
},
{
"name": "Requests Library Integration",
"description": "Uses the AWSRequestsAuth instance as the auth parameter when making requests with the requests library (e.g., requests.get(..., auth=aws_auth) or requests.post(..., auth=aws_auth))",
"max_score": 20
},
{
"name": "Payload Handling",
"description": "Correctly handles different payload types: empty/no payload for GET requests to Elasticsearch, and JSON payload (using json parameter or properly formatted data) for POST requests to API Gateway",
"max_score": 15
}
]
}