Note
This module is in development (since years ;-)
This module encapsulates the access for the parallel port. It provides backends for Python running on Windows and Linux. Other platforms are possible too but not yet integrated.
This module is still under development. But it may be useful for developers.
Copyright (C) 2001-2003 Chris Liechti <cliechti(at)gmx.net>
Here is the project page on SourceForge and here is the SVN repository.
Extract files from the archive, open a shell/console in that directory and let Distutils do the rest: python setup.py install
The files get installed in the “Lib/site-packages” directory in newer Python versions.
The windows version needs a compiled extension and the giveio.sys driver for Windows NT/2k/XP. The extension module can be compiled with Distutils with either MSVC or GCC/mingw32.
It is released under a free software license, see LICENSE.txt for more details.
>>> import parallel
>>> p = parallel.Parallel() # open LPT1
>>> p.setData(0x55)
Please look in the SVN Repository. There is an example directory where you can find a simple terminal and more. http://pyserial.svn.sourceforge.net/viewvc/pyserial/trunk/pyparallel/examples/
The giveio driver must be installed as the module needs direct access to the hardware. This also means that USB parallel port adapters won’t be supported.