Metadata-Version: 2.5
Name: instro-pymeasure
Version: 0.1.0
Summary: Publish pymeasure instrument traffic through any instro publisher
Project-URL: Homepage, https://github.com/nominal-io/instro
Project-URL: Documentation, https://instro.nominal.io
Project-URL: Repository, https://github.com/nominal-io/instro
Project-URL: Issues, https://github.com/nominal-io/instro/issues
Project-URL: Changelog, https://github.com/nominal-io/instro/blob/main/packages/instro-pymeasure/CHANGELOG.md
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: instro,instrument-control,nominal,pymeasure,scpi,test-and-measurement
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Manufacturing
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: System :: Hardware
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Requires-Python: <3.15,>=3.11
Requires-Dist: instro>=1.23.0
Requires-Dist: pymeasure>=0.14
Description-Content-Type: text/markdown

# instro-pymeasure

Publish [pymeasure](https://pymeasure.readthedocs.io) instrument commands and readings through any [instro](https://github.com/nominal-io/instro) publisher. Your drivers don't change.

This package is pre-1.0: its API may change between minor releases.

Setting a property publishes a command on `<name>.<channel>.cmd`. Reading one publishes a measurement on `<name>.<channel>`.

```bash
pip install "instro[pymeasure]"
```

```python
from pymeasure.instruments.keithley import Keithley2400

from instro.lib import NominalCorePublisher
from instro.pymeasure import attach

keithley = Keithley2400("GPIB::24")
recorder = attach(keithley, "smu", [NominalCorePublisher(dataset_rid="<dataset rid>")])

keithley.source_voltage = 1.0  # publishes smu.source_voltage.cmd
print(keithley.current)        # publishes smu.current

recorder.close()
```

See the [guide](https://instro.nominal.io/library/pymeasure) for `PymeasureInstrument`, channel maps and polling, and the [example notebook](https://github.com/nominal-io/instro/blob/main/examples/notebooks/pymeasure_publishing.md) for a version that runs without hardware.
