A client for communicating with the Google Search Appliance.
Project description
Python GSA
==========
A client library for the Google Search Appliance, to make retrieving search results in Python easier.
Usage
----
.. code:: python
search_client = GSAClient(base_url="http://gsa.example.com/search")
results = search_client.search("hello world")
total = search_client.total_results("hello world")
Django view
----
There is also a view for using this with Django:
.. code:: python
# settings.py
SEARCH_SERVER_URL = 'http://gsa.example.com/search'
# urls.py
from ubuntudesign.gsa.views import SearchView
urlpatterns += [url(r'^search/?$', SearchView.as_view(template_name="search.html"))]
==========
A client library for the Google Search Appliance, to make retrieving search results in Python easier.
Usage
----
.. code:: python
search_client = GSAClient(base_url="http://gsa.example.com/search")
results = search_client.search("hello world")
total = search_client.total_results("hello world")
Django view
----
There is also a view for using this with Django:
.. code:: python
# settings.py
SEARCH_SERVER_URL = 'http://gsa.example.com/search'
# urls.py
from ubuntudesign.gsa.views import SearchView
urlpatterns += [url(r'^search/?$', SearchView.as_view(template_name="search.html"))]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ubuntudesign.gsa-0.1.1.tar.gz
.
File metadata
- Download URL: ubuntudesign.gsa-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c593794b30f0c704b56b11f24343d6f3b6df2117cb03b1401062b1216d881da5 |
|
MD5 | 73fa639e090e45bc9e621421247253a2 |
|
BLAKE2b-256 | 4f7ebd3b6b1c3a142705d2b65a9cf90e5f2154677dc1eba617e23626dc1463c5 |