Skip to main content

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

概述

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

安装

使用 pip 安装 CustomizeProxy :

pip install CustomizeProxy

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

使用示例

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

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 文件。

Metadata

Release files for CustomizeProxy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CustomizeProxy 0.0.1
File Size Uploaded
customizeproxy-0.0.1.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for CustomizeProxy 0.0.1
File Interpreter ABI Platform
CustomizeProxy-0.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 10.6 kB

Release files / customizeproxy-0.0.1.tar.gz

Download URL customizeproxy-0.0.1.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0be5d65d67874a0ab97abb9d58dacd58557f0b7b6104edd8e4430952d7f8b70c
BLAKE2b-256 checksum
How to use checksums
ebffc75f19ae10c4bd5bf0fed993357ce43b413eba84d1ea951d74aa3f66d7b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / CustomizeProxy-0.0.1-py2.py3-none-any.whl

Download URL CustomizeProxy-0.0.1-py2.py3-none-any.whl
Size 5.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
19dfff830ca29ebaedd3a277fd7680549426ea347623a55b8c22f24931461ff5
BLAKE2b-256 checksum
How to use checksums
a4f3b3702398ffb1f2aa6f0866852365252c5da1d629f14aa9cd7d7d15078c81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page