Commit Graph

374 Commits

Author SHA1 Message Date
Abhinav Singh 25ac3fc78f
Merge branch 'master' into develop 2020-12-18 20:26:35 +05:30
pyup.io bot 72eea06f2d
Update codecov from 2.1.10 to 2.1.11 (#469) 2020-12-18 20:16:01 +05:30
pyup.io bot ed52a0783e
Update pytest from 6.2.0 to 6.2.1 (#467) 2020-12-16 12:06:29 +05:30
pyup.io bot 28fe4e7242
Update wheel from 0.36.1 to 0.36.2 (#466) 2020-12-14 15:36:58 +05:30
pyup.io bot cd5b6ffb11
Update pytest from 6.1.2 to 6.2.0 (#465) 2020-12-13 13:12:29 +05:30
pyup.io bot e3068f6d0c
Update wheel from 0.36.0 to 0.36.1 (#463) 2020-12-05 13:29:22 +05:30
pyup.io bot d593576bc8
Update wheel from 0.35.1 to 0.36.0 (#462) 2020-12-01 19:28:39 +05:30
Abhinav Singh 4520ae31a6
Refactor base server interfaces into core modules (#461)
* Ensure pending buffers are flushed before shutting down in base_server.py

Handle unsupported scheme cases within connect_tunnel.py

* Move base implementations within core module

* Update ssl_echo_server
2020-11-24 21:37:11 +05:30
Abhinav Singh da23ae03bc
npm update (#460) 2020-11-15 21:48:28 +05:30
pyup.io bot 4ba9e5836d
Update pytest from 6.1.1 to 6.1.2 (#457) 2020-10-29 16:59:42 +05:30
Abhinav Singh f04845cd64
Refactor (#456) 2020-10-15 19:05:37 +05:30
Abhinav Singh 0c0f2221be
Create SECURITY.md (#455) 2020-10-15 10:54:26 +05:30
Abhinav Singh 12b9184e81
Create codeql-analysis.yml (#454) 2020-10-15 10:30:04 +05:30
Abhinav Singh 137ce457bb
Separate basic auth plugin outside of core server (#453)
* Separate basic auth plugin outside of core

* Put basic auth plugin at top
2020-10-14 20:00:29 +05:30
Abhinav Singh 0744cd8e7f
Go flagless to allow custom user defined flags. (#452)
* Go flagless to allow custom user defined flags. Fixes #301

* Add --cache-dir flag for cache plugin (when used with on-disk store)

* Enable discovery of flags from external plugins, example those that reside outside of proxy.py package and loaded on demand.  This also allows external flags to surface in --help section

* Define --filtered-client-ips flag for FilterByClientIpPlugin
2020-10-14 10:51:56 +05:30
Abhinav Singh a48319e32d
Relax proxy auth requirement to allow mixed case for the auth type e.g. "basic", "Basic", "BaSiC" are all allowed (#451) 2020-10-13 20:56:23 +05:30
Abhinav Singh 969990464c
Fix path to devtools websocket endpoint, broken after refactoring (#450) 2020-10-11 10:26:36 +05:30
Abhinav Singh 4804c534f8
Update mypy (#449) 2020-10-10 16:23:29 +05:30
pyup.io bot b5ff5c924f
Update codecov from 2.1.9 to 2.1.10 (#447) 2020-10-09 21:37:13 +05:30
pyup.io bot 66762beb6f
Update tox from 3.20.0 to 3.20.1 (#446) 2020-10-09 13:55:46 +05:30
pyup.io bot 02dcb1dfff
Update rope from 0.17.0 to 0.18.0 (#445) 2020-10-07 22:00:01 +05:30
Abhinav Singh 1038bb841d
More examples (#444)
* Refactor into BaseServerHandler and BaseEchoServerHandler classes

* Add connect tunnel example
2020-10-06 22:27:19 +05:30
pyup.io bot 29e2a35091
Update pytest from 6.1.0 to 6.1.1 (#440) 2020-10-04 07:12:09 +05:30
Abhinav Singh 8cc349be48
Allow plugins to add custom command line flags (#438)
* Allow plugins to add custom command line flags.  Addresses #301

* Reduce dependency over Flags class.  This will be deprecated so that adhoc flags can be added without any additional manual configuration

* Fix: Argument 1 to "mock_default_args" of "TestMain" has incompatible type "Namespace"; expected "Mock"

* Reduce Flags class to just the initializer.

* Store list of action dest in FlagParser
2020-10-03 16:25:43 +05:30
pyup.io bot 2c9b06b11b
Update flake8 from 3.8.3 to 3.8.4 (#439) 2020-10-03 09:25:47 +05:30
Abhinav Singh f63747f9a6 Merge branch 'develop' of github.com:abhinavsingh/proxy.py into develop 2020-10-02 12:38:39 +05:30
pyup.io bot 715b13a10e
Update tox from 3.19.0 to 3.20.0 (#430)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-10-02 12:21:16 +05:30
pyup.io bot 3bd66f8392
Update coverage from 5.2.1 to 5.3 (#433)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-10-02 12:20:57 +05:30
pyup.io bot 7f7201f517
Update pytest from 6.0.1 to 6.1.0 (#436) 2020-10-02 11:52:54 +05:30
pyup.io bot f644105a1b
Update paramiko from 2.7.1 to 2.7.2 (#429) 2020-09-02 11:53:05 +05:30
pyup.io bot 98a2e5f8f5
Update pylint from 2.5.3 to 2.6.0 (#426)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-08-25 11:56:57 +05:30
pyup.io bot 6f21b6bfc3
Update codecov from 2.1.8 to 2.1.9 (#427)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-08-25 11:56:33 +05:30
pyup.io bot 9459971ffc
Update typing-extensions from 3.7.4.2 to 3.7.4.3 (#428) 2020-08-25 11:56:10 +05:30
pyup.io bot 220ad4c879
Update wheel from 0.35.0 to 0.35.1 (#424) 2020-08-15 09:06:31 +05:30
pyup.io bot de13d39d6d
Update pytest-cov from 2.10.0 to 2.10.1 (#423) 2020-08-14 23:28:25 +05:30
Abhinav Singh 01af6db755 Merge branch 'develop' of github.com:abhinavsingh/proxy.py into develop 2020-08-14 22:00:13 +05:30
pasccom b21ad9e4aa
Documentation for plugin loading in embedded mode (#422) 2020-08-14 17:20:19 +05:30
pasccom 505d316002
Allow to use types when embeding Proxy (#420)
* Remove test for 'HttpWebServerRouteHandler'

This does not exist (as fas as I can see) and it bother the linter (Mypy),
when I tell it `klass` is a `type` instance.

* Pass a list plugin class objects or bytes to proxy when used in embeded mode.

No automated tests for the feature yet.

* Tests for Flags.load_plugins method.

* Ensure plugins are loaded only once.

Also changed module name for plugins passed by type.

Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-08-14 14:28:00 +05:30
Abhinav Singh e5f0deb751
Merge branch 'develop' into develop_flags 2020-08-14 14:08:50 +05:30
pyup.io bot 7cd0bd5803
Update wheel from 0.34.2 to 0.35.0 (#421) 2020-08-14 14:08:34 +05:30
Pascal COMBES e3a1b7f963 Ensure plugins are loaded only once.
Also changed module name for plugins passed by type.
2020-08-11 22:14:51 +02:00
Pascal COMBES 46ec410610 Tests for Flags.load_plugins method. 2020-08-11 22:11:50 +02:00
Pascal COMBES 1b8d9a8e67 Pass a list plugin class objects or bytes to proxy when used in embeded mode.
No automated tests for the feature yet.
2020-08-11 16:28:32 +02:00
Pascal COMBES 929800200e Remove test for 'HttpWebServerRouteHandler'
This does not exist (as fas as I can see) and it bother the linter (Mypy),
when I tell it `klass` is a `type` instance.
2020-08-11 16:12:28 +02:00
Abhinav Singh 9b4263777b
npm upgrade (#418) 2020-08-10 20:57:39 +05:30
pyup.io bot 63917db7a1
Update pytest from 5.4.3 to 6.0.1 (#410)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-08-09 23:05:26 +05:30
pyup.io bot 1462ca4734
Update autopep8 from 1.5.3 to 1.5.4 (#412)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-08-09 22:53:03 +05:30
pyup.io bot cc36d4cd33
Update tox from 3.18.1 to 3.19.0 (#416)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-08-09 21:51:30 +05:30
Abhinav Singh fe2b9a0c82
Fix docker build by using correct pip flags (#417) 2020-08-09 21:36:11 +05:30
pyup.io bot 4482838c70
Update tox from 3.18.0 to 3.18.1 (#408) 2020-07-28 16:55:04 +05:30