The following scripts reads the list of device properties and prints the list of property/value pairs.
#!/usr/bin/python from PyTango import * db = Database() name = "hires/exp/mot1" # # get the list of properties # b = db.get_device_property_list( name, '*') # # return a dictionary with properties and values # a = db.get_device_property( name, b) for prop in list( a.keys()): print( prop, ": ", a[ prop])