code: def show_hids(target_vid = 0, target_pid = 0, output = None):
      
      # first be kind with local encodings
      if not output:
          # beware your script should manage encodings
          output = sys.stdout
      # then the big cheese...
      from . import tools
      all_hids = None
      if target_vid:
          if target_pid:
              # both vendor and product Id provided
              device_filter = HidDeviceFilter(vendor_id = target_vid,
                      product_id = target_pid)
          else:
              # only vendor id
              device_filter = HidDeviceFilter(vendor_id = target_vid)
  
          all_hids = device_filter.get_devices()
      else:
          all_hids = find_all_hid_devices()
      if all_hids:
          print("Found HID class devices!, writting details...")
          for dev in all_hids:
              device_name = str(dev)
              output.write(device_name)
              output.write('\n\n  Path:      %s\n' % dev.device_path)
              output.write('\n  Instance:  %s\n' % dev.instance_id)
              output.write('\n  Port (ID): %s\n' % dev.get_parent_instance_id())
              output.write('\n  Port (str):%s\n' % str(dev.get_parent_device()))
              #
              try:
                  dev.open()
                  tools.write_documentation(dev, output)
              finally:
                  dev.close()
          print("done!")
      else:
          print("There's not any non system HID class device available")
docs: Check all HID devices conected to PC hosts.