Skip to content

Instantly share code, notes, and snippets.

View tom139's full-sized avatar

Tommaso Panozzo tom139

View GitHub Profile
@tom139
tom139 / apitypes.py
Last active May 5, 2021 10:47
Lambda function proxy helper data for Python with decorators for CORS and error handling
import json
import traceback
import typing
from functools import wraps
from typing import Dict, Any, Optional, Callable
class APIResponse:
def __init__(self, statusCode: int, body: Dict[str, Any], headers: Optional[Dict[str, str]] = None):
super().__init__()

Keybase proof

I hereby claim:

  • I am tom139 on github.
  • I am tom139 (https://keybase.io/tom139) on keybase.
  • I have a public key whose fingerprint is 34DD 75C0 258F 31DB D2E8 6F76 722A 40FA E0FE FC48

To claim this, I am signing this object: