Before programming an Iotic system, you will need to download Python3 and the IoticAgent API.
Note. If you prefer to use Python2, you will need to make your Iotic code compatible by adding the following at the top of your scripts:
# PYTHON2 COMPATIBILITY ——————————————–from __future__ import unicode_literals, print_function # pylint: disable=unused-import
The Iotic Agent is a library of code that provides access to Iotic Space by communicating with the secure Iotic brokering service.
You can find more information about py-IoticAgent from these places:
You can install the Iotic Agent globally by running the following in a terminal:
Ubuntu and Mac: pip3 install py-IoticAgent
Windows: pip install py-IoticAgent
Alternatively, you can install it to a specific directory:
Ubuntu and Mac: pip3 install -t 3rd py-IoticAgent
Windows: pip install -t 3rd py-IoticAgent
If you’ve installed the Iotic Agent to a specific directory, each time you open a terminal to run your Iotic system you will first need to set the Pythonpath by running: