Skip to main content

AWS IoT SDK based on the AWS Common Runtime

Project description

AWS IoT Device SDK for Python v2

Version

The AWS IoT Device SDK for Python v2 connects your Python applications and devices to the AWS IoT platform. It handles the complexities of secure communication, authentication, and device management so you can focus on your IoT solution. The SDK makes it easy to use AWS IoT services like Device Shadows, Jobs, and Fleet Provisioning.

Supported Platforms: Linux, Windows 11+, macOS 14+

Note: The SDK is known to work on older platform versions, but we only guarantee compatibility for the platforms listed above.

Topics:

Features

The primary purpose of the AWS IoT Device SDK for Python v2 is to simplify the process of connecting devices to AWS IoT Core and interacting with AWS IoT services on various platforms. The SDK provides:

Supported AWS IoT Core services

Installation

The recommended way to use the AWS IoT Device SDK for Python v2 in your project is to install it from PyPI.

Minimum Requirements

To develop applications with the AWS IoT Device SDK for Python v2, you need:

  • Python 3.8+

See detailed setup instructions for more information.

Installing from PyPI

macOS and Linux:

python3 -m pip install awsiotsdk

Windows:

python -m pip install awsiotsdk

Building from source

See the Development Guide for detailed instructions on building from source and using local builds.

Getting Started

To get started with the AWS IoT Device SDK for Python v2:

  1. Install the SDK - See the Installation section for installation details

  2. Choose your connection method - The SDK supports multiple authentication methods including X.509 certificates, AWS credentials, and custom authentication. MQTT5 User Guide connection section and MQTT5 X509 sample provide more guidance

  3. Follow a complete example - Check out the samples directory

  4. Learn MQTT5 features - For advanced usage and configuration options, see the MQTT5 User Guide

Samples

Check out the samples directory for working code examples that demonstrate:

The samples provide ready-to-run code with detailed setup instructions for each authentication method and use case.

Getting Help

The best way to interact with our team is through GitHub.

  • Open discussion: Share ideas and solutions with the SDK community
  • Search issues: Find created issues for answers based on a topic
  • Create an issue: New feature request or file a bug

If you have a support plan with AWS Support, you can also create a new support case.

Mac-Only TLS Behavior

[!NOTE] This SDK does not support TLS 1.3 on macOS. Support for TLS 1.3 on macOS is planned for a future release.

Please note that on Mac, once a private key is used with a certificate, that certificate-key pair is imported into the Mac Keychain. All subsequent uses of that certificate will use the stored private key and ignore anything passed in programmatically. Beginning in v1.7.3, when a stored private key from the Keychain is used, the following will be logged at the "info" log level:

static: certificate has an existing certificate-key pair that was previously imported into the Keychain.
 Using key from Keychain instead of the one provided.

Resources

Check out our resources for additional guidance too before opening an issue:

License

This library is licensed under the Apache 2.0 License.

Latest released version: v1.29.0

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awsiotsdk-1.29.0.tar.gz (93.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awsiotsdk-1.29.0-py3-none-any.whl (80.9 kB view details)

Uploaded Python 3

File details

Details for the file awsiotsdk-1.29.0.tar.gz.

File metadata

  • Download URL: awsiotsdk-1.29.0.tar.gz
  • Upload date:
  • Size: 93.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for awsiotsdk-1.29.0.tar.gz
Algorithm Hash digest
SHA256 a146662b8aadadd13494c027394416a1e6f631962e2528a5700ae1e86ca7b95d
MD5 ecbfa91f739cb4677a080992e17fbbc5
BLAKE2b-256 6b9e73d5562de2dfe0ac6a7807121bc262941d5f7144dd24b16f8c49eb906218

See more details on using hashes here.

File details

Details for the file awsiotsdk-1.29.0-py3-none-any.whl.

File metadata

  • Download URL: awsiotsdk-1.29.0-py3-none-any.whl
  • Upload date:
  • Size: 80.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for awsiotsdk-1.29.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3836badc1548b581707106f9104d5fe0b041c105f6ccc0aef664cefe170259b9
MD5 5ca53026c8951f174062885b7de2a918
BLAKE2b-256 01a94bb8f7ba6e99ead998828baf90813a31e60df5b0af489ae557c4cc2c9db5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page