{"library":"pytango","title":"PyTango","description":"PyTango provides Python bindings for the cppTango library, part of the Tango Distributed Control System (DCS). Current version is 10.1.4, with main releases following cppTango major versions. It enables Python device servers and clients for Tango controls.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install pytango"],"cli":null},"imports":["from tango import DeviceProxy","from tango import Database","from tango.server import DeviceClass","from tango.server import command"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import tango\nimport os\n\nproxy = tango.DeviceProxy(\"sys/tg_test/1\")\n# Read a scalar attribute\nprint(\"Attribute value:\", proxy.read_attribute(\"double_scalar\").value)\n\n# Write an attribute\nproxy.write_attribute(\"double_scalar\", 3.14)\n\n# Execute a command\nresult = proxy.command_inout(\"DevString\", \"hello\")\nprint(\"Command result:\", result)\n","lang":"python","description":"Connect to a Tango device, read/write attributes, and execute commands. Assumes a running Tango database and test device.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}