This document provides information about the AWS IoT Device SDK v2 for Python. This SDK is built on the AWS Common Runtime
Jump To:
- Installation
- Samples
- Getting Help
- FAQ
- API Docs
- MQTT5 User Guide
- Migration Guide from the AWS IoT SDK for Python v1
- Python 3.7+
python3 -m pip install awsiotsdk
python -m pip install awsiotsdk
# 1. Create a workspace directory to hold all the SDK files
mkdir sdk-workspace
cd sdk-workspace
# 2. Clone the repository. You could select the version of the SDK you desire to use.
git clone -b <SDK_VERSION> https://github.com/aws/aws-iot-device-sdk-python-v2.git
# 3. (Optional) Setup the version number of your local build. The default version
# for awsiotsdk is set to "1.0.0-dev", you can set the version number of the
# local build in "aws-iot-device-sdk-python-v2/awsiot/__init__.py"
sed -i "s/__version__ = '1.0.0-dev'/__version__ = '<SDK_VERSION>'/" \
aws-iot-device-sdk-python-v2/awsiot/__init__.py
# 4. Install using Pip (use 'python' instead of 'python3' on Windows)
python3 -m pip install ./aws-iot-device-sdk-python-v2
The best way to interact with our team is through GitHub. You can open a discussion for guidance questions or an issue for bug reports, or feature requests. You may also find help on community resources such as StackOverFlow with the tag #aws-iot or if you have a support plan with AWS Support, you can also create a new support case.
Please make sure to check out our resources too before opening an issue:
- FAQ
- API Docs
- IoT Guide (source)
- Check for similar Issues
- AWS IoT Core Documentation
- Dev Blog
- Integration with AWS IoT Services such as Device Shadow and Jobs is provided by code that been generated from a model of the service.
- Contributions Guidelines
This library is licensed under the Apache 2.0 License.
Latest released version: v1.21.1