Skip to main content

Run-of-the-mill WSGI application base with URL routing.

Project description

Base WSGI application using horseman nodes with routing capabilities.

Example

Below is an example of an application, handling a GET request on ‘/’ and returning a JSON response.

from horseman.response import Response
from roughrider.application import Application

app = Application()

@app.routes.register('/')
def json(request):
    return Response.to_json(body={'message': "Hello, world!"})

CHANGES

0.2 (2022-02-11)

  • Corrected the request extract method.

0.1 (2021-12-27)

  • Initial release.

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

roughrider.application-0.2.tar.gz (7.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page