Methods
Objects
SDK Installation Guide
How to install the CALLR Python SDK
Summary
The installation and usage of the python-sdk requires the following:
$ pip install callr
Collecting callr
Downloading callr-x.x.x.tar.gz
Building wheels for collected packages: callr
Running setup.py bdist_wheel for callr ... done
Stored in directory: .cache/pip/wheels/3d/18/04/753a63fd03a9778686f316fba71a83bce09567efdd457b6dff
Successfully built callr
Installing collected packages: callr
Successfully installed callr-x.x.x
$ pip install future
Collecting future
Downloading future-x.xx.x.tar.gz (1.6MB)
Building wheels for collected packages: future
Running setup.py bdist_wheel for future ... done
Stored in directory: .cache/pip/wheels/11/c5/d2/ad287de27d0f0d646f119dcffb921f4e63df128f28ab0a1bda
Successfully built future
Installing collected packages: future
Successfully installed future-x.xx.x
import callr, os, sys
api = callr.Api("login","password")
result = api.call("system.get_timestamp")
print(result)
...
callr>=2
future>=0.15.2
$ pip install -r requirements.txt
Collecting callr>=x (from -r requirements.txt (line 1))
Downloading callr-x.x.x.tar.gz
Collecting future>=x.xx.x (from -r requirements.txt (line 2))
Downloading future-x.xx.x.tar.gz (1.6MB)
Building wheels for collected packages: callr, future
Running setup.py bdist_wheel for callr ... done
Stored in directory: .cache/pip/wheels/3d/18/04/753a63fd03a9778686f316fba71a83bce09567efdd457b6dff
Running setup.py bdist_wheel for future ... done
Stored in directory: .cache/pip/wheels/11/c5/d2/ad287de27d0f0d646f119dcffb921f4e63df128f28ab0a1bda
Successfully built callr future
Installing collected packages: callr, future
Successfully installed callr-x.x.x future-x.xx.x
import callr, os, sys
api = callr.Api("login","password")
result = api.call("system.get_timestamp")
print(result)
...
If you do not wish to use a package manager, perform the following steps:
import sys
sys.path.append("/path/to/callr_folder")
import callr
api = callr.Api("login", "password")
...