2.1. Wilibs installation guide
Developers can work with i2G Restful API by using python Wilibs.
Wilibs installation guide:
Required version: python >= 3.6
Recommended version 3.7.3 (https://www.python.org/downloads/release/python-373/)
Installation steps:
Download wilibs from: https://github.com/revotechUET/wilibs/releases
Unzip wilibs file. After unzipping, there are 1 folder "wilibs" and 1 file "setup.py".
Install Wilibs:
There are 2 ways to install:
Unzipped file

In the unzipped folder

Run cmd as administrator

Run "python setup" in folder wilibs above

Processing

Make sure setup is completed

For ubuntu: open terminal, go to "wilibs" folder (unzipped folder), enter the following command: sudo python3 setup.py





For macOS: open terminal, go to "wilibs" folder (unzipped folder), enter the following command: sudo python3 setup.py


Find the folder "site-packages", you can find it by using this command: python3 -m site
Copy folder "wilibs" to the folder "site-packages" that was found from the previous step.
Install requests library by using the following command:
pip3 install requests
Last updated
Was this helpful?