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

Uploaded Source

File details

Details for the file roughrider.application-0.1.tar.gz.

File metadata

  • Download URL: roughrider.application-0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for roughrider.application-0.1.tar.gz
Algorithm Hash digest
SHA256 c5454fa464d892f20229e3e67e735be87dbe39ea39f857feaea1aa6bc9f1df35
MD5 0802a400a56b942d8419eb6faedac341
BLAKE2b-256 26df35f843401fb1c818acb08a1cc20fd579722f4c84b73581d295c4ef6d0a18

See more details on using hashes here.

Supported by

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