Skip to main content

Python Wiegand reader on Raspberry PI

Using GPIO you can read the key presses and card codes from a keypad with the Wiegand protocol.

Downloads

Requirements

  • Raspberry PI OS
  • WiringPI

Wiring

Wiring

Install

pip install pywiegand

Usage

>>> from  pywiegand import WiegandReader
>>> wr = WiegandReader(6, 5)
# reading card
>>> wr.read()
'560019750914'

# reading keys
>>> wr.read()
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '#']

Building

Do the following steps on the target device to build the package.

  1. Install WiringPI https://github.com/wiringPi/WiringPi/
  2. Install Python3 and poetry https://python-poetry.org/
  3. Clone the repository
  4. Run poetry build
  5. Install the package with pip install dist/pywiegand-<version>.tar.gz

Metadata

Release files for pywiegand 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywiegand 0.5.2
File Size Uploaded Provenance Actions
pywiegand-0.5.2.tar.gz 5.8 kB Without provenance Details for pywiegand-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywiegand 0.5.2
File Interpreter ABI Platform Actions
pywiegand-0.5.2-cp311-cp311-manylinux_2_36_armv7l.whl CPython 3.11 CPython 3.11 Linux glibc 2.36+ ARMv7l Details for pywiegand-0.5.2-cp311-cp311-manylinux_2_36_armv7l.whl

Total release size: 33.3 kB

Release files / pywiegand-0.5.2.tar.gz

Download URL pywiegand-0.5.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d4bea997738ff84de95afa08722665c630aed8b54000c469cb0c22f0038a3ddd
BLAKE2b-256 checksum
How to use checksums
cf90d4821a00f1642b6580d95d633a10db541db1225619310b9cf3da6efbe923
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Linux/6.6.31+rpt-rpi-v7

Release files / pywiegand-0.5.2-cp311-cp311-manylinux_2_36_armv7l.whl

Download URL pywiegand-0.5.2-cp311-cp311-manylinux_2_36_armv7l.whl
Size 27.5 kB
Tags CPython 3.11 Linux glibc 2.36+ ARMv7l
SHA-256 checksum
How to use checksums
81ea54c6615fdfad3ea79fbeca420cf28f4cda445688a16910b3564ee9724bee
BLAKE2b-256 checksum
How to use checksums
074a2a550cecd10c91cc302de650e4b492455aabdb480c86a3786b3cd076b58a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Linux/6.6.31+rpt-rpi-v7

Security for pywiegand 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page