Skip to main content

set_proxy

PyPI version PyPI downloads License Python versions CI Status

一个简单的 Python 工具,用于设置和管理系统代理。

功能特点

  • 快速设置系统代理

  • 支持 HTTP 和 HTTPS 代理

  • 跨平台支持(Windows、macOS、Linux)

  • 支持检查实时网络速度

安装

pip install set-proxy

使用方法

from set_proxy import set_proxy

# 设置代理
set_proxy("http://127.0.0.1:7890")

# 清除代理
set_proxy(None)

# 检查 Google 连接状态
from set_proxy import check_google

# 默认检查 https://www.google.com
check_google()

# 或者指定自定义 URL
check_google("https://www.google.com/search")

贡献

欢迎提交 Issue 和 Pull Request!

发布流程

本项目使用 GitHub Actions 自动发布到 PyPI。发布新版本的步骤如下:

  1. 更新版本号(在 pyproject.toml 中手动修改版本号):

    [project]
    name = "set-proxy"
    version = "0.1.0"  # 修改这里的版本号
    # ...
  2. 提交更改:

    git add pyproject.toml
    git commit -m "bump: 版本更新到 0.1.0"
  3. 创建标签:

    git tag v0.1.0  # 使用对应的版本号
  4. 推送更改和标签:

    git push
    git push --tags

推送标签后,GitHub Actions 将自动构建并发布包到 PyPI。

许可证

MIT License

Metadata

Release files for set_proxy 0.2.0

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

Source distribution (sdist)

Source distribution for set_proxy 0.2.0
File Size Uploaded Provenance Actions
set_proxy-0.2.0.tar.gz 2.5 kB Without provenance Details for set_proxy-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for set_proxy 0.2.0
File Interpreter ABI Platform Actions
set_proxy-0.2.0-py3-none-any.whl Python 3 none any Details for set_proxy-0.2.0-py3-none-any.whl

Total release size: 5.8 kB

Release files / set_proxy-0.2.0.tar.gz

Download URL set_proxy-0.2.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ffd871922322e0387d68b741e6a39e270244984f45b988ac8b2bd3b556ab39bd
BLAKE2b-256 checksum
How to use checksums
e26c2451655b1ba4c8d8c71e85b9ae803a90b3906f64738f03b023dee4af304b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.22.2 CPython/3.12.8 Linux/6.8.0-1017-azure

Release files / set_proxy-0.2.0-py3-none-any.whl

Download URL set_proxy-0.2.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4669321879f5fc112acb4c21db8b110ea0e66a69c2c39361dec0a20b34137b70
BLAKE2b-256 checksum
How to use checksums
6a5b17beea871ea42bc24afede555b4e543e1cc493c786403d2889cfe8484063
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.22.2 CPython/3.12.8 Linux/6.8.0-1017-azure

Security for set_proxy 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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