Skip to content

heinrich-redislabs/pyopereto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyopereto

Opereto official Python client and CLI tool

Installation

pip install pyopereto

OR

python setup.py install

Using the command line tool

Create a file named opereto.yaml in your home directory containing Opereto access credential:

Using basic Auth

~/opereto.yaml

opereto_host: https://your_opereto_service_url
opereto_user: your_opereto_username
opereto_password: your_opereto_password
Using token based auth
opereto_host: https://your_opereto_service_url
opereto_token: <YOUR_TOKEN>

From the command line console, please type:

/>opereto -h

Using the client

from pyopereto.client import OperetoClient

my_client = OperetoClient()

Run the client in debug mode

...
...

# add this after invoking the client
import logging
logging.getLogger("pyopereto").setLevel(logging.DEBUG)

Learn more

About

Opereto CLI and Tools

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages