okfn / ckanclient-deprecated

DEPRECATED - please see https://github.com/ckan/ckanapi. [Python client library for CKAN]
http://pypi.python.org/pypi/ckanclient
25 stars 17 forks source link

Add complex example of package_search to documentation #30

Open rsignell-usgs opened 10 years ago

rsignell-usgs commented 10 years ago

It would be great to have a complex example of package_search added to the documentation.

I can get this to work:

q = 'tags:sea_water_temperature'
ckan = ckanclient.CkanClient('http://catalog.data.gov/api/3')
d = ckan.action('package_search', q=q, rows=10)

but can't figure out how to pass a more complex request like

d={"q":"sea_water_temperature",
   "extras":{"ext_bbox":"-121,45,-120,46"},
   "fq": "res_format:WMS"}
rsignell-usgs commented 10 years ago

@rgrp: 50 points out there for the taking, in case that sweetens the pot. ;-) http://opendata.stackexchange.com/questions/1309/geospatial-temporal-and-keyword-search-using-ckan-api-on-data-gov-using-ckancli