A controller for Clash
Project description
Clash Controller
一个使用 InquirerPy 构建的、功能丰富的 clash 文本用户界面(TUI)控制器。它可以让您方便地通过命令行管理和监控一个或多个 clash 实例。
功能特性
- 交互式 TUI 界面: 友好的菜单驱动操作,无需记忆复杂命令。
- 多端点管理:
- 自动保存连接过的 Clash 端点(地址和密钥)。
- 启动时可从已保存列表中快速选择。
- 支持添加新的端点。
- 支持 HTTP 和 Unix Domain Socket 连接。
- 实时监控面板:
- 概览 (Overview): 实时显示上/下行流量、内存使用和内核版本。
- 连接 (Connections): 实时展示当前的活动连接列表、总连接数和累计流量。
- 强大的设置菜单:
- 模式切换: 循环切换
规则/全局/直连模式,并开关TUN模式。 - 重载与重启: 独立地重载配置文件、GEO 数据库,或重启 Clash 核心。
- 一键升级: 在线升级内核、UI 面板和 GEO 数据库。
- 查看完整配置: 显示当前 Clash 的全部运行配置。
- 模式切换: 循环切换
安装
pip install clash-controller
使用方法
安装后,可以通过以下命令启动程序:
clashctl
程序启动后,会提示您选择一个已保存的 Clash 端点或添加一个新的端点。
开发者安装
如果你想要从源代码运行或者参与开发:
git clone https://github.com/Moha-Master/clash-controller.git
cd clash-controller
# 创建虚拟环境 (推荐)
python -m venv venv
source venv/bin/activate # 在 Windows 上使用 venv\Scripts\activate
# 安装依赖
pip install -r requirements.txt
# 运行程序
python -m clash_controller
要求
- Python 3.8+
- 运行中的 Clash 实例,已开启外部控制 API
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
clash_controller-0.0.1.tar.gz
(13.9 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 clash_controller-0.0.1.tar.gz.
File metadata
- Download URL: clash_controller-0.0.1.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d98d4560be342aa7bfb8708f2c8957dbbe91c4480a18ad5e0d8d53ca960e03f
|
|
| MD5 |
93823f4dd20539dfaa139683c0ed74ea
|
|
| BLAKE2b-256 |
910b78886666001db3498b38f70c37ac6b36685cd760de563f6086a47ec1f6db
|
File details
Details for the file clash_controller-0.0.1-py3-none-any.whl.
File metadata
- Download URL: clash_controller-0.0.1-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c37fd92860ae3e6323e204325844226f143349c32303170ffff1df7d60956bb1
|
|
| MD5 |
4937693446f395446b07746c0bbb81a4
|
|
| BLAKE2b-256 |
d27b69fd6cbc0bbbbcdbf3a46ed64c8e61d2ff830d33eea5a7b6cb8ea17b3e5a
|