Metadata-Version: 2.4
Name: aimino
Version: 0.1.0
Summary: AIMinO Napari frontend application with command execution and agent client
Author: AIMinO Team: Yingxiao (TK) Shi, Kida Huang, Yinuo Cheng, Yuan Tian
License: MIT License
        
        Copyright (c) 2024 AIMinO Team
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
        
Project-URL: Homepage, https://github.com/KidaGSD/AC215_AIMinO
Project-URL: Documentation, https://github.com/KidaGSD/AC215_AIMinO#readme
Project-URL: Repository, https://github.com/KidaGSD/AC215_AIMinO
Project-URL: Issues, https://github.com/KidaGSD/AC215_AIMinO/issues
Keywords: napari,bioinformatics,image-analysis,ai,agent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pydantic>=2
Requires-Dist: typing_extensions
Requires-Dist: napari
Requires-Dist: numpy
Requires-Dist: qtpy
Requires-Dist: httpx
Requires-Dist: google-genai
Requires-Dist: pyyaml
Requires-Dist: anndata
Requires-Dist: tifffile
Requires-Dist: scipy
Requires-Dist: scikit-image
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Dynamic: license-file

# 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` 目录下运行：

```bash
pip install -e .
```

### 生产模式安装

```bash
pip install .
```

### 构建分发包

```bash
pip install build
python -m build
```

这将生成 `dist/` 目录，包含 `.whl` 和 `.tar.gz` 文件。

## 使用

安装后，可以通过以下方式使用：

### 作为命令行工具

```bash
aimino-napari
```

### 作为 Python 模块

```python
from aimino_frontend.napari_app import launch
launch()
```

### 导入核心功能

```python
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 SDK
- `qtpy`: Qt Python 绑定
- `numpy`: 数值计算

完整依赖列表请查看 `pyproject.toml`。

## 开发

安装开发依赖：

```bash
pip install -e ".[dev]"
```

运行测试：

```bash
pytest
```

