CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-aws-requests-auth

AWS signature version 4 signing process for the python requests module

84

1.10x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses the aws-requests-auth package to generate AWS authentication headers, specifically focusing on the get_aws_request_headers() method and proper integration with the AWSRequestsAuth class for custom header generation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "AWSRequestsAuth instantiation",
      "description": "Creates an instance of AWSRequestsAuth class with required parameters (aws_access_key, aws_secret_access_key, aws_host, aws_region, aws_service)",
      "max_score": 20
    },
    {
      "name": "get_aws_request_headers usage",
      "description": "Calls the get_aws_request_headers() method or get_aws_request_headers_handler() method to generate the complete header dictionary",
      "max_score": 30
    },
    {
      "name": "Request object preparation",
      "description": "Properly prepares a PreparedRequest object or equivalent request representation with method, path, params, and data before passing to header generation",
      "max_score": 20
    },
    {
      "name": "Session token handling",
      "description": "Correctly passes aws_token parameter to AWSRequestsAuth when session token is provided to ensure X-Amz-Security-Token header is included",
      "max_score": 15
    },
    {
      "name": "Header dictionary return",
      "description": "Returns the header dictionary from get_aws_request_headers() containing Authorization, x-amz-date, x-amz-content-sha256, and optionally X-Amz-Security-Token headers",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-aws-requests-auth

tile.json