aws-iot-device-sdk-python-v2 | Next generation AWS IoT Client SDK for Python | AWS library

 by   aws Python Version: v1.15.0 License: Apache-2.0

kandi X-RAY | aws-iot-device-sdk-python-v2 Summary

kandi X-RAY | aws-iot-device-sdk-python-v2 Summary

aws-iot-device-sdk-python-v2 is a Python library typically used in Cloud, AWS applications. aws-iot-device-sdk-python-v2 has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install aws-iot-device-sdk-python-v2' or download it from GitHub, PyPI.

This document provides information about the AWS IoT Device SDK v2 for Python. If you have any issues or feature requests, please file an issue or pull request. This SDK is built on the AWS Common Runtime, a collection of libraries (aws-c-common, aws-c-io, aws-c-mqtt, aws-c-compression, aws-c-http, aws-c-cal, aws-c-auth, s2n ...) written in C to be cross-platform, high-performance, secure, and reliable. The libraries are bound to Python by the awscrt package (PyPI) (Github).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              aws-iot-device-sdk-python-v2 has a low active ecosystem.
              It has 314 star(s) with 184 fork(s). There are 26 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 8 open issues and 172 have been closed. On average issues are closed in 78 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of aws-iot-device-sdk-python-v2 is v1.15.0

            kandi-Quality Quality

              aws-iot-device-sdk-python-v2 has 0 bugs and 0 code smells.

            kandi-Security Security

              aws-iot-device-sdk-python-v2 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              aws-iot-device-sdk-python-v2 code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              aws-iot-device-sdk-python-v2 is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              aws-iot-device-sdk-python-v2 releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 22941 lines of code, 1483 functions and 54 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed aws-iot-device-sdk-python-v2 and discovered the below as its top functions. This is intended to give you an instant insight into aws-iot-device-sdk-python-v2 implemented functionality, and help decide if they suit your requirements.
            • Get credentials and launch them
            • Create a get secret value operation
            • Get secret value
            • Get a secret value
            • Discover a thing
            • Create a DiscoverResponse object from a payload
            • Construct a GGGCore instance from a payload
            • Create a GGroup object from a dict
            • Subscribe to an update job
            • Subscribe to a getNamedShadow subscription request
            • Subscribe to updateNamedShadow subscription
            • Subscribe to a named shadowDelta
            • Subscribe to named shadow updated events
            • Subscribe to a delete_shadow subscription request
            • Subscribe to a describe job
            • Subscribe to update job execution
            • Subscribe to a DescribeJobExecutionRequest
            • Subscribe to a given request
            • Subscribe to update shadow subscription
            • Subscribe to a deleted shadow subscription
            • Create a TLS connection with the given pkcs11
            • Creates a connection using a direct connection
            • Create a websocket connection
            • Called when a get shadow is received
            • Create a Greengrass Core instance
            • Delete an IOT thing
            Get all kandi verified functions for this library.

            aws-iot-device-sdk-python-v2 Key Features

            No Key Features are available at this moment for aws-iot-device-sdk-python-v2.

            aws-iot-device-sdk-python-v2 Examples and Code Snippets

            No Code Snippets are available at this moment for aws-iot-device-sdk-python-v2.

            Community Discussions

            QUESTION

            Issues publishing to device shadow using the aws-iot-device-sdk-python-v2
            Asked 2021-Oct-25 at 09:24

            In a python application that uses the aws iot device sdk for python v2 (v1.7.1) I am running into an issue where I cannot update the device shadow.

            After starting the program, the DeviceShadowManager will attempt to get the latest shadow state and set it locally. If a delta state is present the DeviceShadowManager will merge the last reported state and delta state and publish it. That works. However, when the manager subscribes for updates, after the initial setup, I am running into an error, where when the desired state changes, the manager cannot update the reported state. Here is the error:

            ...

            ANSWER

            Answered 2021-Oct-25 at 09:24

            I am pretty sure the problem lies within

            Source https://stackoverflow.com/questions/69696291

            QUESTION

            AWS-IoT-SDK-JS-v2 connection problem - AWS CRT binary not present in any of the following locations
            Asked 2021-Jun-23 at 10:47

            I'm trying to connect to AWS IoT Core via aws-iot-sdk-js-v2 and receiving the following error when I'm running the PubSub example as described below:

            ...

            ANSWER

            Answered 2021-Jun-23 at 07:48

            I received an answer in aws-iot-device-sdk-js-v2 repository from jmklix that solved my problem:

            Currently, the maintainers of the package don't include the pre-compiled binaries for raspberry pi, but we can do this manually if we want. described in aws-crt-nodejs:

            Source https://stackoverflow.com/questions/68063950

            QUESTION

            Pass certificates to AWS MQTT API from in-memory location instead of on-disk
            Asked 2021-Jan-31 at 01:43

            I'm setting up an AWS IoT MQTT connection from a Python environment using Python package awsiotsdk. I have followed this example https://github.com/aws/aws-iot-device-sdk-python-v2/blob/main/samples/pubsub.py and gotten the demo publish/subscribe to work, so I have all the pieces.

            The only difference from the demo is that in my environment the certificates all reside in memory rather than on disk. A hack solution would be to write them to a temp location on disk and follow the example.

            I would prefer to simply instantiate the appropriate AWS authentication class which can accept a file-like object rather than a string filename. However following the code only leads me to c-binding dead ends.

            How can I create an MQTT client using in-memory certificates?

            ...

            ANSWER

            Answered 2021-Jan-31 at 01:43

            As far as I've been able to determine, this is simply not possible. My solution is to use the tempfile package to create a temporary directory which I write the cert to and then reference when I create my MQTT client. It's not elegant, but it keeps me from needing to manage the certs as an external dependency (which is what I wanted to avoid).

            Source https://stackoverflow.com/questions/65818419

            QUESTION

            How does an AWS IoT device show as "connected"
            Asked 2021-Jan-26 at 00:07

            I'm following the pubsub.py example code for AWS IoT using MQTT here. In particular I'm connecting to MQTT using the awsiotsdk.

            That example works ok, but it connects to MQTT as a generic client, not as a specific device.

            I would like to connect to MQTT to publish and subscribe as a specific device. In particular I want to be able to query for connected devices and see this device show up.

            In the demo code I see that --client-id is included. By default it uses a UUID to generate a unique client ID for the demo. I've tried setting the client-id to the thing ARN arn:aws:iot:us-west-2:123456789012:thing/test

            What I want/expect to see is the following search show the connected thing. The query comes back empty while the pubsub demo is running. The fact that it's empty tells me that the pubsub example is connecting as an MQTT client, not as a device. How do I connect as a device?

            ...

            ANSWER

            Answered 2021-Jan-26 at 00:07

            The clientId must equal the Thing name of a Thing registered in the Registry.

            The connectivity status data is indexed only for connections where the client ID has a matching thing name.

            https://docs.aws.amazon.com/iot/latest/developerguide/aggregation-troubleshooting.html

            Source https://stackoverflow.com/questions/65875369

            QUESTION

            Using awsiotsdk when subscribing to a topic with QoS.EXACTLY_ONCE, encountering AWS_ERROR_MQTT_UNEXPECTED_HANGUP
            Asked 2021-Jan-22 at 22:44

            I'm following the example pub/sub in awsiotsdk.

            ...

            ANSWER

            Answered 2021-Jan-22 at 22:44

            EXACTLY_ONCE (MQTT QOS level 2) is not currently supported by the AWS IoT Core server. This is mentioned in the source:

            Source https://stackoverflow.com/questions/65849905

            QUESTION

            Specifying a profile for awscrt.auth.AwsCredentialsProvider
            Asked 2021-Jan-22 at 16:19

            I'm creating an AwsCredentialsProvider class (api docs) from:

            ...

            ANSWER

            Answered 2021-Jan-22 at 16:19

            For custom credentials file path set environment variables AWS_CONFIG_FILE and AWS_CREDENTIAL_FILE

            For default profile set environment variable AWS_PROFILE with AWS profile name you would like to select as default. In order to use at runtime, this AWS profile name must be present in your AWS credentials file with valid configurations.

            If you use only one AWS region, then you can also set environment variable AWS_DEFAULT_REGION. At times it saves few lines of code, where you might need to specify a AWS region.

            Source https://stackoverflow.com/questions/65847720

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install aws-iot-device-sdk-python-v2

            awsiotsdk depends on awscrt, which makes use of C extensions. Precompiled wheels are downloaded when installing on major platforms (Mac, Windows, Linux, Raspberry Pi OS). If wheels are unavailable for your platform, your machine must compile some C libraries. If you encounter issues, be sure the following are installed and try again:.
            CMake 3.1+
            Python headers and libs

            Support

            The best way to interact with our team is through GitHub. You can open an issue and choose from one of our templates for guidance, 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.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular AWS Libraries

            localstack

            by localstack

            og-aws

            by open-guides

            aws-cli

            by aws

            awesome-aws

            by donnemartin

            amplify-js

            by aws-amplify

            Try Top Libraries by aws

            aws-cli

            by awsPython

            aws-cdk

            by awsTypeScript

            chalice

            by awsPython

            amazon-sagemaker-examples

            by awsJupyter Notebook