Deploy proxy servers to cloud providers with ease
Project description
Simple Proxy
Most proxy services limit your concurrency to ~80 connections, and either charge you per-ip or per-traffic, both of which are wildly expensive for short-lived, bandwidth intensive jobs.
Simple proxy allows you to pay at-cost for datacenter proxies on your own cloud account.
Pricing Example
1TB download, 1 hour, 1000 IPs
Pay-per-ip pricing: $750 (source)
Pay-per-traffic pricing: $460 (source)
Simple Proxy: $15 ($0.015/hr x 1000, 3TB of bandwidth included for 1 hour)
The advantage here is that you wanted to fan out massively for a short period of time and suck down a ton of data. Off-the-shelf proxy solutions simply don't accomodate this.
Usage
$ python3 -m cwhite-simple-proxy --count 3 --region us-east-1 --provider aws_fargate --username default --password MY_PASSWORD
After you're done,
$ python3 -m cwhite-simple-proxy cleanup --provider aws_fargate --region us-east-1
Testing
There is a short test script to ensure your proxy is both working and sending requests from a different ip than your own. You can run this test with:
$ pytest
Note that you must first set the value of your remote server in .test.env (see the template provided in this repository).
Notes
Vultr VKE
I use the nodetype vc2-1c-2gb, however there are a few node types cheaper than that, such as vc2-1c-1gb, or the ipv6 limited vc2-1c-0.5gb-v6. The problem is that these two node types are not supported in VKE (to my knowledge). Supporting them would require writing a provider that provisions the machines with the simpleproxy docker container (or just run it bare metal). This is doable, but requires extra effort. Feel free to open a PR for this and add cost savings of $0.008/hr/server (which works out to ~$8/hr if you are running 1000 machines)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cwhite_simple_proxy-0.2.0.tar.gz.
File metadata
- Download URL: cwhite_simple_proxy-0.2.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
415a7e2ca389ef76e803750c5ee202eef9dae8450efa3d1d793746af2ac2ae50
|
|
| MD5 |
7cf328386324339a2af56e66e3c77bea
|
|
| BLAKE2b-256 |
596b82597f4b9d850cb687e2144ed61aa94216dc31e2805df11efbc04035b8fb
|
File details
Details for the file cwhite_simple_proxy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cwhite_simple_proxy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dca986ecc26d41088d49461cc5c1068248cc4b148f5cd0dccb2e07396439b88e
|
|
| MD5 |
c7145e8052a15164aef7e5689ec753ba
|
|
| BLAKE2b-256 |
a45b83b8602e1b53c5fc017305b3bc1513ec992b30fa7d7661d665d3b614a8bd
|