Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install hroute

How to install hroute

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install hroute
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.0 Available View build log
0.1.0 Available View build log
Windows (64-bit)
0.2.0 Available View build log
0.1.0 Available View build log
Mac OS X (10.5+)
0.2.0 Available View build log
0.1.0 Available View build log
Linux (32-bit)
0.2.0 Available View build log
0.1.0 Available View build log
Linux (64-bit)
0.2.0 Available View build log
0.1.0 Available View build log
 
License
MIT
Imports
Lastest release
version 0.2.0 on May 6th, 2011

hroute

simple HTTP proxy based on tproxy.

Features
  • location rewriting
  • links rewriting to handle proxy / paths
  • simple configuration
  • vhosts support
  • logging (coming)
  • authentification (coming)

Requirements

Install

$ pip install -r https://github.com/downloads/benoitc/hroute/requirements.txt
$ pip install hroute

Usage

Create a configuration file named route in /var/spool/hroute (default path) or any folder you want, for example in /tmp, put the following configuration:

{
    "all": {
        "routes": {
            "/": {
                "remote": "benoitc.io:80",
                "rewrite_response": true
            },
            "/local": {
                "remote": "127.0.0.1:8000"
            },
            "/google": {
                "remote": "google.com:80"
            },
            "/gunicorn": {
                "remote": "gunicorn.org:80",
                "rewrite_response": true
            },
            "/googles": {
                "remote": "encrypted.google.com:443",
                "ssl": true,
                "rewrite_response": true
            }
        }
    }
}

then launch hroute:

$ hroute -s /tmp -w 3

and go on http://127.0.0.1:5000/gunicorn. You should see the gunicorn.org website.

More features soon.

Subscribe to package updates

Last updated May 6th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.