Skip to main content

AIMinO Napari frontend application with command execution and agent client

Project description

AIMinO Frontend Package

A Napari frontend application for AIMinO, providing command execution and agent client functionality for bioimage analysis.

Package Structure

This package uses a standard src-layout structure:

aimino_frontend/
├── src/
│   └── aimino_frontend/  # Python package source
│       ├── __init__.py
│       ├── aimino_core/  # Core command models, handlers, and executor
│       │   ├── handlers/ # Various command handlers
│       │   └── ...
│       └── napari_app/   # Napari application entry points and agent client
│           ├── main.py  # Main launch function
│           └── client_agent.py  # Agent client
├── pyproject.toml        # Package configuration
└── README.md

Installation

Install from PyPI

pip install aimino

Development Installation

Install in development mode from the aimino_frontend directory:

pip install -e .

Production Installation

pip install .

Build Distribution Packages

pip install build
python -m build

This will generate a dist/ directory containing .whl and .tar.gz files.

Usage

After installation, you can use the package in the following ways:

As a Command Line Tool

aimino-napari

As a Python Module

from aimino_frontend.napari_app import launch
launch()

Import Core Functionality

from aimino_frontend.aimino_core import execute_command, CommandExecutionError
from aimino_frontend.napari_app.client_agent import AgentClient

Dependencies

Main dependencies include:

  • napari: Napari visualization framework
  • pydantic>=2: Data validation
  • httpx: HTTP client
  • google-genai: Google GenAI SDK
  • qtpy: Qt Python bindings
  • numpy: Numerical computing

See pyproject.toml for the complete dependency list.

Development

Install development dependencies:

pip install -e ".[dev]"

Run tests:

pytest

Napari Plugin

This package includes a Napari plugin that can be accessed through the Napari plugin menu. The plugin provides an interactive chatbox interface for AI-powered image analysis commands.

License

MIT License

Authors

AIMinO Team: Yingxiao (TK) Shi, Kida Huang, Yinuo Cheng, Yuan Tian

Project Links

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.2.tar.gz (48.1 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.2-py3-none-any.whl (65.8 kB view details)

Uploaded Python 3

File details

Details for the file aimino-0.1.2.tar.gz.

File metadata

  • Download URL: aimino-0.1.2.tar.gz
  • Upload date:
  • Size: 48.1 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.2.tar.gz
Algorithm Hash digest
SHA256 f659c8edf3066ce5ba975650a8d8248de5463db2328cd4a1216725ad77e2da98
MD5 41505054c19a1227f5d8d95c63763463
BLAKE2b-256 b3b9634b6a46519fa2cf387f6f437bd6c5db8cf5a6375641c1886b3be85c464f

See more details on using hashes here.

File details

Details for the file aimino-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aimino-0.1.2-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

Hashes for aimino-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfabb487290a2fd1a9d324bf46d1749017ab48e99f4d1c283062ff65ad5e359c
MD5 9410b612c0e114228a6f2a1d680e2b6c
BLAKE2b-256 68b80828bfae17f78e36ba0690f58c76bfc86f403829095db8ebd6ebd1c3be2b

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