Skip to content

Instantly share code, notes, and snippets.

Avatar

MATHEUS ZIMMERMANN GALDINO matheusdigital

View GitHub Profile
@matheusdigital
matheusdigital / DO_upload_folder_to_space.py
Last active Mar 10, 2020
Uploading entire local folder or directory to Digital Ocean Spaces in Python with Boto3 and OS
View DO_upload_folder_to_space.py
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()
You can’t perform that action at this time.