Skip to content

Instantly share code, notes, and snippets.

View matheusdigital's full-sized avatar

MATHEUS ZIMMERMANN GALDINO matheusdigital

View GitHub Profile
@matheusdigital
matheusdigital / DO_upload_folder_to_space.py
Last active November 23, 2021 05:42
Uploading entire local folder or directory to Digital Ocean Spaces in Python with Boto3 and OS
import os
from boto3 import session
from boto3.s3.transfer import S3Transfer
# Use the API Keys you generated at Digital Ocean
ACCESS_ID = 'YOUR_DO_SPACE_ACCESS_KEY'
SECRET_KEY = 'YOUR_DO_SPACE_SECRET_KEY'
# Initiate session
session = session.Session()