Skip to main content

pywiegandpi

Read Wiegand data from Raspberry Pi GPIO pins with a simple callback structure and automatic decoding.

Getting Started

Install pigpio if it's not already installed:

sudo apt install pigpio

Enable the pigpio daemon:

sudo systemctl enable pigpiod

Install the required python packages by running the following command:

pip3 install -r requirements.txt

Use it like so:

from pywiegandpi import WiegandDecoder

data_0_pin = 6
data_1_pin = 5


def callback(value):
    print("Got Wiegand data: {}".format(value))


wiegand_reader = WiegandDecoder(data_0_pin, data_1_pin, callback)

while True:
    # do something else
    pass

Acknowledgements

This library is based on the original example from joan2937.

Metadata

Release files for pywiegandpi 1.0.1

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

Source distribution (sdist)

Source distribution for pywiegandpi 1.0.1
File Size Uploaded Provenance
pywiegandpi-1.0.1.tar.gz 3.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pywiegandpi 1.0.1
File Interpreter ABI Platform
pywiegandpi-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / pywiegandpi-1.0.1.tar.gz

Download URL pywiegandpi-1.0.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
605a1870794ad6abf888c4723dbe767c2c1d0fe534b1b31579fc0cdf3e801f46
BLAKE2b-256 checksum
How to use checksums
8d9b7783664e6e7c077b438632be9d22eda0e7ab0e6ac6e7793a0152c0ab9101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / pywiegandpi-1.0.1-py3-none-any.whl

Download URL pywiegandpi-1.0.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14588686f258fbe6ac07388454011be3ee8fb4c78ab322769feadd3c5d2b0880
BLAKE2b-256 checksum
How to use checksums
99ae89b6d93fdfbd9f9b0cd1d88842aea2713fb927a49e81835556a20dfe099b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for pywiegandpi 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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