Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyparallel-0.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

pyparallel-0.2-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file pyparallel-0.2.tar.gz.

File metadata

  • Download URL: pyparallel-0.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyparallel-0.2.tar.gz
Algorithm Hash digest
SHA256 449893a15917df3a4231433e175513f3720f3cf492372803202d1a1760f2ce4b
MD5 a6845399ce98b61b522cb77fc7db7ea3
BLAKE2b-256 e680e1806d2860ab6a07e7412d2725a9bf5e3471b8820256ee0132e1fc7e0b9b

See more details on using hashes here.

File details

Details for the file pyparallel-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyparallel-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fac0e570ae5ddc433653993ae921ec3c05cd4122d27c9c6e52f4d7d6c5b3f23f
MD5 d4ac757a4c8433478bb8a8fffd4965dd
BLAKE2b-256 9b81ff5a2edc5e1c47c142bc7e9b07fca93548eeff449dfb59bf1ea54bb39532

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page