Skip to main content

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


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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_clash-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file auto_clash-0.1.0.tar.gz.

File metadata

  • Download URL: auto_clash-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for auto_clash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8aaf6b6394405005af4011d0cdecd3a22cb795c39d41a463736e10f50a4bf0e1
MD5 b6fc011ffe16e516fe2234d76536f63f
BLAKE2b-256 e8d533d884e0045321316429c2896c416254ab0f983bd7757ac37f4f3ec2e5bf

See more details on using hashes here.

File details

Details for the file auto_clash-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: auto_clash-0.1.0-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

Hashes for auto_clash-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a13b8a958e4f7d68c4dcc6327a08f4b0192c2dff1c03f2dba0dce846aa6e81a
MD5 e70a05a0caa955b85e79aa103b935c55
BLAKE2b-256 7dd85ef280ab4090f2d175174df2e7d0922c3933fb8ba1693cefdc65054677c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page