Skip to main content

A Twisted Web REST micro-framework

Project description

Twisted REST micro-framework

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.


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

app = CorePost()

def root(request,**kwargs):
return request.path

def test(request,**kwargs):
return request.path

def test_get_resources(request,numericid,stringid,**kwargs):
return "%s - %s" % (numericid,stringid)

if __name__ == '__main__':

@defer.inlineCallbacks support

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

def root(request,**kwargs):
val = yield db.query("SELECT ....")


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


* match all the relevant features of the Flask API
* integrate twisted.internet.processes in order to scale to multiple CPU cores :

Project details

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.1.tar.gz (4.6 kB view hashes)

Uploaded source

Built Distribution

CorePost-0.0.1-py2.7.egg (9.2 kB view hashes)

Uploaded 2 7

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page