S3P is a library for publishing a local folder containing a build of a static website, to S3.
The recommended installation method is pip:
pip install s3publish
Create a bucket on S3 through the AWS console, if you don't have one already and configure it for website hosting.
Publish your build folder to the S3 bucket:
import s3publish
publisher = s3publish.Publisher('mybucket', 'path/to/folder')
publisher.publish()
Most of s3publish was built off of spenczar
's lektor-s3 library.