Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python port of Restfulie
tag: v0.8.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
maze
restfulie
spec
test
.gitignore
LICENSE
README.textile
setup.cfg
setup.py

README.textile

Documentation Wiki

One minute guide

This is a one minute guide to get you going with Restfulie Python
We are ready to go, hypermedia supported:

from restfulie import Restfulie

# using restfulie as an http api:
>>> response = Restfulie.accepts('application/xml').at('http://localhost:8080/items').get()
>>> print response.body
<items>
    <item>
        <name>Car</name>
        <price>32000.00</price>
    </item>
    <item>
        <name>House</name>
        <price>231000.00</price>
    </item>
</items>

>>> print response.code
200

# unmarshalling the items response
>>> r = response.resource()
>>> print len(r.item)
2
>>> print len(r.item[0].name)
Car

# navigating through hypermedia
>>> item = { 'name': 'New product', 'price': 30 }
>>> result = items.link("self").follow().post(item)
>>> print result.code
200

This is it. Adding hypermedia capabilities and following links. Now its time to use it in the right way.

Installing Restfulie

On project root, run:

$ python setup.py install

Installing Restfulie for development

On project root, run:

$ python setup.py develop

Running tests

On project root, run:

$ python setup.py nosetests

To run restfulie-restbuy integration test, first start restfulie-restbuy server and run:

$ python setup.py nosetests -i "spec|should"

Team

Alexandre Atoji
Andrew Toshiaki Nakayama Kurauchi
Rodrigo Manhães
Douglas Camata
Hugo Lopes Tavares
Tarsis Azevedo
BecaMotta
Marianna Reis
Guilherme Silveira
Pedro Matiello

Something went wrong with that request. Please try again.