a network checker and proxy setter
Project description
一个简单的 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。发布新版本的步骤如下:
更新版本号(在 pyproject.toml 中手动修改版本号):
[project] name = "set-proxy" version = "0.1.0" # 修改这里的版本号 # ...提交更改:
git add pyproject.toml git commit -m "bump: 版本更新到 0.1.0"创建标签:
git tag v0.1.0 # 使用对应的版本号推送更改和标签:
git push git push --tags
推送标签后,GitHub Actions 将自动构建并发布包到 PyPI。
许可证
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
set_proxy-0.2.0.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file set_proxy-0.2.0.tar.gz.
File metadata
- Download URL: set_proxy-0.2.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.2 CPython/3.12.8 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffd871922322e0387d68b741e6a39e270244984f45b988ac8b2bd3b556ab39bd
|
|
| MD5 |
ccb48b1e510fed2c0854d310e354d255
|
|
| BLAKE2b-256 |
e26c2451655b1ba4c8d8c71e85b9ae803a90b3906f64738f03b023dee4af304b
|
File details
Details for the file set_proxy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: set_proxy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.2 CPython/3.12.8 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4669321879f5fc112acb4c21db8b110ea0e66a69c2c39361dec0a20b34137b70
|
|
| MD5 |
492ecaa1d903e36a31f453465ddbed8f
|
|
| BLAKE2b-256 |
6a5b17beea871ea42bc24afede555b4e543e1cc493c786403d2889cfe8484063
|