This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
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.


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.


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.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
redirector-0.1.1.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Mar 10, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting