Wiegand protocol on Raspberry PI
Project description
Python Wiegand reader on Raspberry PI
Using GPIO you can read the key presses and card codes from a keypad with the Wiegand protocol.
Requirements
- Raspberry PI OS
- WiringPI
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.
- Install WiringPI https://github.com/wiringPi/WiringPi/
- Install Python3 and poetry https://python-poetry.org/
- Clone the repository
- Run
poetry build
- Install the package with
pip install dist/pywiegand-<version>.tar.gz
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
pywiegand-0.5.2.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file pywiegand-0.5.2.tar.gz
.
File metadata
- Download URL: pywiegand-0.5.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.6.31+rpt-rpi-v7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4bea997738ff84de95afa08722665c630aed8b54000c469cb0c22f0038a3ddd |
|
MD5 | 063feae90f7c4ac4121cb4feeb9c2f6b |
|
BLAKE2b-256 | cf90d4821a00f1642b6580d95d633a10db541db1225619310b9cf3da6efbe923 |
File details
Details for the file pywiegand-0.5.2-cp311-cp311-manylinux_2_36_armv7l.whl
.
File metadata
- Download URL: pywiegand-0.5.2-cp311-cp311-manylinux_2_36_armv7l.whl
- Upload date:
- Size: 27.5 kB
- Tags: CPython 3.11, manylinux: glibc 2.36+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Linux/6.6.31+rpt-rpi-v7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ea54c6615fdfad3ea79fbeca420cf28f4cda445688a16910b3564ee9724bee |
|
MD5 | 50daf359019d2b40615e46796b7e8555 |
|
BLAKE2b-256 | 074a2a550cecd10c91cc302de650e4b492455aabdb480c86a3786b3cd076b58a |