Skip to main content

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

Release files for auto-clash 0.1.1

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

Source distribution (sdist)

Source distribution for auto-clash 0.1.1
File Size Uploaded
auto_clash-0.1.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auto-clash 0.1.1
File Interpreter ABI Platform
auto_clash-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / auto_clash-0.1.1.tar.gz

Download URL auto_clash-0.1.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a75903a1e11c89901ba8067565c94487a940c51fbe037ebdfcb7cfadc7640ad9
BLAKE2b-256 checksum
How to use checksums
0c63217777e8c8366d12d322d5584c30f1a4e17f15c8249fe6d2d5a25739834d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release files / auto_clash-0.1.1-py3-none-any.whl

Download URL auto_clash-0.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05ed7b7b1e9749081ec400994956c3365e8b8155dbb520d03b82c4ea90188212
BLAKE2b-256 checksum
How to use checksums
a140b3bfef1d45ade50116f2fcc5cdd5ee052af75ece6e27bea9c57eac239879
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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