Skip to content

Instantly share code, notes, and snippets.

View sladkovm's full-sized avatar

Maksym Sladkov sladkovm

View GitHub Profile
@sladkovm
sladkovm / dospaces.py
Created April 21, 2018 09:20
Getting started with Digital Ocean Spaces using python and boto3
import boto3
import os
import json
client = boto3.client('s3',
region_name=os.getenv('DO_SPACES_REGION'),
endpoint_url='https://{}.digitaloceanspaces.com'.format(os.getenv('DO_SPACES_REGION')),
aws_access_key_id=os.getenv('DO_SPACES_KEY'),
aws_secret_access_key=os.getenv('DO_SPACES_SECRET'))