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
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
Close
Hashes for roughrider.application-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd1c7e20152cf49c0ff19b0f26f9cbb611db0022774449fdc5e4224d136e599f |
|
MD5 | 3fac52e4d407d49d740c1a52ca619bd7 |
|
BLAKE2b-256 | 9f769844e177d424f5d2808f7fb6b6449f2c9c1e3531746a42cef87a30f6de17 |