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.1.tar.gz (3.7 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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for auto_clash-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a75903a1e11c89901ba8067565c94487a940c51fbe037ebdfcb7cfadc7640ad9
MD5 ac0611eeebd7f643c1bca9860a160ad3
BLAKE2b-256 0c63217777e8c8366d12d322d5584c30f1a4e17f15c8249fe6d2d5a25739834d

See more details on using hashes here.

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

Hashes for auto_clash-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05ed7b7b1e9749081ec400994956c3365e8b8155dbb520d03b82c4ea90188212
MD5 993711a278edc5a93ac3965aa2c36bb5
BLAKE2b-256 a140b3bfef1d45ade50116f2fcc5cdd5ee052af75ece6e27bea9c57eac239879

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