Skip to main content

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.

Metadata

Release files for hroute 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hroute 0.2.0
File Size Uploaded Provenance Actions
hroute-0.2.0.tar.gz 7.9 kB Without provenance Details for hroute-0.2.0.tar.gz

Release files / hroute-0.2.0.tar.gz

Download URL hroute-0.2.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
82fb8bcffb8916ad08711b22177870c0b485ff7470fdb3869a1eb162ad056ef5
BLAKE2b-256 checksum
How to use checksums
6e520ebeeffa6610b202b02eeacb6b52ba66c199050ce54734ec7567dbe06854
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hroute 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page