AIMinO Napari frontend application with command execution and agent client
Project description
AIMinO Frontend Package
这是 AIMinO 项目的 Napari 前端包,包含核心命令执行系统和 Napari 应用界面。
包结构
采用标准的 src-layout 结构:
aimino_frontend/
├── src/
│ └── aimino_frontend/ # Python 包源码
│ ├── __init__.py
│ ├── aimino_core/ # 核心命令模型、处理器和执行器
│ │ ├── handlers/ # 各种命令处理器
│ │ └── ...
│ └── napari_app/ # Napari 应用入口和客户端代理
│ ├── main.py # 主启动函数
│ └── client_agent.py # 代理客户端
├── pyproject.toml # 包配置文件
└── README.md
安装
开发模式安装
在 aimino_frontend 目录下运行:
pip install -e .
生产模式安装
pip install .
构建分发包
pip install build
python -m build
这将生成 dist/ 目录,包含 .whl 和 .tar.gz 文件。
使用
安装后,可以通过以下方式使用:
作为命令行工具
aimino-napari
作为 Python 模块
from aimino_frontend.napari_app import launch
launch()
导入核心功能
from aimino_frontend.aimino_core import execute_command, CommandExecutionError
from aimino_frontend.napari_app.client_agent import AgentClient
依赖
主要依赖包括:
napari: Napari 可视化框架pydantic>=2: 数据验证httpx: HTTP 客户端google-genai: Google GenAI SDKqtpy: Qt Python 绑定numpy: 数值计算
完整依赖列表请查看 pyproject.toml。
开发
安装开发依赖:
pip install -e ".[dev]"
运行测试:
pytest
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
aimino-0.1.0.tar.gz
(36.6 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
aimino-0.1.0-py3-none-any.whl
(52.4 kB
view details)
File details
Details for the file aimino-0.1.0.tar.gz.
File metadata
- Download URL: aimino-0.1.0.tar.gz
- Upload date:
- Size: 36.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
892225c11f1cffa8be2305d9d4be0ae6ff47de1da321d31be5ca36ff6971ee65
|
|
| MD5 |
e85a8f304d398b7c2ea7eac60307f6ed
|
|
| BLAKE2b-256 |
443b0cf8f1ee1e8cc42e30e86a3637975e7f8d7f87c36e31e66ff14b05c9b572
|
File details
Details for the file aimino-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aimino-0.1.0-py3-none-any.whl
- Upload date:
- Size: 52.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d52830ecb871d569a4f874cd3b9602357345501dde5c1c0baed47d36c71f0f5c
|
|
| MD5 |
6964ce4d35b8017a65bcab70d9617516
|
|
| BLAKE2b-256 |
002a89eb55b1209ad5df4c766fdb1c950b4f8e758329a95f2ad3e4f64ec90bc1
|