AwsBotoS3AndGlacier
Boto3, S3, Glacier
If you haven’t already, install the aws cli:
sudo apt install awscli
Run it and check the results:
aws configure cat ~/.aws/credentials cat ~/.aws/
My aws config file:
[default] region=us-west-2
And then:
git clone https://github.com/boto/boto3.git cd boto3/ virtualenv -p /usr/bin/python3 venv . venv/bin/activate pip install -r requirements.txt pip install -e .
When you are done, you can deactivate the virtualenv:
deactivate
Run a simple test:
import boto3
s3 = boto3.resource('s3')
for bucket in s3.buckets.all():
print(bucket.name)
The docs are probably also on the web, but if you want, you can make the docs locally, which takes perhaps two or three minutes on a fast machine:
pip install -r requirements-docs.txt cd docs make html
Optionally, run some tests, which take considerably longer:
cd .. sudo apt-get install tox tox