Python client for Thola.
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import thola_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import thola_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import thola_client
from thola_client.rest import ApiException
from pprint import pprint
configuration = thola_client.Configuration()
# create an instance of the API class
api_instance = thola_client.CheckApi(thola_client.ApiClient(configuration))
body = thola_client.CheckCPULoadRequest() # CheckCPULoadRequest | Request to process.
try:
# Check the cpu load of a device.
api_response = api_instance.check_cpu_load(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CheckApi->check_cpu_load: %s\n" % e)
You can find the full API documentation on our SwaggerHub.