Skip to main content

Inspects incoming HTTP requests adds some HTTP headers and proxies upstream. Has ability to add extra cookies for HTTP responses being sent back to the client.

travis coveralls

Installation

$ pip install device-proxy

Running

Run with twistd:

$ twistd -n devproxy --config config.yaml

Configuration

This is what the processing chain looks like:

       +------------------+
       |                  |
       |           Header & Cookie set
       v                  |
(1) HAProxy -> (2) *n* DeviceProxies
       |
      (3)
       | (if Cookie or Header set)
       +--------------------------------> (4) *n* Backend Apps
  1. Haproxy receives incoming traffic from Nginx

  2. Request is passed to n number of Device Proxies running. HTTP headers are inserted (possibly from cached WURFL or OpenDDR lookups). Device Proxy has the option of inserting Cookies into the HTTP response which can cache the Device Lookup (for subsequent requests HAProxy (1) could use these cookie values to skip DeviceProxy completely for the lifetime of the Cookie.) DeviceProxy reverse proxies back to HAProxy with HTTP headers inserted.

  3. HAProxy inspects the HTTP headers & cookies received and selects appropriate backend application for the request. HAProxy can have a default fallback backend. If the Cookie is already set then the DeviceProxies are skipped.

  4. The Backend application renders the request with a template set suitable for the given HTTP request.

Metadata

Release files for device-proxy 0.4.3

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

Source distribution (sdist)

Source distribution for device-proxy 0.4.3
File Size Uploaded
device-proxy-0.4.3.tar.gz 17.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for device-proxy 0.4.3
File Interpreter ABI Platform
device_proxy-0.4.3-py2.7.egg Legacy Egg format - - Details

Total release size: 75.2 kB

Release files / device-proxy-0.4.3.tar.gz

Download URL device-proxy-0.4.3.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7411abac48b04c8e5e3935e66d36a5517cd4d163945344c812fa5886c386c7e6
BLAKE2b-256 checksum
How to use checksums
af87fce067e6e625403c5ab5923782599e0a0c87dad9f1ae62d2c53aa7e21de4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / device_proxy-0.4.3-py2.7.egg

Download URL device_proxy-0.4.3-py2.7.egg
Size 57.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
577bace99924894dda37e907a03fe15003fcbbbc7ada878809837b74ef3fe1b8
BLAKE2b-256 checksum
How to use checksums
1d2213dd9d346c04c270d935cb2318c32cb33cda66d9e852ceb473cffa9efa24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4

2 release files

0.3

1 release file

0.2

1 release file

0.1j

1 release file

0.1i

1 release file

0.1h

1 release file

0.1g

1 release file

0.1f

1 release file

0.1e

1 release file

0.1d

1 release file

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