{"library":"pymeasure","title":"PyMeasure","description":"PyMeasure is a scientific measurement library for Python that provides instrument communication, experiment management, and live-plotting. As of version 0.15.0 (January 2025), it supports Python >=3.8 and has moved to pyproject.toml. The library is actively maintained with frequent releases featuring new instrument drivers and improvements.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pymeasure","pip install pymeasure[all]"],"cli":null},"imports":["from pymeasure.instruments import Instrument","from pymeasure.display import ManagedWindow","from pymeasure.experiment import Procedure"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pymeasure\nfrom pymeasure.instruments.keithley import Keithley2400\nfrom pymeasure.experiment import Procedure, Results\nfrom pymeasure.display import ManagedWindow\n\n# Check version\nprint(pymeasure.__version__)\n\n# Example: create a Keithley 2400 instrument (simulated if no hardware)\ntry:\n    keithley = Keithley2400(\"GPIB0::24::INSTR\")\n    print(keithley.id)\nexcept Exception as e:\n    print(f\"Could not connect: {e}\")\n\n# Define a simple procedure\nclass MyProcedure(Procedure):\n    def execute(self):\n        import time\n        for i in range(5):\n            self.emit('data', {'i': i})\n            time.sleep(0.1)\n\n# Create and run procedure\nresults = Results(MyProcedure(), 'test.csv')\nprint('Procedure created. See framework documentation for full GUI usage.')","lang":"python","description":"Quickstart: import PyMeasure, create an instrument, define a procedure, and run it.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}