[ckan-dev] A new ckan client library: ckanapi
Toby Dacre
toby.okfn at gmail.com
Mon Apr 15 14:59:53 UTC 2013
On 12 April 2013 16:11, Ian Ward <ian at excess.org> wrote:
> I've separated out my CKAN Action API wrapper into a separate project.
> To try it out:
>
> pip install ckanapi
>
> Then in a Python shell/script:
>
> import ckanapi
> import pprint
>
> demo = ckanapi.RemoteCKAN('http://demo.ckan.org')
> groups = demo.action.group_list(id='data-explorer')
> pprint.pprint(groups)
>
> More details here: https://github.com/open-data/ckanapi
>
> Contributions welcome! (especially for filestore, unit tests and other
> things I'm missing)
>
Ian,
I'm a little concerned with these imports
from ckan.logic import (ParameterError, NotAuthorized, NotFound,
ValidationError)
from ckan.lib.search import SearchQueryError, SearchError
I'd be happier for you just to create your own exceptions like you do
anyhow. This will allow us to refactor ckan without breaking your
code.
Toby
_______________________________________________
ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130415/a33a5620/attachment-0001.html>
More information about the ckan-dev
mailing list