{ "info": { "author": "Amazon Web Services", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.7" ], "description": "Greengrass SDK\n=====================\n\nThe AWS IoT Greengrass Core SDK is meant to be used by AWS Lambda functions running on an AWS IoT Greengrass Core. It will enable Lambda functions to invoke other Lambda functions deployed to the Greengrass Core, publish messages to the Greengrass Core and work with the local Shadow service.\nYou can find the latest, most up to date, documentation at our `doc site `_.\n\n===============================\nUsing AWS IoT Greengrass Core SDK\n===============================\n\nTo use the AWS IoT Greengrass Core SDK, you must first import the AWS IoT Greengrass Core SDK in your Lambda function as you would with any other external libraries. You then need to create a client for 'iot-data' or 'lambda'. Use 'iot-data' if you wish to publish messages to the local Greengrass Core and interact with the local Shadow service. Use 'lambda' if you wish to invoke other Lambda functions deployed to the same Greengrass Core.\n\nHere is an example for using the 'iot-data' client\n\n.. code-block:: python\n\n import greengrasssdk\n\n # Let's instantiate the iot-data client\n client = greengrasssdk.client('iot-data')\n\n\nNow that you have an ``iot-data`` client, you can publish requests.\n\n.. code-block:: python\n\n response = client.publish(\n topic='someTopic',\n payload='some data'.encode()\n )\n\nHere is an example for using the 'lambda' client.\n\n.. code-block:: python\n\n import greengrasssdk\n\n client = greengrasssdk.client('lambda')\n\nNow that you have a lambda client, you can publish requests.\n\n.. code-block:: python\n\n # Define the payload to pass to the invoked lambda function\n msg = json.dumps({\n 'message':\"hello\"\n })\n\n # Invoke the lambda function\n response = client.invoke(\n FunctionName='arn::lambda:::function:',\n InvocationType='RequestResponse',\n Payload=payload,\n Qualifier='2'\n )\n\n==============\nCompatibility\n==============\n\nAs new features are added to AWS IoT Greengrass, previous versions of the AWS IoT Greengrass SDK will be incompatible with newer versions of the AWS IoT Greengrass core. The following table lists the compatible SDKs for all GGC releases.\n\n+-------------+------------------------+\n| GGC Version | Compatible SDK Versions|\n+=============+========================+\n| 1.0.x-1.6.x | 1.0.x-1.2.x |\n+-------------+------------------------+\n| 1.7.x-1.8.x | 1.0.x-1.3.x |\n+-------------+------------------------+\n| 1.9.x | 1.0.x-1.4.x |\n+-------------+------------------------+\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "greengrasssdk", "package_url": "https://pypi.org/project/greengrasssdk/", "platform": "", "project_url": "https://pypi.org/project/greengrasssdk/", "project_urls": null, "release_url": "https://pypi.org/project/greengrasssdk/1.4.0/", "requires_dist": null, "requires_python": "", "summary": "The AWS IoT Greengrass SDK for Python", "version": "1.4.0" }, "last_serial": 5210676, "releases": { "1.3.0": [ { "comment_text": "", "digests": { "md5": "21f4276c5321c20e6486160a1eb54210", "sha256": "c5255a9ab54e549892e0f1a781f4ce4f842bc082072ed48dac7e4b707d38e799" }, "downloads": -1, "filename": "greengrasssdk-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "21f4276c5321c20e6486160a1eb54210", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10276, "upload_time": "2018-11-27T00:50:34", "url": "https://files.pythonhosted.org/packages/c8/3b/d384af794304e068fb11dcb0a743b0cdfebf9b8240738853152b1607b492/greengrasssdk-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c23e2185c420f75f2b4b7c10ea2ef22", "sha256": "6d0855e721dbe1d91455439b94e67476cdd4898868009a3e4dd3f8ee09f617fd" }, "downloads": -1, "filename": "greengrasssdk-1.3.0.tar.gz", "has_sig": false, "md5_digest": "3c23e2185c420f75f2b4b7c10ea2ef22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7588, "upload_time": "2018-11-27T00:50:37", "url": "https://files.pythonhosted.org/packages/c5/81/3beee87831e48e8107b68effbbc345ea42df4ff449b83215b10230842a05/greengrasssdk-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "a75c8f51ebd44f6e5a8f33f3444fd0f0", "sha256": "f37eb09dad09d0d0fe3b354aa29fc12226c139ff421dd34f525d6b80df89aae5" }, "downloads": -1, "filename": "greengrasssdk-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a75c8f51ebd44f6e5a8f33f3444fd0f0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10372, "upload_time": "2019-05-01T00:05:32", "url": "https://files.pythonhosted.org/packages/58/7f/7c48616e8632bc5d44b58d04087ee85bad4ee8db3a2d2cca5ef26434b5e4/greengrasssdk-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "24e649b05a9ec25f4dc5e26076cc8e12", "sha256": "fcaca111236b684b42c3fdff9568ab1f86505ead9f488a2df35bf4cd20547bf4" }, "downloads": -1, "filename": "greengrasssdk-1.4.0.tar.gz", "has_sig": false, "md5_digest": "24e649b05a9ec25f4dc5e26076cc8e12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7700, "upload_time": "2019-05-01T00:05:34", "url": "https://files.pythonhosted.org/packages/23/cc/028662d7e43eaa7ae6f311b59b9a7e498ad4c5547ae7338284a163d1bef7/greengrasssdk-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a75c8f51ebd44f6e5a8f33f3444fd0f0", "sha256": "f37eb09dad09d0d0fe3b354aa29fc12226c139ff421dd34f525d6b80df89aae5" }, "downloads": -1, "filename": "greengrasssdk-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a75c8f51ebd44f6e5a8f33f3444fd0f0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10372, "upload_time": "2019-05-01T00:05:32", "url": "https://files.pythonhosted.org/packages/58/7f/7c48616e8632bc5d44b58d04087ee85bad4ee8db3a2d2cca5ef26434b5e4/greengrasssdk-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "24e649b05a9ec25f4dc5e26076cc8e12", "sha256": "fcaca111236b684b42c3fdff9568ab1f86505ead9f488a2df35bf4cd20547bf4" }, "downloads": -1, "filename": "greengrasssdk-1.4.0.tar.gz", "has_sig": false, "md5_digest": "24e649b05a9ec25f4dc5e26076cc8e12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7700, "upload_time": "2019-05-01T00:05:34", "url": "https://files.pythonhosted.org/packages/23/cc/028662d7e43eaa7ae6f311b59b9a7e498ad4c5547ae7338284a163d1bef7/greengrasssdk-1.4.0.tar.gz" } ] }