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.1.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.1.tar.gz.
File metadata
- Download URL: set_proxy-0.1.1.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 |
72ef5710ac2cd18cfdb3120cea742f1cd75b75803419e95af5bda9966bbaf3a5
|
|
| MD5 |
37a8c57c19baabf04f349df9680232f1
|
|
| BLAKE2b-256 |
3bdcfce0498b1a248f31316f141276f2b02a516f8caf1cadfb66b704e6574acc
|
File details
Details for the file set_proxy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: set_proxy-0.1.1-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 |
2e0c2fcaa3e9dd3417733497ec9ec74fc945e18089501a8c29c8de555b51c0c4
|
|
| MD5 |
07176a14aa9ac3fd7f4a88c91581ba5d
|
|
| BLAKE2b-256 |
639bb7598175459e7c62337b3b9c9b9379eb4f72c9767fa1e1b1a2aa6c8165be
|