> This document is reformatted to better viewing as a standalone document.
> We recommended visit this [GitHub v1.0.3 link](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/) for best experience.
# Introduction
This project is the IoTConnect Python Lite Client (SDK)
that aims for a modern, intuitive and robust interface to connect your
Linux, Windows or MacOS devices to the Avnet IoTConnect platform.
The project supports IoTConnect Device Protocol 2.1 devices.
The project requires Python 3.9 or newer and provides
a set of features for most common IoTConnect use cases.
If you need support for older Pyton, Protocol 1.0, Properties (Shadow/Twin)
Offline or HTTP Client along with other features like Gateway/Child support
you should check out the standard
[Iotconnect Python SDK](https://github.com/avnet-iotconnect/iotc-python-sdk) repository.
# Licensing
This python package is distributed under the [MIT License](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/LICENSE.md).
# Installing
The quickest way to get started with the project is to follow the [QUICKSTART.md](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/QUICKSTART.md) document.
# Using the Client
Using this client to communicate to IoTConnect involves the following steps:
- Get familiar with the client API by examining documentation at [client.py](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/src/avnet/iotconnect/sdk/lite/client.py)
- Initialize the client with either:
- iotcDeviceConfig.json (downloaded from the device *Info* panel) - see the [basic-example](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/basic-example.py)
- Explicit parameters to the constructor - see the [minimal example](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/minimal.py).
- Optionally, configure your own Client settings (log verbosity, timeouts etc.) and pass those to the constructor.
- Optionally, pass callbacks for C2D message and OTA (see the [basic-example](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/basic-example.py)) or even your own [custom message handler](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/c2d-special-event-handling.py) to the constructor
- While actual download and application replacement mechanism would depend on how your application runs
(via a system service, cron or other method) a simple OTA download and install method is shown in the [ota-handling](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/ota-handling.py) example.
- Optionally, pass a callback for the MQTT disconnect event and handle it according to your application requirements.
- Call Client.connect(). The call should block until connected based on timeout retry settings.
- Call Client.send_telemetry() at regular intervals. Verify that the client is connected with Client.is_connected()
Raw data
{
"_id": null,
"home_page": null,
"name": "iotconnect-sdk-lite",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "IoTconnect, AWS, IoTCore, Azure, IoTHub",
"author": null,
"author_email": "Nik Markovic <nikola.markovic@avnet.com>",
"download_url": "https://files.pythonhosted.org/packages/ea/88/aff0372f2854e34b360e46889ae8f76c01d3d1dbcf611eb22fdb8e082a06/iotconnect_sdk_lite-1.0.3.tar.gz",
"platform": null,
"description": "\n> This document is reformatted to better viewing as a standalone document.\n> We recommended visit this [GitHub v1.0.3 link](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/) for best experience.\n\n# Introduction\nThis project is the IoTConnect Python Lite Client (SDK)\nthat aims for a modern, intuitive and robust interface to connect your\nLinux, Windows or MacOS devices to the Avnet IoTConnect platform.\n\nThe project supports IoTConnect Device Protocol 2.1 devices. \nThe project requires Python 3.9 or newer and provides\na set of features for most common IoTConnect use cases.\n\nIf you need support for older Pyton, Protocol 1.0, Properties (Shadow/Twin)\nOffline or HTTP Client along with other features like Gateway/Child support\nyou should check out the standard\n[Iotconnect Python SDK](https://github.com/avnet-iotconnect/iotc-python-sdk) repository.\n\n# Licensing\n\nThis python package is distributed under the [MIT License](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/LICENSE.md).\n\n# Installing\n\nThe quickest way to get started with the project is to follow the [QUICKSTART.md](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/QUICKSTART.md) document.\n\n# Using the Client\n\nUsing this client to communicate to IoTConnect involves the following steps:\n- Get familiar with the client API by examining documentation at [client.py](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/src/avnet/iotconnect/sdk/lite/client.py)\n- Initialize the client with either:\n - iotcDeviceConfig.json (downloaded from the device *Info* panel) - see the [basic-example](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/basic-example.py)\n - Explicit parameters to the constructor - see the [minimal example](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/minimal.py).\n- Optionally, configure your own Client settings (log verbosity, timeouts etc.) and pass those to the constructor.\n- Optionally, pass callbacks for C2D message and OTA (see the [basic-example](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/basic-example.py)) or even your own [custom message handler](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/c2d-special-event-handling.py) to the constructor \n - While actual download and application replacement mechanism would depend on how your application runs\n (via a system service, cron or other method) a simple OTA download and install method is shown in the [ota-handling](https://github.com/avnet-iotconnect/iotc-python-lite-sdk/blob/v1.0.3/examples/ota-handling.py) example. \n- Optionally, pass a callback for the MQTT disconnect event and handle it according to your application requirements. \n- Call Client.connect(). The call should block until connected based on timeout retry settings.\n- Call Client.send_telemetry() at regular intervals. Verify that the client is connected with Client.is_connected()\n",
"bugtrack_url": null,
"license": null,
"summary": "Avnet IoTConnect Lite SDK",
"version": "1.0.3",
"project_urls": {
"Homepage": "https://github.com/avnet-iotconnect/iotc-python-lite-sdk"
},
"split_keywords": [
"iotconnect",
" aws",
" iotcore",
" azure",
" iothub"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "89286b0696a7acd2ea6bc63f89b6b007cc3a2855a8507a4106ac65029b159639",
"md5": "095a250181ef7c3d3e6ec58326f517d1",
"sha256": "8f8dee0bd86cd184d00c1586ed09b3a6d498ffeb5b7610b29272694ffe3589fc"
},
"downloads": -1,
"filename": "iotconnect_sdk_lite-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "095a250181ef7c3d3e6ec58326f517d1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 23954,
"upload_time": "2025-01-29T21:45:19",
"upload_time_iso_8601": "2025-01-29T21:45:19.178244Z",
"url": "https://files.pythonhosted.org/packages/89/28/6b0696a7acd2ea6bc63f89b6b007cc3a2855a8507a4106ac65029b159639/iotconnect_sdk_lite-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ea88aff0372f2854e34b360e46889ae8f76c01d3d1dbcf611eb22fdb8e082a06",
"md5": "37338d189394c856be82f1d3dfe6ec8f",
"sha256": "b00dfb5b417e3dca77c4bbf30c529bb663cb97a9a80b3e8810272adb4ef96bda"
},
"downloads": -1,
"filename": "iotconnect_sdk_lite-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "37338d189394c856be82f1d3dfe6ec8f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 19431,
"upload_time": "2025-01-29T21:45:20",
"upload_time_iso_8601": "2025-01-29T21:45:20.719035Z",
"url": "https://files.pythonhosted.org/packages/ea/88/aff0372f2854e34b360e46889ae8f76c01d3d1dbcf611eb22fdb8e082a06/iotconnect_sdk_lite-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-29 21:45:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "avnet-iotconnect",
"github_project": "iotc-python-lite-sdk",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "iotconnect-sdk-lite"
}