Switch proxy nodes using the clash api
Project description
auto-clash
安装
pip install auto-clash
使用
代码
import time
from auto_clash.clash import Clash
clash = Clash()
print(clash.rule_groups)
print(clash.get_proxies())
clash.change_node("vip1 香港-01 测试")
clash.verify_proxy()
while True:
clash.auto_switch()
time.sleep(10)
命令行
auto-clash
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
auto_clash-0.1.1.tar.gz
(3.7 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 auto_clash-0.1.1.tar.gz.
File metadata
- Download URL: auto_clash-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a75903a1e11c89901ba8067565c94487a940c51fbe037ebdfcb7cfadc7640ad9
|
|
| MD5 |
ac0611eeebd7f643c1bca9860a160ad3
|
|
| BLAKE2b-256 |
0c63217777e8c8366d12d322d5584c30f1a4e17f15c8249fe6d2d5a25739834d
|
File details
Details for the file auto_clash-0.1.1-py3-none-any.whl.
File metadata
- Download URL: auto_clash-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05ed7b7b1e9749081ec400994956c3365e8b8155dbb520d03b82c4ea90188212
|
|
| MD5 |
993711a278edc5a93ac3965aa2c36bb5
|
|
| BLAKE2b-256 |
a140b3bfef1d45ade50116f2fcc5cdd5ee052af75ece6e27bea9c57eac239879
|