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.1.0.tar.gz
(2.0 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.1.0.tar.gz.
File metadata
- Download URL: set_proxy-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.1 CPython/3.12.8 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2a2d1e88c937bed12d85ce5547b72b894377a40013c1fe498f8b0d5434e16db
|
|
| MD5 |
1cee7116f4966e03e6fc99c5ab0541e3
|
|
| BLAKE2b-256 |
a46188182a45107721e5caff8bc87cb923045328b4aca336288cc4a26d9f3c42
|
File details
Details for the file set_proxy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: set_proxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.22.1 CPython/3.12.8 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cf73e7c69bbcb4c4099e88fda09d677ff2279f4a837985abe623c03dfc36237
|
|
| MD5 |
bab14c6e54bfae0f9237d44783c14d77
|
|
| BLAKE2b-256 |
b2fbab5f2f3724d17fad6692720f1c75598ad53e30da0edc8891bf659adb2fb4
|