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.3.1 (2022-02-22)
Added a handful of tests for application_uri.
0.3 (2022-02-22)
Request application_uri now handles environs that are not well formed. It fixes some uses of “proxy” or “virtual host” middlewares.
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.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16a54582c0f7ca2c8f88bd2996f4753947723d29ebe92dfc0c1e4b6b412de59 |
|
MD5 | 4af5efec9fa6f79004367beb8be2b528 |
|
BLAKE2b-256 | 2c7ce9f924cc5bdd26e66b9ced433f90692c5439f0f77b45e24ee96279bd9862 |