Nekro Agent 安装、更新与备份的统一管理工具
Project description
Nekro Agent Toolkit
Nekro Agent Toolkit 是一个用于快速部署 Nekro Agent 及其相关服务的专业安装工具。它简化了基于 Docker 的 QQ 机器人服务部署流程,提供完整的安装、更新、备份和恢复解决方案。
✨ 核心特性
- 统一管理:单一脚本处理所有操作,智能环境检测
- 多语言支持:中英文界面自动切换
- 默认数据目录:简化命令操作,自动填充预设目录
- 智能备份:跨平台Docker卷备份,动态发现,精确过滤
- 版本显示:源码运行显示Git SHA,包安装显示版本号
🚀 安装与使用
安装
# pip 安装(推荐)
pip install nekro-agent-toolkit
# 源码运行
git clone https://github.com/your-repo/nekro-agent-toolkit.git
cd nekro-agent-toolkit
默认数据目录管理
# 设置默认目录
nekro-agent-toolkit -sd ./na_data
# 查看当前设置(输入 clear 可清除)
nekro-agent-toolkit -sd
常用命令
# 安装(可自动使用默认目录)
nekro-agent-toolkit -i [PATH]
# 更新/升级(可自动使用默认目录)
nekro-agent-toolkit -u [PATH] # 部分更新
nekro-agent-toolkit -ua [PATH] # 完整升级
# 备份与恢复(可自动使用默认目录)
nekro-agent-toolkit -b [DATA_DIR] BACKUP_DIR
nekro-agent-toolkit -r BACKUP_FILE [DATA_DIR]
nekro-agent-toolkit -ri BACKUP_FILE [INSTALL_DIR]
# 选项
--with-napcat # 部署 NapCat 服务
--dry-run # 预演模式
-y # 自动确认
📝 附加信息
系统要求:Python 3.6+、Docker、Docker Compose
可选软件:zstd(快速压缩)、ufw(防火墙)
贡献指南:参考 doc/REGULATE.md
许可证:参考 Nekro Agent 项目 和 LICENSE
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
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 nekro_agent_toolkit-1.4.19.tar.gz.
File metadata
- Download URL: nekro_agent_toolkit-1.4.19.tar.gz
- Upload date:
- Size: 42.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
697f0c2d44adcd3c4641029f15058c605fef55cbda0b6ce4f0a218b9249477a8
|
|
| MD5 |
06bd47ffa25d1fd6b7b5d39506ee5980
|
|
| BLAKE2b-256 |
af23f98feccde78e8df218e2a31956b6cce007b4b0fc059321083e14adc8f010
|
Provenance
The following attestation bundles were made for nekro_agent_toolkit-1.4.19.tar.gz:
Publisher:
pypi-release.yml on greenhandzdl/nekro-agent-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nekro_agent_toolkit-1.4.19.tar.gz -
Subject digest:
697f0c2d44adcd3c4641029f15058c605fef55cbda0b6ce4f0a218b9249477a8 - Sigstore transparency entry: 584977201
- Sigstore integration time:
-
Permalink:
greenhandzdl/nekro-agent-toolkit@4e07521e483427b29e9898dea04a6104eda50d7b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/greenhandzdl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@4e07521e483427b29e9898dea04a6104eda50d7b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file nekro_agent_toolkit-1.4.19-py3-none-any.whl.
File metadata
- Download URL: nekro_agent_toolkit-1.4.19-py3-none-any.whl
- Upload date:
- Size: 51.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29434823fe86e9e6983e8f373774553cafab8c726165cea3ebc27723ea5329f5
|
|
| MD5 |
c2c6079b54776e5223fc60ef9f2098da
|
|
| BLAKE2b-256 |
5946aff9fc3e5c4a7bd7e8c0bb729c735f1f9aeba75cda0343c1af4845bb1b3d
|
Provenance
The following attestation bundles were made for nekro_agent_toolkit-1.4.19-py3-none-any.whl:
Publisher:
pypi-release.yml on greenhandzdl/nekro-agent-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nekro_agent_toolkit-1.4.19-py3-none-any.whl -
Subject digest:
29434823fe86e9e6983e8f373774553cafab8c726165cea3ebc27723ea5329f5 - Sigstore transparency entry: 584977202
- Sigstore integration time:
-
Permalink:
greenhandzdl/nekro-agent-toolkit@4e07521e483427b29e9898dea04a6104eda50d7b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/greenhandzdl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-release.yml@4e07521e483427b29e9898dea04a6104eda50d7b -
Trigger Event:
workflow_dispatch
-
Statement type: