Rapid API Development with Python
Python Ruby
Pull request Compare This branch is 127 commits ahead of benoitc:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
rapidmachine
tests
.gitignore
.travis.yml
Guardfile
LICENSE
README.md
requirements-ci.txt
requirements-dev.txt
setup.py

README.md

RapidMachine Build Status

RAD + API = RAPID.
Rapid Application Development + Application Programming Interface = Rapid Application Programming Interface Development.

RapidMachine is a RAPID toolkit for Python, based on a Webmachine-style HTTP abstraction and built on Werkzeug.

Get excited

Zero-boilerplate CRUD for a dictshield model and MongoDB:

import pymongo
from rapidmachine import App, Route, Var, DocumentResource
from rapidmachine.persistence import MongoPersistence
from dictshield.document import Document
from dictshield.fields import StringField

db = pymongo.Connection().database

class Post(Document):
    _public_fields = ["title", "body"]
    title = StringField(max_length=64)
    body  = StringField(max_length=1024)

class PostResource(DocumentResource):
    document    = Post
    persistence = MongoPersistence(db, "posts")
    pk          = "title"

class PostsApp(App):
    handlers = [
        Route("posts").to(PostResource),
        Route("posts", Var("title")).to(PostResource)
    ]

if __name__ == "__main__":
    PostsApp().devserve()

Docs