pip install pyopereto
OR
python setup.py install
Create a file named opereto.yaml in your home directory containing Opereto access credential:
~/opereto.yaml
opereto_host: https://your_opereto_service_url
opereto_user: your_opereto_username
opereto_password: your_opereto_password
opereto_host: https://your_opereto_service_url
opereto_token: <YOUR_TOKEN>
From the command line console, please type:
/>opereto -h
from pyopereto.client import OperetoClient
my_client = OperetoClient()
...
...
# add this after invoking the client
import logging
logging.getLogger("pyopereto").setLevel(logging.DEBUG)