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.1.tar.gz
(48.3 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.1-py3-none-any.whl
(65.8 kB
view details)
File details
Details for the file aimino-0.1.1.tar.gz.
File metadata
- Download URL: aimino-0.1.1.tar.gz
- Upload date:
- Size: 48.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12aaa2b6d6a7de43d303202761bbb732ddb2a3afe71d6bf90d8ad9cad9aa10e7
|
|
| MD5 |
0d96874751a40425817cad01e0d98a1a
|
|
| BLAKE2b-256 |
ab507c484982602d4cda0579f44c8084f11f22ba62b9b6647d1afd142482ca22
|
File details
Details for the file aimino-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aimino-0.1.1-py3-none-any.whl
- Upload date:
- Size: 65.8 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 |
ea9ea2f4aaa4d1959866fafcdf40cedc599443c8738bf3865cf0c8604fc38f89
|
|
| MD5 |
03d695064e3cb42ac05c58a86d7b44e0
|
|
| BLAKE2b-256 |
4d7d1d3a5c301120e9a1b0b42b7546f5a3972926730b817c2fb2bec3e8157b84
|