https://github.com/pyserial/pyparallel
Python parallel port access library
https://github.com/pyserial/pyparallel
parallel-port python
Last synced: 10 months ago
JSON representation
Python parallel port access library
- Host: GitHub
- URL: https://github.com/pyserial/pyparallel
- Owner: pyserial
- License: other
- Created: 2015-08-02T21:19:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T19:39:14.000Z (over 6 years ago)
- Last Synced: 2024-04-26T08:47:34.842Z (almost 2 years ago)
- Topics: parallel-port, python
- Language: Python
- Size: 696 KB
- Stars: 43
- Watchers: 9
- Forks: 18
- Open Issues: 10
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
============================
pyParallel [in development]
============================
.. image:: https://travis-ci.org/pyserial/pyparallel.svg?branch=master
:target: https://travis-ci.org/pyserial/pyparallel
:alt: Build Status
.. image:: https://img.shields.io/pypi/dw/pyparallel.svg
:target: https://pypi.python.org/pypi/pyparallel/
:alt: PyPI Downloads
.. image:: https://img.shields.io/pypi/v/pyparallel.svg
:target: https://pypi.python.org/pypi/pyparallel/
:alt: Latest PyPI version
.. image:: https://img.shields.io/pypi/l/pyparallel.svg
:target: https://pypi.python.org/pypi/pyparallel/
:alt: License
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.rst 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:
.. code-block:: bash
$ python setup.py install
Short introduction
------------------
.. code-block:: python
>>> 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