{"library":"python-watcherclient","title":"python-watcherclient","description":"Python client library for the OpenStack Watcher (optimization) API. Current version: 4.10.0. Release cadence follows OpenStack releases (approx. every 6 months).","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install python-watcherclient"],"cli":{"name":"watcher","version":"watcher 4.10.0"}},"imports":["from watcherclient import client"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from watcherclient import client\nfrom keystoneauth1 import session\nfrom keystoneauth1.identity import v3\n\nauth = v3.Password(auth_url=os.environ.get('OS_AUTH_URL', 'http://localhost:5000/v3'),\n                   username=os.environ.get('OS_USERNAME', 'admin'),\n                   password=os.environ.get('OS_PASSWORD', 'password'),\n                   project_name=os.environ.get('OS_PROJECT_NAME', 'admin'),\n                   user_domain_name=os.environ.get('OS_USER_DOMAIN_NAME', 'Default'))\nsess = session.Session(auth=auth)\nwc = client.Client(1, session=sess)\nprint(list(wc.audit.list()))","lang":"python","description":"Authenticate and list audits.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}