   HOW TO Communicate with Device in Python?
  Can I communicate with Device in Python?Just like WINAPI,CreateFile or DeviceIO   
  You will have to write(unless someone already did it) a C python extension to wrap the calls.   ;  Thank you for your help.I know what to do now.   ;  If you're using C++, there's Boost.Python.   ;  It depends entirely what the device is. There is probably a higher level API for doing so that you should be using instead of communicating with the device directly.You might be able to open the device special file (depending on your OS) directly with Python. If not, you'l have to write a C interface to do it for you. This could be a python extension library, or just an external program, depending on what it is you want to do.Mark   ;  What I want is using Python to communicate with USB Device On Windows.e.g. Using CreateFile to Open USB Device and using DeviceIO to communicate with the Device   ;Win32 Extensions for PythonI used it to write a Python script that used the MSWord COM component as a host for a lot of functionality. Most of what you're looking for is in there; it's even been used to write some DirectX code, though that can be a painful experience.   