Skip to main content

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

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

开发

安装开发依赖:

pip install -e ".[dev]"

运行测试:

pytest

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aimino-0.1.0-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

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

Hashes for aimino-0.1.0.tar.gz
Algorithm Hash digest
SHA256 892225c11f1cffa8be2305d9d4be0ae6ff47de1da321d31be5ca36ff6971ee65
MD5 e85a8f304d398b7c2ea7eac60307f6ed
BLAKE2b-256 443b0cf8f1ee1e8cc42e30e86a3637975e7f8d7f87c36e31e66ff14b05c9b572

See more details on using hashes here.

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

Hashes for aimino-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d52830ecb871d569a4f874cd3b9602357345501dde5c1c0baed47d36c71f0f5c
MD5 6964ce4d35b8017a65bcab70d9617516
BLAKE2b-256 002a89eb55b1209ad5df4c766fdb1c950b4f8e758329a95f2ad3e4f64ec90bc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page