Comm Port support in Python ?

Roger Binns rogerb at rogerbinns.com
Tue Feb 17 22:12:19 EST 2004


> > Does Python have comm port support built in or does someone have a tool
> > for sending and receiving data in & out of a PC com port?
>
> It has - as extra module called pyserial, you can get it from sf. It
> supports *NIX, Windows and via special classes even JAVA/Jython.
>
> If it supports mac I have no idea, but I guess OS X _could_ work, as its
> *NIX-flavoured...

Yes, pySerial works on Mac.  My BitPim project - http://bitpim.sf.net
uses it on Windows, Linux and Mac.  And if you end up discovering that
you also need to support USB devices, I have a treat for you:

  http://cvs.sourceforge.net/viewcvs.py/bitpim/bitpim/native/usb/

Roger





More information about the Python-list mailing list