A Twisted Web REST micro-framework
Project description
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.
The simplest possible twisted.web CorePost REST application:
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/<int:numericid>",Http.GET) def test_get_resources(request,numericid,**kwargs): return "%s" % numericid if __name__ == '__main__': app.run()
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CorePost-0.0.3.tar.gz
(5.4 kB
view hashes)
Built Distribution
CorePost-0.0.3-py2.7.egg
(10.2 kB
view hashes)