pip install vidal-api.py
Just create client with your VIDAL Credentials :
>>> from vidal.client import VidalClient
>>> client = VidalClient(app_id = "<my_vidal_app_id>", app_key="<my_app_key>")
And you can use any kind of API chaining your commands lazyli and then call an http verb method like get() to trigger the API call.
Example :
# this will call "http://api.vidal.fr/rest/api/product/94930/packages" with a GET verb.
>>> client.product(94930).packages.get()
# search example :
>>> client.products.get(q = "amox")
# or any kind of get parameters :
>>> client.product(94930).packages.get(aggregates = "product")
You need Python installed and pip, then just run :
pip install -r requirements.txt
and to execute the tests :
nosetests
Default indendation is 4 spaces no tabs.