[ckan-dev] [RFC] libckan - Python library for APIv3 (Action) and CKAN v2.0.0
Daniel Graziotin
dgraziotin at task3.cc
Thu Feb 21 16:20:31 UTC 2013
Hello everyone,
As I promised, I wrote some code on which I would like to gather your feedback.
The library is tentatively called libckan. It took me a while to think about the structure of the library.
Even though I wanted to stay as much more Object Oriented as possible, I finally decided to mimic CKAN API in both syntax and semantics.
This is because I would like developers to read CKAN documentation and be able to almost immediately use libckan.
Using it will be as easy as:
---
import libckan.logic.action.get
packages = libckan.logic.action.get.package_search(q='test')
---
There are differences between CKAN and libckan structure, especially in the models (pure Python models).
Currently, only package_search and package_list actions are implemented. I would like to gather some feedback before continuing.
Read the initial documentation here: https://libckan.readthedocs.org/en/latest/index.html
README file: https://github.com/dgraziotin/libckan/blob/master/README.rst
Get the source code here: https://github.com/dgraziotin/libckan
I look forward to read your comments, suggestions and criticism.
Best Regards,
--Daniel Graziotin
More information about the ckan-dev
mailing list