Metadata-Version: 2.4
Name: aimino
Version: 0.1.2
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[pyqt5]
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

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

```bash
pip install aimino
```

### Development Installation

Install in development mode from the `aimino_frontend` directory:

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

### Production Installation

```bash
pip install .
```

### Build Distribution Packages

```bash
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

```bash
aimino-napari
```

### As a Python Module

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

### Import Core Functionality

```python
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:

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

Run tests:

```bash
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

- Homepage: https://github.com/KidaGSD/AC215_AIMinO
- Repository: https://github.com/KidaGSD/AC215_AIMinO
- Issues: https://github.com/KidaGSD/AC215_AIMinO/issues
