Metadata-Version: 2.4
Name: domino-proxy
Version: 1.2.3
Summary: Deploy independent proxy access over SSH and manage local or remote Domino services
Author: KJaebye
License-Expression: GPL-3.0-only
Project-URL: Homepage, https://github.com/KJaebye/domino
Project-URL: Repository, https://github.com/KJaebye/domino
Project-URL: Issues, https://github.com/KJaebye/domino/issues
Project-URL: Documentation, https://github.com/KJaebye/domino/blob/main/README.md
Project-URL: Changelog, https://github.com/KJaebye/domino/blob/main/CHANGELOG.md
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
License-File: licenses/mihomo-GPL-3.0.txt
Requires-Dist: prompt-toolkit<4,>=3.0.48
Requires-Dist: PyYAML>=6
Provides-Extra: yaml
Requires-Dist: PyYAML>=6; extra == "yaml"
Provides-Extra: dev
Requires-Dist: setuptools>=77; extra == "dev"
Requires-Dist: build>=1; extra == "dev"
Requires-Dist: twine>=5; extra == "dev"
Requires-Dist: packaging>=23; extra == "dev"
Requires-Dist: prompt-toolkit<3.0.53; extra == "dev"
Requires-Dist: tomli>=2; python_version < "3.11" and extra == "dev"
Requires-Dist: Pillow>=9; extra == "dev"
Dynamic: license-file

# Domino

捕获本机代理，一键部署到另一台电脑，让翻墙像 domino 一样简单。

Domino 读取兼容的 Clash/Mihomo 配置，通过 SSH 把节点、规则和必要资源部署为独立服务。目标设备在源电脑关机后仍可使用，也能继续部署下一台。

发行包名是 **domino-proxy**，命令是 **domino**。PyPI 上的 `domino` 属于其他项目。

需要 Python 3.9+。本机服务支持 macOS 与使用 systemd 的 Ubuntu；远端部署需要 SSH、Python、curl，以及普通用户的 sudo 权限。

## 安装

```bash
pip install domino-proxy && domino-install
```

如果不能直接使用 pip 安装，改用 venv：

Ubuntu 先安装环境依赖（macOS 跳过）：

```bash
sudo apt update && sudo apt install -y python3-venv python3-pip curl
```

然后创建并激活 venv，再安装：

```bash
python3 -m venv ~/.venvs/domino
source ~/.venvs/domino/bin/activate
python -m pip install --upgrade domino-proxy
domino --version
```

venv 安装后再运行 `domino-install`，由它下载 Mihomo 并配置本机服务。新开终端需先激活 venv。

## 使用

```bash
domino catch
domino list
domino status
```

捕获成功后自动启动 Domino 并接通系统代理；已有安装保留当前配置和节点选择，切换配置使用 `domino switch '配置名'`。

仅管理远端时，完成上面的 venv 和 pip 安装即可：

```bash
domino user@192.168.1.10
domino user@192.168.1.10 status
domino ui
```

`ui` 提供交互式配置管理、节点选择与检测。`scan` 扫描可导入配置，`test` 并行检测配置的节点连通情况，`traffic` 显示动态流量面板。

## 升级

```bash
source ~/.venvs/domino/bin/activate
python -m pip install --upgrade domino-proxy
```

包升级更新 CLI；已有本机服务时不必再次运行 `domino-install`。

## 卸载

```bash
source ~/.venvs/domino/bin/activate
domino uninstall && python -m pip uninstall domino-proxy
```

`domino uninstall` 会确认清理本机服务、内核、配置库、部署备份及终端接入记录，`python -m pip uninstall` 删除 Python 包。远端使用 `domino USER@IP uninstall`；加 `--dry-run` 可先预览。pip 自身没有卸载钩子，单独卸载 Python 包不会清理运行环境。完成后重新打开终端或重新 SSH 登录。

[项目首页](https://github.com/KJaebye/domino) · [完整使用指南](https://github.com/KJaebye/domino/blob/main/docs/USAGE.md) · [macOS / Ubuntu 支持](https://github.com/KJaebye/domino/blob/main/docs/PLATFORMS.md) · [分发与迁移](https://github.com/KJaebye/domino/blob/main/docs/DISTRIBUTION.md) · [问题反馈](https://github.com/KJaebye/domino/issues)

Domino 使用独立的 Mihomo 可执行文件；公共 Python 包不包含 Mihomo 内核或用户代理配置。安装核心服务时会按架构获取内核。第三方许可与声明见仓库 NOTICE 和随包文档。

## 许可证

Domino 的原创代码与文档采用 [GNU GPLv3，仅第 3 版](https://github.com/KJaebye/domino/blob/main/LICENSE)（`GPL-3.0-only`）。第三方组件保留各自许可证，详见 [NOTICE](https://github.com/KJaebye/domino/blob/main/NOTICE)。
