Skip to content

Instantly share code, notes, and snippets.

View brianprost's full-sized avatar

Brian Prost brianprost

View GitHub Profile
@brianprost
brianprost / s3_sync.py
Created February 13, 2025 00:24
sync a local folder with s3
from pathlib import Path
import mimetypes
import hashlib
import boto3
from concurrent.futures import ThreadPoolExecutor
from typing import List, Dict, Union
class S3Sync:
def __init__(self, bucket: str, aws_region: str = "us-east-1"):