Skip to content

Commit dd612b3

Browse files
committed
Apply feedback
1 parent a75b52d commit dd612b3

File tree

3 files changed

+169
-216
lines changed

3 files changed

+169
-216
lines changed

README.md

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
[![Version](https://img.shields.io/pypi/v/awsiotsdk.svg?style=flat)](https://pypi.org/project/awsiotsdk/)
44

5-
The AWS IoT Device SDK for Python v2 connects your Python applications and devices to AWS IoT. Built on the AWS Common Runtime, 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.
5+
The AWS IoT Device SDK for Python v2 connects your Python applications and devices to AWS IoT. 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.
66

77
**Supported Platforms**: Linux, Windows, macOS
88

9+
> **Note**: The SDK is known to work on older platform versions, but we only guarantee compatibility for the platforms listed above.
10+
911
*__Topics:__*
1012
* [Features](#features)
11-
* [Using SDK](#using-sdk)
13+
* [Installation](#installation)
14+
* [Minimum Requirements](#minimum-requirements)
15+
* [Installing from PyPI](#installing-from-pypi)
1216
* [Getting Started](#getting-started)
1317
* [Samples](samples)
1418
* [MQTT5 User Guide](./documents/MQTT5_Userguide.md)
@@ -30,7 +34,7 @@ The primary purpose of the AWS IoT Device SDK for Python v2 is to simplify the p
3034
* The [AWS IoT Jobs](https://docs.aws.amazon.com/iot/latest/developerguide/iot-jobs.html) allows to define a set of remote operations that can be sent to and run on one or more devices connected to AWS IoT.
3135
* The [AWS IoT fleet provisioning](https://docs.aws.amazon.com/iot/latest/developerguide/provision-wo-cert.html) can generate and securely deliver device certificates and private keys to IoT devices when they connect to AWS IoT for the first time.
3236

33-
## Using SDK
37+
## Installation
3438

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

@@ -58,31 +62,15 @@ python -m pip install awsiotsdk
5862

5963
### Building from source
6064

61-
```bash
62-
# 1. Create a workspace directory to hold all the SDK files
63-
mkdir sdk-workspace
64-
cd sdk-workspace
65-
66-
# 2. Clone the repository. You could select the version of the SDK you desire to use.
67-
git clone -b <SDK_VERSION> https://github.com/aws/aws-iot-device-sdk-python-v2.git
68-
69-
# 3. (Optional) Setup the version number of your local build. The default version
70-
# for awsiotsdk is set to "1.0.0-dev", you can set the version number of the
71-
# local build in "aws-iot-device-sdk-python-v2/awsiot/__init__.py"
72-
sed -i "s/__version__ = '1.0.0-dev'/__version__ = '<SDK_VERSION>'/" \
73-
aws-iot-device-sdk-python-v2/awsiot/__init__.py
74-
75-
# 4. Install using Pip (use 'python' instead of 'python3' on Windows)
76-
python3 -m pip install ./aws-iot-device-sdk-python-v2
77-
```
65+
See the [Development Guide](./documents/DEVELOPING.md) for detailed instructions on building from source and using local builds.
7866

7967
## Getting Started
8068

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

83-
1. **Install the SDK** - See the [Using SDK](#using-sdk) section for installation details
71+
1. **Install the SDK** - See the [Installation](#installation) section for installation details
8472

85-
2. **Choose your connection method** - The SDK supports multiple authentication methods including X.509 certificates, AWS credentials, and custom authentication
73+
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](./documents/MQTT5_Userguide.md#how-to-create-an-mqtt5-client-based-on-desired-connection-method) and [MQTT5 X509 sample](./samples/mqtt/mqtt5_x509.md) provide more guidance
8674

8775
3. **Follow a complete example** - Check out the [samples](samples) directory for working code examples that demonstrate:
8876
- Basic MQTT connection and messaging
@@ -115,6 +103,9 @@ If you have a support plan with [AWS Support](https://aws.amazon.com/premiumsupp
115103

116104
#### Mac-Only TLS Behavior
117105

106+
> [!NOTE]
107+
> This SDK does not support TLS 1.3 on macOS. Support for TLS 1.3 on macOS is planned for a future release.
108+
118109
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:
119110

120111
```

documents/DEVELOPING.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Development Guide
2+
3+
This document provides instructions for building the AWS IoT Device SDK for Python v2.
4+
5+
## Building from source
6+
7+
```bash
8+
# 1. Create a workspace directory to hold all the SDK files
9+
mkdir sdk-workspace
10+
cd sdk-workspace
11+
12+
# 2. Clone the repository. You could select the version of the SDK you desire to use.
13+
git clone -b <SDK_VERSION> https://github.com/aws/aws-iot-device-sdk-python-v2.git
14+
15+
# 3. (Optional) Setup the version number of your local build. The default version
16+
# for awsiotsdk is set to "1.0.0-dev", you can set the version number of the
17+
# local build in "aws-iot-device-sdk-python-v2/awsiot/__init__.py"
18+
sed -i "s/__version__ = '1.0.0-dev'/__version__ = '<SDK_VERSION>'/" \
19+
aws-iot-device-sdk-python-v2/awsiot/__init__.py
20+
21+
# 4. Install using Pip (use 'python' instead of 'python3' on Windows)
22+
python3 -m pip install ./aws-iot-device-sdk-python-v2
23+
```

0 commit comments

Comments
 (0)