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 > Programming > Libraries

    CorePost 0.0.16

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Jacek Furmankiewicz | More programs
    BSD License / FREE
    April 20th, 2012, 08:45 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    CorePost description

    A Twisted Web REST micro-framework

    CorePost is based on *Flask* API, with integrated multiprocessing support for full usage of all CPUs. Provides a more Flask/Sinatra-style API on top of the core *twisted.web* APIs.

    Geared towards creating REST-oriented server platforms (e.g. as a source of data for a Javascript MVC app). Tested exclusively on PyPy for maximum performance.

    Example

            from corepost.web import CorePost
            from corepost.enums import Http

            app = CorePost()

            @app.route("/",Http.GET)
            def root(request,**kwargs):
                return request.path

            @app.route("/test",Http.GET)
            def test(request,**kwargs):
                return request.path

            @app.route("/test//test2/",Http.GET)
            def test_get_resources(request,numericid,stringid,**kwargs):
                return "%s - %s" % (numericid,stringid)

            if __name__ == '__main__':
                app.run()


    @defer.inlineCallbacks support

    If you want a deferred async method, just complete the request yourself, instead of returning a string response

            @app.route("/",Http.GET)
            @defer.inlineCallbacks
            def root(request,**kwargs):
                    val = yield db.query("SELECT ....")
                    request.write(val)
                    request.finish()


    Performance

    On par with raw *twisted.web* performance. Minimal overhead for URL routing and function argument extraction.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · minor bug fix for issue #4 (serializing object graphs to XML), removed Jinja2 as dependency: https://github.com/jacek99/corepost/issues/4

      


    TAGS:

    REST micro-framework | web framework | web | REST | micro-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