iCR Python Module for iControl REST
Problem this snippet solves: This is a python module to simplify using iControl REST.
Install using pip:
pip install iCR
or retrieve from https://pypi.python.org/pypi?:action=displ...
Updated Jun 06, 2023
Version 2.0PeteWhite
Employee
Joined May 16, 2019
Cory_Blankenshi
Nov 08, 2017Altostratus
Hey Pete, I decided to check out iCR once more and I used the "as simple as" example you posted above but I kept getting this error: "TypeError: 'module' object is not callable".
I did some digging on the error and per Stack Exchange, the error is caused because the iCR module you import and the iCR class you instantiate are the same name.
To instantiate the iCR class successfully, I updated your sample code to
bigip = iCR.iCR("172.24.9.132","admin","admin")
That is the only way I can run the code in Python 2.7.14 without error.