Python Parallel Port Extension
Project description
Overview
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. The Windows version needs a compiled extension and the giveio.sys driver for Windows NT/2k/XP. It uses ctypes to access functions in a prebuilt DLL.
It is released under a free software license, see LICENSE.txt for more details.
Copyright (C) 2001-2016 Chris Liechti cliechti@gmx.net
Homepage: https://github.com/pyserial/pyparallel
Features
same class based interface on all supported platforms
port numbering starts at zero, no need to know the port name in the user program
port string (device name) can be specified if access through numbering is inappropriate
Requirements
Python 2.2 or newer
“Java Communications” (JavaComm) extension for Java/Jython
Installation
Extract files from the archive, open a shell/console in that directory and let Distutils do the rest:
$ python setup.py install
Short introduction
>>> import parallel
>>> p = parallel.Parallel() # open LPT1 or /dev/parport0
>>> p.setData(0x55)
Examples
Please look in the GIT Repository. There is an example directory where you can find a simple terminal and more. https://github.com/pyserial/pyparallel/tree/master/examples
References
Python: http://www.python.org
Jython: http://www.jython.org
Java@IBM http://www-106.ibm.com/developerworks/java/jdk/ (JavaComm links are on the download page for the respecive platform jdk)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyparallel-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f382422c97a885453b405acadd27c522bff87e9407968dc814955ed68b1cc777 |
|
MD5 | d7d8722c93b798a576de7c49f9fcf369 |
|
BLAKE2b-256 | 0806b8dfcd5509b4c2ee68528a90be91eddfcb1f8c9fab90c0e734841b03fb3c |