scastillo / siesta

Sit back, relax and enjoy your REST client for python

Home Page:scastillo.github.com/siesta

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Python Siesta

 from siesta import API
 api = API('http://myrestful/api/v1')

 # GET /resource
 api.resource.get()
 # GET /resource (with accept header = application/json)
 api.resource.get(format='json')
 # GET /resource?attr=value
 api.resource.get(attr=value)

 # POST /resource
 api.resource.post(attr=value, attr2=value2, ...)
 # GET /resource/id/resource_collection
 api.resource(id).resource_collection().get()

##Other REST clients for python

About

Sit back, relax and enjoy your REST client for python

scastillo.github.com/siesta


Languages

Language:Python 89.2%Language:Shell 10.8%