Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Internet > HTTP (WWW)

    devil 0.6

    Download button

    No screenshots available
    Downloads: 71  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Janne Kuuskeri | More programs
    MIT/X Consortium Lic... / FREE
    April 21st, 2012, 08:06 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    devil description

    Simple REST framework for Django

    devil aims to be a simple to use REST framework for Django. It is influenced by piston.

    Example

    myresources.py:

        from drest.resource import Resource
        from drest.http import Response


        class MyTestResource(Resource):
            def get(self, request, *args, **kw):
                return {'jedi': 'luke'}

    urls.py:

        from django.conf.urls.defaults import patterns, include, url
        from drest.resource import Resource
        import myresources

        mytestresource = myresources.MyTestResource()
        urlpatterns = patterns('',
            url(r'^test', mytestresource),
        )



    Product's homepage

    Here are some key features of "devil":

    · `Resource` is the key concept, everything builds around it.
    · Builtin content negotiation (parsers / formatters).
    · Gets out of your way
    · You can use additional features but you don't need to.
    · Everything is optional and works with default values.
    · Simple to get started.
    · Flexible access control based on Django's users, groups and permissions.
    · Ability to assign CRUD operations per resource for each user (or group)
    · dRest will auto-generate necessary permissions into the DB
    · You can use Django's admin interface to assign permissions to users and groups
    · After this dRest automatically picks up `request.user` and performs authorization
    · Intentionally doesn't give you CRUD for free as piston does
    We can add this option later if it's concidered useful, but:
    · This rarely works for legacy systems anyway
    · For anything bigger, it's usually a good idea to decouple model and representation
    · Ability to define representation using Django's forms
    · Automatic validation of incoming/outgoing data
    · Automatic documentation generation (_Not implemented yet_)

    Requirements:

    · Python
    · Django

      


    TAGS:

    REST framework | Django framework | Django | REST | framework



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM