Skip to main content

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

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

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

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

if __name__ == '__main__':

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

Uploaded source

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