These are examples for the AWS SDK for Python (Boto 3) public documentation.
To build and run the Python examples, you'll need:
- Python 3
- pip
- AWS SDK for Python (Boto 3)
- AWS credentials
For instructions on installing the AWS SDK for Python (Boto 3) and setting up credentials, see Boto 3 Docs Quickstart.
Many of the examples are written for execution in a command prompt window or Python console.
For example, to run the s3.py example in a command prompt window, run the following.
python -m s3 bucket_name region
For detailed documentation for the AWS SDK for Python (Boto 3), see the following:
Use pylint to verify that your code follows the coding standards for the
repository, including the custom pylint rules found in
tools/pylintrc. To run
pylint with this configuration, use the --rcfile
option.
For example, to check s3.py, run the following.
pylint s3.py --rcfile=../../tools/pylintrc