This topic explains how to install and use the AWS Encryption SDK for Python. For details about programming with the AWS Encryption SDK for Python, see the aws-encryption-sdk-python repository on GitHub. For API documentation, see Read the Docs.
PrerequisitesBefore you install the AWS Encryption SDK for Python, be sure you have the following prerequisites.
Python 3.8 or later is required by the AWS Encryption SDK for Python versions 3.2.0 and later.
Earlier versions of the AWS Encryption SDK support Python 2.7 and Python 3.4 and later, but we recommend that you use the latest version of the AWS Encryption SDK.
To download Python, see Python downloads.
pip
is included in Python 3.6 and later versions, although you might want to upgrade it. For more information about upgrading or installing pip
, see Installation in the pip
documentation.
Install the latest version of the AWS Encryption SDK for Python.
NoteAll versions of the AWS Encryption SDK for Python earlier than 3.0.0 are in the end-of-support phase.
You can safely update from version 2.0.x and later to the latest version of the AWS Encryption SDK without any code or data changes. However, new security features introduced in version 2.0.x are not backward-compatible. To update from versions earlier than 1.7.x to version 2.0.x and later, you must first update to the latest 1.x version of the AWS Encryption SDK. For details, see Migrating your AWS Encryption SDK.
Use pip
to install the AWS Encryption SDK for Python, as shown in the following examples.
pip install "aws-encryption-sdk[MPL]"
The [MPL]
suffix installs the AWS Cryptographic Material Providers Library (MPL). The MPL contains constructs for encrypting and decrypting your data. The MPL is an optional dependency for the AWS Encryption SDK for Python introduced in version 4.x. We highly recommend installing the MPL. However, if you do not intend to use the MPL, you can omit the [MPL]
suffix.
For more details about using pip to install and upgrade packages, see Installing Packages.
The AWS Encryption SDK for Python requires the cryptography library (pyca/cryptography) on all platforms. All versions of pip
automatically install and build the cryptography
library on Windows. pip
8.1 and later automatically installs and builds cryptography
on Linux. If you are using an earlier version of pip
and your Linux environment doesn't have the tools needed to build the cryptography
library, you need to install them. For more information, see Building Cryptography on Linux.
Versions 1.10.0 and 2.5.0 of the AWS Encryption SDK for Python pin the cryptography dependency between 2.5.0 and 3.3.2. Other versions of the AWS Encryption SDK for Python install the latest version of cryptography. If you require a version of cryptography later than 3.3.2, we recommend that you use the latest major version of the AWS Encryption SDK for Python.
For the latest development version of the AWS Encryption SDK for Python, go to the aws-encryption-sdk-python repository in GitHub.
After you install the AWS Encryption SDK for Python, get started by looking at the Python example code in this guide.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4