Skip to main content

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"))]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ubuntudesign.gsa-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file ubuntudesign.gsa-0.1.0.tar.gz.

File metadata

File hashes

Hashes for ubuntudesign.gsa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c8c8bacf0ab2978f148dff5416361805a9eea354bd1f9920591f6a5c8f638c1
MD5 cd5f9abdbb6a0d74d6bc0d7a4fc0d8ed
BLAKE2b-256 37046a3ecd15666ff8de613346ac384ff1bd32cfe54f06c1301be7e8e98f47a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page