Metadata-Version: 2.4
Name: spektralwerk_scpi_client
Version: 0.2.1
Summary: Spektralwerk SCPI communication library
License-Expression: MIT
License-File: LICENSE
Keywords: SCPI,Spektralwerk
Classifier: Programming Language :: Python
Requires-Python: >=3.8
Requires-Dist: pyvisa-py>=0.8.0
Requires-Dist: pyvisa>=1.15.0
Description-Content-Type: text/markdown

# spektralwerk_scpi_client

[![style and lint](https://github.com/silicann/spektralwerk-scpi-client/actions/workflows/style.yml/badge.svg)](https://github.com/silicann/spektralwerk-scpi-client/actions/workflows/style.yml)
[![package published](https://github.com/silicann/spektralwerk-scpi-client/actions/workflows/pypi-publish.yml/badge.svg?event=release)](https://github.com/silicann/spektralwerk-scpi-client/actions/workflows/pypi-publish.yml)

`spektralwerk_scpi_client` is a [Python](https://python.org/) library for communicating with [Spektralwerk](https://www.silicann.com/spektrometer/) devices via their [SCPI interface](https://en.wikipedia.org/wiki/Standard_Commands_for_Programmable_Instruments).

The library supports all available configuration settings as well as the retrieval of spectral data.

## Supported Devices

- Spektralwerk Core
  - set/get exposure time
  - set/get average number
  - get pixel count and wavelengths array of the spectrometer
  - get single raw spectrum

## Requirements

- Python3
- [hatch](https://hatch.pypa.io/) for development (e.g. `pipx install hatch`)

## Example Usage

An example can be found in the [`examples`](./examples/) directory.

```shell
export SPW_HOST="<hostname or IP>"
export SPW_PORT="<port number>"
hatch run examples:spw_core_demo
```

## License

`spektralwerk_scpi_client` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
