Commit Graph

349 Commits

Author SHA1 Message Date
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
pyup.io bot d42a376201
Update coverage from 5.2 to 5.2.1 (#407) 2020-07-24 17:26:48 +05:30
pyup.io bot 35d6920519
Update tox from 3.17.1 to 3.18.0 (#406) 2020-07-23 15:09:37 +05:30
dependabot[bot] a33c9657f9
Bump lodash from 4.17.15 to 4.17.19 in /dashboard (#405)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-16 12:28:55 +05:30
pyup.io bot 3da85a452d
Update tox from 3.17.0 to 3.17.1 (#403)
Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-07-16 11:14:48 +05:30
pyup.io bot 448c2eb36e
Update codecov from 2.1.7 to 2.1.8 (#404) 2020-07-16 11:12:50 +05:30
pyup.io bot 1642677029
Update tox from 3.16.1 to 3.17.0 (#402) 2020-07-15 10:56:39 +05:30
Mike aedf5933f2
Add plugin "FilterByURLRegexPlugin" (#397)
* Initial draft of filter_by_url_regex.py

* Add FilterByURLRegexPlugin

* Fix dictionary key & add logging

* Add proper logging

* Add better logging

* Add logging

* move code to handle_client_request

* development logging

* development

* development

* development

* dev

* dev

* dev

* dev

* dev

* dev

* dev

* dev

* dev

* dev

* dev

* Fix blocked log

* Add to FILTER_LIST, some tidy up

* Update FILTER_LIST

* dev

* remove scheme from url

* Add to FILTER_LIST

* Add to FILTER_LIST

* Update FILTER_LIST

* commenting

* Update FILTER_LIST

* After autopep8

* Fix Anomalous backslash in string (pep8)

* Address code quality checks - flake8 F401 & W605

* Address flake8 errors

* Attempt to fix flake8 errors

* Fix linting issues

* Address flake8 W292

* Attempt to create tests

* Add FilterByURLRegexPlugin

* Rename test

* Work on tests

* Work on tests

* Work on tests

Co-authored-by: Abhinav Singh <mailsforabhinav@gmail.com>
2020-07-13 10:40:34 +05:30
Abhinav Singh 1867d58338
Add cross ref for how to generate SSL certs. (#401) 2020-07-12 21:24:20 +05:30
Abhinav Singh af3bdc23e7
Move codecov.yml to top level directory (#400) 2020-07-12 20:36:34 +05:30
Abhinav Singh 73bcf1d057
Add core pubsub eventing example and add menubar item skeleton (#396)
* Initialize menu bar items with click handler and open a popover for preferences

* Add Core PubSub eventing example

* Remove hardcoded request ids
2020-07-09 21:31:29 +05:30
Abhinav Singh b7c4c5f175
Add SSL echo server & client example (#395)
* Move wrap_socket for SSL server within utils.

Also complete proxy.common.pki gen_csr and sign_csr actions. Used by Makefile sign-https-certificates.

* Add SSL echo server and client example

* Add examples documentation
2020-07-08 16:38:58 +05:30
Abhinav Singh 682114e9e0
Decouple SSL wrap logic into connection classes (#394)
* Move wrap functionality within respective connection classes. Also decouple websocket client handshake method

* Add a TCP echo client example that works with TCP echo server example
2020-07-08 13:11:12 +05:30
Abhinav Singh c884338f42
Core acceptor pool doc, cleanup and standalone example (#393)
* Better document acceptor module and add a TCP Echo Server example

* autopep8 formating

* Rename ThreadlessWork --> Work class

* Make initialize, is_inactive and shutdown as optional interface methods.

Also introduce Readables & Writables custom types.

* Move websocket code into its own module

* Add websocket client example

* Cleanup websocket client
2020-07-07 18:01:49 +05:30
pyup.io bot 9be6c2946a
Update coverage from 5.1 to 5.2 (#390) 2020-07-06 19:12:39 +05:30
Abhinav Singh 1b0ed923d7
Refactor plugin base classes for plugin specific flags (#388)
* Update to latest code signing recommendations

* Move HttpProtocolHandlerPlugin into separate file

* Dont add subject attributes if not provided by upstream. Also handle subprocess.TimeoutExpired raised during certificate generation.  Instead of retries, we simply close the connection on timeout

* Remove plugin specific flag initialization methods for now
2020-07-04 18:17:11 +05:30
Abhinav Singh ea227b1cdf
Document FilterByClientIpPlugin & ModifyChunkResponsePlugin (#387) 2020-07-02 03:30:29 +05:30
pyup.io bot 167afbfe88
Update tox from 3.16.0 to 3.16.1 (#386) 2020-06-30 02:46:32 +05:30
pyup.io bot 0a1b7bf002
Update tox from 3.15.2 to 3.16.0 (#385) 2020-06-28 15:05:49 +05:30
pyup.io bot 19fb8577d6
Update twine from 3.1.1 to 3.2.0 (#384) 2020-06-24 16:02:15 +05:30
pyup.io bot b0d16572ca
Update mypy from 0.781 to 0.782 (#382) 2020-06-23 16:29:57 +05:30
Abhinav Singh 4117c5f0d5
Add FilterByClientIpPlugin example (#381) 2020-06-21 21:57:03 +05:30
pyup.io bot 568da5fb3e
Update mypy from 0.780 to 0.781 (#379) 2020-06-20 19:30:39 +05:30
Abhinav Singh f45614a1a2
Merge branch 'master' into develop 2020-06-17 18:43:38 +05:30
Abhinav Singh bcbae34230
Brew v2.2.0 release (#376) 2020-06-17 18:41:18 +05:30