CustomizeProxy


NameCustomizeProxy JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/mitmproxy/mitmproxy/
Summary这是一个 mitmproxy 二次封装版本
upload_time2024-07-19 10:25:35
maintainerNone
docs_urlNone
authorCC
requires_python>=3.10
licenseMIT License Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords customizeproxy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==============
CustomizeProxy
==============

CustomizeProxy 是一个基于  mitmproxy 10.3.1 版本的二次封装版本。

概述
----

CustomizeProxy 是一个允许开发者拦截和修改本地计算机所有网络请求库,在windows平台可自动安装证书。


安装
----

使用 pip 安装 CustomizeProxy :

.. code-block:: bash

    pip install CustomizeProxy

请注意,由于本项目是 mitmproxy 的封装版本,可能需要从源代码安装或使用特定的安装步骤。

使用示例
--------

以下是一个简单的使用示例,展示如何使用:

.. code-block:: python

    from CustomizeProxy import exec_listening,addons,Optional,mitmproxy
    class HTTPInterceptor:

            def load(self, loader):
                loader.add_option(
                    name="validate_inbound_headers",
                    typespec=Optional[bool],
                    default=False,
                    help="Validate inbound HTTP headers. (default: False)",
                ) # 不检查请求头格式

            def request(self, flow: mitmproxy.http.HTTPFlow):
                print("拦截:",flow.server_conn.address)
   
    if __name__ == '__main__':
        addons.append(HTTPInterceptor())
        exec_listening()

贡献
----

我们欢迎任何形式的贡献,包括但不限于:

- 报告问题或错误。
- 提供功能请求或改进建议。

许可证
------

本项目采用 MIT 许可证。有关更多信息,请查看 `LICENSE` 文件。

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mitmproxy/mitmproxy/",
    "name": "CustomizeProxy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "CustomizeProxy",
    "author": "CC",
    "author_email": "3204604858@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/eb/ff/c75f19ae10c4bd5bf0fed993357ce43b413eba84d1ea951d74aa3f66d7b5/customizeproxy-0.0.1.tar.gz",
    "platform": "Windows",
    "description": "==============\r\nCustomizeProxy\r\n==============\r\n\r\nCustomizeProxy \u662f\u4e00\u4e2a\u57fa\u4e8e  mitmproxy 10.3.1 \u7248\u672c\u7684\u4e8c\u6b21\u5c01\u88c5\u7248\u672c\u3002\r\n\r\n\u6982\u8ff0\r\n----\r\n\r\nCustomizeProxy \u662f\u4e00\u4e2a\u5141\u8bb8\u5f00\u53d1\u8005\u62e6\u622a\u548c\u4fee\u6539\u672c\u5730\u8ba1\u7b97\u673a\u6240\u6709\u7f51\u7edc\u8bf7\u6c42\u5e93\uff0c\u5728windows\u5e73\u53f0\u53ef\u81ea\u52a8\u5b89\u88c5\u8bc1\u4e66\u3002\r\n\r\n\r\n\u5b89\u88c5\r\n----\r\n\r\n\u4f7f\u7528 pip \u5b89\u88c5 CustomizeProxy \uff1a\r\n\r\n.. code-block:: bash\r\n\r\n    pip install CustomizeProxy\r\n\r\n\u8bf7\u6ce8\u610f\uff0c\u7531\u4e8e\u672c\u9879\u76ee\u662f mitmproxy \u7684\u5c01\u88c5\u7248\u672c\uff0c\u53ef\u80fd\u9700\u8981\u4ece\u6e90\u4ee3\u7801\u5b89\u88c5\u6216\u4f7f\u7528\u7279\u5b9a\u7684\u5b89\u88c5\u6b65\u9aa4\u3002\r\n\r\n\u4f7f\u7528\u793a\u4f8b\r\n--------\r\n\r\n\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f7f\u7528\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528\uff1a\r\n\r\n.. code-block:: python\r\n\r\n    from CustomizeProxy import exec_listening,addons,Optional,mitmproxy\r\n    class HTTPInterceptor:\r\n\r\n            def load(self, loader):\r\n                loader.add_option(\r\n                    name=\"validate_inbound_headers\",\r\n                    typespec=Optional[bool],\r\n                    default=False,\r\n                    help=\"Validate inbound HTTP headers. (default: False)\",\r\n                ) # \u4e0d\u68c0\u67e5\u8bf7\u6c42\u5934\u683c\u5f0f\r\n\r\n            def request(self, flow: mitmproxy.http.HTTPFlow):\r\n                print(\"\u62e6\u622a:\",flow.server_conn.address)\r\n   \r\n    if __name__ == '__main__':\r\n        addons.append(HTTPInterceptor())\r\n        exec_listening()\r\n\r\n\u8d21\u732e\r\n----\r\n\r\n\u6211\u4eec\u6b22\u8fce\u4efb\u4f55\u5f62\u5f0f\u7684\u8d21\u732e\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a\r\n\r\n- \u62a5\u544a\u95ee\u9898\u6216\u9519\u8bef\u3002\r\n- \u63d0\u4f9b\u529f\u80fd\u8bf7\u6c42\u6216\u6539\u8fdb\u5efa\u8bae\u3002\r\n\r\n\u8bb8\u53ef\u8bc1\r\n------\r\n\r\n\u672c\u9879\u76ee\u91c7\u7528 MIT \u8bb8\u53ef\u8bc1\u3002\u6709\u5173\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u67e5\u770b `LICENSE` \u6587\u4ef6\u3002\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) [year] [fullname]  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "\u8fd9\u662f\u4e00\u4e2a mitmproxy \u4e8c\u6b21\u5c01\u88c5\u7248\u672c",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/mitmproxy/mitmproxy/"
    },
    "split_keywords": [
        "customizeproxy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a4f3b3702398ffb1f2aa6f0866852365252c5da1d629f14aa9cd7d7d15078c81",
                "md5": "83368a5039ebadc04044670847397ad8",
                "sha256": "19dfff830ca29ebaedd3a277fd7680549426ea347623a55b8c22f24931461ff5"
            },
            "downloads": -1,
            "filename": "CustomizeProxy-0.0.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "83368a5039ebadc04044670847397ad8",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.10",
            "size": 5807,
            "upload_time": "2024-07-19T10:25:34",
            "upload_time_iso_8601": "2024-07-19T10:25:34.324281Z",
            "url": "https://files.pythonhosted.org/packages/a4/f3/b3702398ffb1f2aa6f0866852365252c5da1d629f14aa9cd7d7d15078c81/CustomizeProxy-0.0.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ebffc75f19ae10c4bd5bf0fed993357ce43b413eba84d1ea951d74aa3f66d7b5",
                "md5": "8b2017f7118a93ba5c33f941c9fd4e35",
                "sha256": "0be5d65d67874a0ab97abb9d58dacd58557f0b7b6104edd8e4430952d7f8b70c"
            },
            "downloads": -1,
            "filename": "customizeproxy-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8b2017f7118a93ba5c33f941c9fd4e35",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 4806,
            "upload_time": "2024-07-19T10:25:35",
            "upload_time_iso_8601": "2024-07-19T10:25:35.976830Z",
            "url": "https://files.pythonhosted.org/packages/eb/ff/c75f19ae10c4bd5bf0fed993357ce43b413eba84d1ea951d74aa3f66d7b5/customizeproxy-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-19 10:25:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mitmproxy",
    "github_project": "mitmproxy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "customizeproxy"
}
        
CC
Elapsed time: 0.30824s