Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

valpackett/rapidmachine

 
 

Repository files navigation

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()

About

Rapid API Development with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.7%
  • Ruby 0.3%