Skip to content

Instantly share code, notes, and snippets.

View pritul95's full-sized avatar

Ritul Patel pritul95

View GitHub Profile
@pritul95
pritul95 / .serverless-wsgi
Created December 26, 2020 05:49
Containerize Flask app w/ AWS Lambda
{
"app": "wsgi.app"
}
@pritul95
pritul95 / boto_session.py
Last active October 2, 2022 01:06
Refreshable Boto3 Session to create auto refreshable client or resource
from uuid import uuid4
from datetime import datetime
from time import time
import boto3
from boto3 import Session
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session