Metadata-Version: 2.4
Name: alshain
Version: 0.1.0
Summary: Interface library for Alshain Oy devices
Author-email: Markus Grönholm <markus@alshain.fi>
License-Expression: MIT
Project-URL: Homepage, https://github.com/Alshain-Oy/pyalshain
Project-URL: Issues, https://github.com/Alshain-Oy/pyalshain/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Alshain
Python library for Alshain Oy devices

## Quick start

```python

# Pica photometer readout
import alshain
import serial
import sys

# Serial port as first command line parameter
com = serial.Serial( sys.argv[1], alshain.BAUDRATE, timeout = 0.25 )

dev = alshain.Pica( com, address = 1 )

dev.write( alshain.Pica.Parameters.PULSE_ENABLE, 1 )
print( dev.read( alshain.pica.Parameters.RESULT ) )

```

```python

# Strix SMU
import alshain
import serial
import sys

# Serial port as first command line parameter
com = serial.Serial( sys.argv[1], alshain.BAUDRATE, timeout = 0.25 )

smu = alshain.Strix( com, address = 1 )

voltage, current = smu.measure()

```
