Go to file
OpenStack Proposal Bot 087dbd01a0 Updated from global requirements
Change-Id: I866670a3b185efe30b9b9f9c4dd562fe15f28088
2016-01-19 13:52:56 +00:00
2015-11-28 16:40:16 +08:00
2015-11-28 16:40:16 +08:00
2015-11-19 10:13:03 +00:00
2015-11-28 16:40:16 +08:00
2015-11-28 16:40:16 +08:00
2015-11-28 16:40:16 +08:00
2015-11-28 16:40:16 +08:00
2015-11-28 16:40:16 +08:00
2015-12-02 23:16:32 +08:00
2015-12-15 18:27:05 +09:00
2015-11-28 16:40:16 +08:00

python-searchlightclient

OpenStack Indexing and Search API Client Library

This is a client library for Searchlight built on the Searchlight API. It provides a Python API (the searchlightclient module) and a command-line tool (searchlight).

The project is hosted on Launchpad, where bugs can be filed. The code is hosted on Github. Patches must be submitted using Gerrit, not Github pull requests.

python-searchlightclient is licensed under the Apache License like the rest of OpenStack.

Contents:

Command-line API

Python API

To use with keystone as the authentication system:

>>> from keystoneclient.auth.identity import generic
>>> from keystoneclient import session
>>> from searchlightclient import client
>>> auth = generic.Password(auth_url=OS_AUTH_URL, username=OS_USERNAME, password=OS_PASSWORD, tenant_name=OS_TENANT_NAME)
>>> keystone_session = session.Session(auth=auth)
>>> sc = client.Client('1', session=keystone_session)
>>> sc.resource_types.list()
[...]

Testing

There are multiple test targets that can be run to validate the code.

  • tox -e pep8 - style guidelines enforcement
  • tox -e py27 - traditional unit testing
Description
RETIRED, OpenStack Search (Searchlight) Client
Readme 1.5 MiB