HTTP router
Project description
hroute
------
simple HTTP proxy based on `tproxy <http://github.com/benoitc/tproxy>`_.
Features
++++++++
- location rewriting
- links rewriting to handle proxy / paths
- simple configuration
- vhosts support
- logging (coming)
- authentification (coming)
Requirements
------------
- `Python <http://python.org>`_ 2.6 and sup (Python 3 not suppported yet)
- `gevent <http://gevent.org>`_ >=0.13.4
- `setproctitle <http://code.google.com/p/py-setproctitle/>`_ >=1.1.2
- `tproxy <http://github.com/benoitc/http-parser>`_ >=0.5.0
- `http-parser <http://github.com/benoitc/http-parser>`_ >=0.3.3
- `lxml <http://lxml.de>`_
Install
-------
::
$ pip install -r https://github.com/downloads/benoitc/hroute/requirements.txt
$ pip install hroute
Usage
-----
Create a configuration file in /var/spool/hroute (default path) or any
folder you want::
{
"all": {
"routes": {
"/local": {
"remote": "127.0.0.1:8000"
},
"/google": {
"remote": "google.com:80"
},
"/gunicorn": {
"remote": "gunicorn.org:80",
"rewrite_response": true
},
}
}
}
then launch hroute::
$ hroute -s /var/spool/hroute -w 3
and go on `http://127.0.0.1:5000/gunicorn <http://127.0.0.1:5000/gunicorn>`_. You should see the gunicorn.org website.
More features soon.
------
simple HTTP proxy based on `tproxy <http://github.com/benoitc/tproxy>`_.
Features
++++++++
- location rewriting
- links rewriting to handle proxy / paths
- simple configuration
- vhosts support
- logging (coming)
- authentification (coming)
Requirements
------------
- `Python <http://python.org>`_ 2.6 and sup (Python 3 not suppported yet)
- `gevent <http://gevent.org>`_ >=0.13.4
- `setproctitle <http://code.google.com/p/py-setproctitle/>`_ >=1.1.2
- `tproxy <http://github.com/benoitc/http-parser>`_ >=0.5.0
- `http-parser <http://github.com/benoitc/http-parser>`_ >=0.3.3
- `lxml <http://lxml.de>`_
Install
-------
::
$ pip install -r https://github.com/downloads/benoitc/hroute/requirements.txt
$ pip install hroute
Usage
-----
Create a configuration file in /var/spool/hroute (default path) or any
folder you want::
{
"all": {
"routes": {
"/local": {
"remote": "127.0.0.1:8000"
},
"/google": {
"remote": "google.com:80"
},
"/gunicorn": {
"remote": "gunicorn.org:80",
"rewrite_response": true
},
}
}
}
then launch hroute::
$ hroute -s /var/spool/hroute -w 3
and go on `http://127.0.0.1:5000/gunicorn <http://127.0.0.1:5000/gunicorn>`_. You should see the gunicorn.org website.
More features soon.
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
hroute-0.1.0.tar.gz
(7.5 kB
view details)
File details
Details for the file hroute-0.1.0.tar.gz
.
File metadata
- Download URL: hroute-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de08462c91766034fe2abe2b1ee6cf40f3afd7e631cd6d7f46f2ebb4bf7b77a6 |
|
MD5 | fb2a3d0354f98dac2bc219fcf0fdfd66 |
|
BLAKE2b-256 | 16257ab344eda4a640f3dca7dd03ac6e7d180ebfecd6dbdbc82ecc4991101d91 |