conn = tinys3.Connection('xxxxxxx', 'xxxxxxxx', tls=True, endpoint=
    's3-us-west-1.amazonaws.com')
f = open('testing_s3.txt', 'rb')
print(conn.upload('testing_data/testing_s3.txt', f, 'testing-bucket'))
print(conn.get('testing_data/testing_s3.txt', 'testing-bucket'))
Upload to Amazon S3 using tinys3