Package: boto3
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
Python, which allows Python developers to write software that makes use
of services like Amazon S3 and Amazon EC2. You can find the latest, most
up to date, documentation at ourdoc site, including a list of
services that are supported.Boto3 is maintained and published byAmazon Web Services.Boto (pronounced boh-toh) was named after the fresh water dolphin native to the Amazon river. The name was chosen by the author of the original Boto library, Mitch Garnaat, as a reference to the company.NoticesOn 2023-12-13, support for Python 3.7 ended for Boto3. This follows the
Python Software Foundationend of supportfor the runtime which occurred on 2023-06-27.
For more information, see thisblog post.Getting StartedAssuming that you have a supported version of Python installed, you can first
set up your environment with:$python-mvenv.venv...$..venv/bin/activateThen, you can install boto3 from PyPI with:$python-mpipinstallboto3or install from source with:$gitclonehttps://github.com/boto/boto3.git$cdboto3$python-mpipinstall-rrequirements.txt$python-mpipinstall-e.Using Boto3After installing boto3Next, set up credentials (in e.g.~/.aws/credentials):[default]aws_access_key_id=YOUR_KEYaws_secret_access_key=YOUR_SECRETThen, set up a default region (in e.g.~/.aws/config):[default]region=us-east-1Other credential configuration methods can be foundhereThen, from a Python interpreter:>>>importboto3>>>s3=boto3.resource('s3')>>>forbucketins3.buckets.all():print(bucket.name)Running TestsYou can run tests in all supported Python versions usingtox. By default,
it will run all of the unit and functional tests, but you can also specify your ownpytestoptions. Note that this requires that you have all supported
versions of Python installed, otherwise you must pass-eor run thepytestcommand directly:$tox$tox--unit/test_session.py$tox-epy26,py33--integration/You can also run individual tests with your default Python version:$pytesttests/unitGetting HelpWe use GitHub issues for tracking bugs and feature requests and have limited
bandwidth to address them. Please use these community resources for getting
help:Ask a question onStack Overflowand tag it withboto3Open a support ticket withAWS SupportIf it turns out that you may have found a bug, pleaseopen an issueContributingWe value feedback and contributions from our community. Whether it’s a bug report, new feature, correction, or additional documentation, we welcome your issues and pull requests. Please read through thisCONTRIBUTINGdocument before submitting any issues or pull requests to ensure we have all the necessary information to effectively respond to your contribution.Maintenance and Support for SDK Major VersionsBoto3 was made generally available on 06/22/2015 and is currently in the full support phase of the availability life cycle.For information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the AWS SDKs and Tools Shared Configuration and Credentials Reference Guide:AWS SDKs and Tools Maintenance PolicyAWS SDKs and Tools Version Support MatrixMore ResourcesNOTICEChangelogLicense