Metadata-Version: 2.5
Name: fluxim-spm
Version: 0.12.0
Summary: A python library to control the Suite for Parallel Measurement (SPM 2.2+).
Project-URL: Homepage, https://www.fluxim.com/
Project-URL: Documentation, https://downloads.fluxim.com/docs/fluxim_spm/last/index.html
Project-URL: Repository, https://bitbucket.org/fluximag/fluxim-spm
Author-email: Fluxim AG <hardware@fluxim.com>
License-Expression: MIT
License-File: LICENSE
Keywords: fluxim,measurement,spm
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Requires-Dist: pyzmq
Provides-Extra: docs
Requires-Dist: furo>=2024.8.6; extra == 'docs'
Requires-Dist: myst-parser>=4; extra == 'docs'
Requires-Dist: sphinx-autoapi>=3.3; extra == 'docs'
Requires-Dist: sphinx-copybutton>=0.5; extra == 'docs'
Requires-Dist: sphinx<10,>=8; extra == 'docs'
Provides-Extra: results
Requires-Dist: nptdms; extra == 'results'
Requires-Dist: numpy; extra == 'results'
Description-Content-Type: text/markdown


<h2 align="center">
  <img src="https://bitbucket.org/fluximag/fluxim-spm/raw/8aaef028e2dfbaad6b33ab1cd5e4ddb35636717b/docs/logo.png" width="512"/>
</h2>
<h3 align="center">
  A python library to control the Suite for Parallel Measurement (SPM 2.2+).
</h3>

<p align="center">
  <a href="https://downloads.fluxim.com/docs/fluxim_spm/last/index.html"><b>Documentation</b></a>
</p>

--------------------------------------------------------------------------------

[![PyPI version](https://img.shields.io/pypi/v/fluxim-spm.svg)](https://pypi.org/project/fluxim-spm/)
[![Python versions](https://img.shields.io/pypi/pyversions/fluxim-spm.svg)](https://pypi.org/project/fluxim-spm/)
[![License](https://img.shields.io/pypi/l/fluxim-spm.svg)](https://bitbucket.org/fluximag/fluxim-spm/src/main/LICENSE)
[![Downloads](https://img.shields.io/pypi/dm/fluxim-spm.svg)](https://pypistats.org/packages/fluxim-spm)
[![Development Status](https://img.shields.io/pypi/status/fluxim-spm.svg)](https://pypi.org/project/fluxim-spm/)

# What's New in 1.0

## External API

### Core

```python
from fluxim_spm.external_api import core
```

* Get Litos lite state
* Get SPM's software version
* Stop SPM


### Sample tab - Layout

```python
from fluxim_spm.external_api import layout
```

* Open/load a new layout file (.lllx)
* Get loaded layout's path
* Get loaded layout's tree
* Get loaded layout's total number of DUTs
* Get loaded layout's DUT index per sample
* Set new pixel/dut name
* Set new sample name

### Measurement tab - Recipe Editor

```python
from fluxim_spm.external_api import recipe
```

#### Recipe management
* Add new recipe
* Run recipe
* Save recipe
* Check if recipe is valid

#### Step management
* Add new step
* Append step to sweep
* Get step details/settings
* Get step's dut selection 
* Update step
* Update step's dut selection (add,remove,overwrite)

#### UI management
* Get selected recipe
* Get selected step
* Set selected recipe
* Set selected step

### Measurement Performer

```python
from fluxim_spm.external_api import measurement
```
* Get measurement logs
* Get measurement tree
* Get measurement recipe id
* Get measurement path
* Get graph label

### Hardware

```
from fluxim_spm.external_api import hardware
```

* Get DUTs' floating status
* Set DUTs' floating status

## Subscriber

A subscriber allows you to subscribe to some specific SPM's event and react on them. They are the key feature to
have event driven logic. More details in [Subscriber](https://downloads.fluxim.com/docs/fluxim_spm/last/examples/subscriber.html).

```python
from fluxim_spm.subscriber import Subscriber

if __name__ == "__main__":
    with Subscriber() as sub:
        sub.listen()
```

# Installation

```bash
pip install fluxim-spm
```

**Requirements:** Python 3.10+ and Suite for Parallel Measurement (SPM 2.2+).



## Quick Start

```python
from fluxim_spm.external_api import core

if __name__ == "__main__":
    print(f"SPM version: {core.version()}")

```

## License

This project is licensed under the [MIT License](LICENSE).

