Metadata-Version: 2.4
Name: napari-openflexure
Version: 0.1.1
Summary: napari plugin to control an OpenFlexure microscope
Author-email: Morgan Hough <morgan.hough@gmail.com>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://gitlab.com/morgan.hough/neurofedora
Keywords: napari,openflexure,microscope,microscopy
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: napari>=0.7
Requires-Dist: openflexure-microscope-client>=0.1.8
Requires-Dist: magicgui>=0.7
Requires-Dist: numpy
Dynamic: license-file

# napari-openflexure

A [napari](https://napari.org) plugin to control an
[OpenFlexure microscope](https://openflexure.org) from within the viewer.

It adds an **OpenFlexure control** dock widget (Plugins → OpenFlexure) that can:

- connect to a microscope by host/IP, or auto-discover one on the network
  (zeroconf/mDNS);
- capture a full-resolution image straight into a napari image layer;
- jog the stage in X, Y and Z (focus) by a configurable step.

It is a thin wrapper around
[`openflexure-microscope-client`](https://gitlab.com/openflexure/openflexure-microscope-pyclient),
which speaks the microscope's LabThings / Web-of-Things HTTP API.

## Usage

```python
import napari
viewer = napari.Viewer()
# Plugins -> OpenFlexure -> OpenFlexure control
napari.run()
```

Enter the microscope host (e.g. `microscope.local`) or leave it blank to
auto-discover, click **Connect**, then **Capture image**.
