Skip to main content

WSGI middleware/app for managing redirects

Project description

Control redirects through WSGI middleware.

redirector is a piece of WSGI middleware that allows redirects to be managed within the scope of a python web service. Traditionally, redirects are done via Apache or some other web server disparate from the python application. This leads to several undesirable consequences:

  • there is no way of controlling redirects through the web

  • the web server must be restarted when redirects are changed

Because of this methodology of doing things, it discourages the stake-holders (the people that actually care about the redirects) from changing the redirects themselves. Because the redirects are not, in their mind, content, this leads to unmaintainable systems. The goal of redirector is to bring the power to create redirects to any authorized user.

Status

Redirector is largely in the conceptual stage. While what redirector does now (regular expression redirects) is sufficient to reproduce Apache’s behavior, it is not enough to realize the vision of bringing redirects to the people for WSGI apps.

Even this documentation is thoroughly imcomplete.

TODO

redirector needs several pieces to become what it should be:

Types of Redirects

Currently, only regular expression redirects (a la Apache) are implemented. Another possibility, probably more applicable, are something like glob redirects. The reason that these are useful is that they, with a carefully constructed rule system, can be seen to match each other. In other words, you can see if the existing set of redirects is contradictory and if there are superfluous redirects. It also better matches how non-experts think about redirects.

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

redirector-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file redirector-0.1.1.tar.gz.

File metadata

  • Download URL: redirector-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for redirector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5a24daac256564eec1f5d14a877cddb87886750fee1d701ec10bcfe7c695c993
MD5 09e7630b653cccacabb25c305982baea
BLAKE2b-256 31dbab8a4163e1f3f85828a2ce624ceb3c456f1c4b7d79426e5e2e5b4350aba5

See more details on using hashes here.

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