Skip to main content

JoyIT_RC522

A python library to read/write RFID tags via the MFRC522 RFID module.

This code was edited for the use with Raspberry Pi 5 by Joy-IT. Therefore the 'RPi.GPIO' library was exchanged with 'gpiozero'.The source code was published in relation to a blog post and you can find out more about how to hook up your MFRC reader to a Raspberry Pi there.

Prerequirements:

SPI has to be enabled, otherwise a error message will be shown ("FileNotFoundError: [Errno 2] No such file or directory").

To enable SPI you can do the following:

1. sudo raspi-config
2. Interface Options -> SPI -> Enable

Installation

This library is for the use with virtual environments for the Raspberry Pi 5 and older models.

mkdir your_project
cd your_project
python -m venv --system-site-packages env
source env/bin/activate

pip3 install spidev
pip install JoyIT-RC522

Example

In this library are two example codes. One is for reading from a tag and the other is for writing on a tag. You can execute them like the following.

git clone https://github.com/joy-it/MFRC522-python
python3 MFRC522-python/examples/write.py
python3 MFRC522-python/examples/read.py

Metadata

Release files for JoyIT-RC522 1.0.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 JoyIT-RC522 1.0.2
File Size Uploaded Provenance Actions
joyit_rc522-1.0.2.tar.gz 9.9 kB Without provenance Details for joyit_rc522-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for JoyIT-RC522 1.0.2
File Interpreter ABI Platform Actions
joyit_rc522-1.0.2-py3-none-any.whl Python 3 none any Details for joyit_rc522-1.0.2-py3-none-any.whl

Total release size: 19.4 kB

Release files / joyit_rc522-1.0.2.tar.gz

Download URL joyit_rc522-1.0.2.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
21904ded7434d435aeacfa7ab0394df1e53cecaddc95bd3904cfe4cf9a3665c7
BLAKE2b-256 checksum
How to use checksums
3e017fb2289ce6219cc9db49ff2364e71d48623c930cde9382e7dab8618bf61f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / joyit_rc522-1.0.2-py3-none-any.whl

Download URL joyit_rc522-1.0.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c94d636305c3117873b17fc92c49b47c5e19be5196579baead2523ebacad5647
BLAKE2b-256 checksum
How to use checksums
7a4005c6e792a2e863e9c120a639531f4ae04e9b1dabe41c510b4ef581e86553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for JoyIT-RC522 1.0.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