python-proxy.py/proxy.py-command.patch
Daniel Garcia b47a246161 - Update to 2.4.3:
* v2.4.2 by @abhinavsingh in #1158
  * pip prod(deps): bump blacksheep from 1.2.2 to 1.2.7 by @dependabot in #1161
  * Bump fregante/setup-git-user from 1.0.1 to 1.1.0 by @dependabot in #1160
  * npm: bump ts-node from 10.7.0 to 10.8.0 in /dashboard by @dependabot in #1159
  * npm: bump ws from 8.5.0 to 8.6.0 in /dashboard by @dependabot in #1165
  * pip prod(deps): bump pytest from 6.2.5 to 7.0.1 by @dependabot in #1164
  * pip prod(deps): bump rope from 0.22.0 to 1.1.1 by @dependabot in #1167
  * pip prod(deps): bump starlette from 0.17.1 to 0.19.1 by @dependabot in #1168
  * pip prod(deps): bump mypy from 0.940 to 0.960 by @dependabot in #1170
  * Bump actions/cache from 3.0.2 to 3.0.4 by @dependabot in #1185
  * Bump actions/setup-python from 3 to 4 by @dependabot in #1186
  * pip prod(deps): bump py-spy from 0.3.11 to 0.3.12 by @dependabot in #1174
  * pip prod(deps): bump mypy from 0.960 to 0.961 by @dependabot in #1187
  * Add support for dynamic reverse proxy routing by @abhinavsingh in #1180
  * [v2.4.3] Support for dynamic reverse proxy routes by @abhinavsingh in #1188
- 2.4.2:
  * Bump actions/setup-python from 2 to 3 by @dependabot in #1110
  * npm: bump chrome-devtools-frontend from 1.0.956881 to 1.0.980332 in /dashboard by @dependabot in #1109
  * pip prod(deps): bump mypy from 0.931 to 0.940 by @dependabot in #1111
  * pip prod(deps): bump furo from 2022.1.2 to 2022.3.4 by @dependabot in #1113
  * Fix Towncrier link by @abhinavsingh in #1119
  * Bump actions/cache from 2.1.7 to 3.0.1 by @dependabot in #1118
  * pip prod(deps): bump paramiko from 2.9.2 to 2.10.3 by @dependabot in #1116
  * npm: bump @types/jquery from 3.5.13 to 3.5.14 in /dashboard by @dependabot in #1115
  * Bump ncipollo/release-action from 1.9.0 to 1.10.0 by @dependabot in #1120
  * Bump actions/upload-artifact from 2 to 3 by @dependabot in #1124
  * npm: bump async from 2.6.3 to 2.6.4 in /dashboard by @dependabot in #1125
  * Fix myst_parser config by @abhinavsingh in #1128
  * [FilterByClientIpPlugin] Implement the whitelist logic by @LetMeR00t in #1127

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proxy.py?expand=0&rev=6
2023-05-05 09:03:58 +00:00

256 lines
6.7 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Index: proxy.py-2.4.3/README.md
===================================================================
--- proxy.py-2.4.3.orig/README.md
+++ proxy.py-2.4.3/README.md
@@ -370,14 +370,14 @@ Updated formulae for `HomeBrew` are main
## From command line when installed using PIP
When `proxy.py` is installed using `pip`,
-an executable named `proxy` is placed under your `$PATH`.
+an executable named `proxy-py` is placed under your `$PATH`.
### Run it
-Simply type `proxy` on command line to start with default configuration.
+Simply type `proxy-py` on command line to start with default configuration.
```console
- proxy
+ proxy-py
...[redacted]... - Loaded plugin proxy.http.proxy.HttpProxyPlugin
...[redacted]... - Started 8 threadless workers
...[redacted]... - Started 8 acceptors
@@ -417,7 +417,7 @@ All the logs above are `INFO` level logs
Lets start `proxy.py` with `DEBUG` level logging:
```console
- proxy --log-level d
+ proxy-py --log-level d
...[redacted]... - Open file descriptor soft limit set to 1024
...[redacted]... - Loaded plugin proxy.http_proxy.HttpProxyPlugin
...[redacted]... - Started 8 workers
@@ -442,7 +442,7 @@ See [flags](#flags) for full list of ava
## From command line using repo source
If you are trying to run `proxy.py` from source code,
-there is no binary file named `proxy` in the source code.
+there is no binary file named `proxy-py` in the source code.
To start `proxy.py` from source code follow these instructions:
@@ -526,7 +526,7 @@ Add support for short links in your favo
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.ShortLinkPlugin
```
@@ -555,7 +555,7 @@ Modifies POST request body before sendin
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.ModifyPostDataPlugin
```
@@ -609,7 +609,7 @@ without need of an actual upstream REST
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.ProposedRestApiPlugin
```
@@ -640,7 +640,7 @@ also running on `8899` port.
Start `proxy.py` and enable inbuilt web server:
```console
- proxy \
+ proxy-py \
--enable-web-server \
--plugins proxy.plugin.RedirectToCustomServerPlugin
```
@@ -674,7 +674,7 @@ By default, plugin drops traffic for `fa
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.FilterByUpstreamHostPlugin
```
@@ -707,7 +707,7 @@ Caches Upstream Server Responses.
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.CacheResponsesPlugin
```
@@ -785,7 +785,7 @@ Modifies upstream server responses.
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.ManInTheMiddlePlugin
```
@@ -810,18 +810,18 @@ Let's start 2 upstream proxies first. T
start `proxy.py` on port `9000` and `9001`
```console
- proxy --port 9000
+ proxy-py --port 9000
```
```console
- proxy --port 9001
+ proxy-py --port 9001
```
Now, start `proxy.py` with `ProxyPoolPlugin` (on default `8899` port),
pointing to our upstream proxies at `9000` and `9001` port.
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.ProxyPoolPlugin \
--proxy-pool localhost:9000 \
--proxy-pool localhost:9001
@@ -846,7 +846,7 @@ plugin blocks traffic from `127.0.0.1` a
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.FilterByClientIpPlugin
```
@@ -871,7 +871,7 @@ This plugin demonstrate how to modify ch
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.ModifyChunkResponsePlugin
```
@@ -903,7 +903,7 @@ does not provide that yet, so we use a d
Now start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.CloudflareDnsResolverPlugin
```
@@ -919,7 +919,7 @@ to your taste. Example, query your cust
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.CustomDnsResolverPlugin
```
@@ -941,7 +941,7 @@ If identified, client IP in the access l
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.ProgramNamePlugin
```
@@ -970,7 +970,7 @@ Demonstrates inbuilt web server routing
Start `proxy.py` as:
```console
- proxy --enable-web-server \
+ proxy-py --enable-web-server \
--plugins proxy.plugin.WebServerPlugin
```
@@ -989,7 +989,7 @@ Extends in-built Web Server to add Rever
Start `proxy.py` as:
```console
- proxy --enable-reverse-proxy \
+ proxy-py --enable-reverse-proxy \
--plugins proxy.plugin.ReverseProxyPlugin
```
@@ -1046,7 +1046,7 @@ make https-certificates
Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--cert-file https-cert.pem \
--key-file https-key.pem
```
@@ -1095,7 +1095,7 @@ Lets also enable `CacheResponsePlugin` s
response from the server. Start `proxy.py` as:
```console
- proxy \
+ proxy-py \
--plugins proxy.plugin.CacheResponsesPlugin \
--ca-key-file ca-key.pem \
--ca-cert-file ca-cert.pem \
@@ -1297,7 +1297,7 @@ Start `proxy.py` as:
```console
# On localhost
- proxy --enable-tunnel \
+ proxy-py --enable-tunnel \
--tunnel-username username \
--tunnel-hostname ip.address.or.domain.name \
--tunnel-port 22 \
@@ -1757,7 +1757,7 @@ Also build the embedded `Chrome DevTools
Now start `proxy.py` with dashboard plugin and by overriding root directory for static server:
```console
- proxy --enable-dashboard --static-server-dir dashboard/public
+ proxy-py --enable-dashboard --static-server-dir dashboard/public
...[redacted]... - Loaded plugin proxy.http.server.HttpWebServerPlugin
...[redacted]... - Loaded plugin proxy.dashboard.dashboard.ProxyDashboard
...[redacted]... - Loaded plugin proxy.dashboard.inspect_traffic.InspectTrafficPlugin
@@ -1794,7 +1794,7 @@ For scenarios where you want direct acce
start `proxy.py` as:
```console
- proxy --enable-devtools --enable-events
+ proxy-py --enable-devtools --enable-events
```
Now point your CDT instance to `ws://localhost:8899/devtools`.
@@ -2278,7 +2278,7 @@ To run standalone benchmark for `proxy.p
# Flags
```console
- proxy -h
+ proxy-py -h
usage: -m [-h] [--tunnel-hostname TUNNEL_HOSTNAME] [--tunnel-port TUNNEL_PORT]
[--tunnel-username TUNNEL_USERNAME]
[--tunnel-ssh-key TUNNEL_SSH_KEY]
Index: proxy.py-2.4.3/setup.cfg
===================================================================
--- proxy.py-2.4.3.orig/setup.cfg
+++ proxy.py-2.4.3/setup.cfg
@@ -109,7 +109,7 @@ install_requires =
[options.entry_points]
console_scripts =
- proxy = proxy:entry_point
+ proxy-py = proxy:entry_point
[options.package_data]
proxy =