title: Is it possible to get USB device by USB port using PyUSB
body: <p>I have a lot identical devices with STM32 VCP. Windows 8.1 creates serial COM port for device. If I connect ONE device to any PC USB port, windows will bind to it the same COM port. After the connection of the second device to other USB port, it will create the next COM port with different serial COM number. If I unplug these devices and connect in different order, COM ports will be switched between devices. It's a problem, because I need the same order COM ports order (physically) each time. 
  Using USBlyzer software I can see what some kind of USB port number is different for each physical USB port:</p>
  
  <p><img src="https://i.stack.imgur.com/3cVH3.png" alt="enter image description here">  </p>
  
  <p>So I would like to access (get the current device) by these devices by port number. Or list all devices and get this port number from device object?</p>
  
  <p>In libusb documentation found it has such a method:</p>
  
  <p>uint8_t     libusb_get_port_number (libusb_device *dev)<br>
  Get the number of the port that a device is connected to.</p>
  
  <p>link: <a href="http://libusb.sourceforge.net/api-1.0/group__dev.html" rel="nofollow noreferrer">http://libusb.sourceforge.net/api-1.0/group__dev.html</a></p>
  
  <p>Maybe PyUSB has it too...</p>