Skip to main content

mfrc522

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

This 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.

Installation

Until the package is on PyPi, clone this repository and run python setup.py install in the top level directory.

Example Code

The following code will read a tag from the MFRC522

from time import sleep
import sys
from mfrc522 import SimpleMFRC522
reader = SimpleMFRC522()

try:
    while True:
        print("Hold a tag near the reader")
        id, text = reader.read()
        print("ID: %s\nText: %s" % (id,text))
        sleep(5)
except KeyboardInterrupt:
    GPIO.cleanup()
    raise

Release files for mfrc522 0.0.6

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

Source distribution (sdist)

Source distribution for mfrc522 0.0.6
File Size Uploaded
mfrc522-0.0.6.tar.gz 5.7 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for mfrc522 0.0.6
File Interpreter ABI Platform
mfrc522-0.0.6-py3-none-any.whl Python 3 none any Details
mfrc522-0.0.6-py2-none-any.whl Python 2 none any Details

Total release size: 42.9 kB

Release files / mfrc522-0.0.6.tar.gz

Download URL mfrc522-0.0.6.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
742dc8156fd9ca369b509be052ce50f520e18ed4ccb724bc3c3ac4d7cb11ac4e
BLAKE2b-256 checksum
How to use checksums
184eea49e1a60003959d146baf0d026888b49bb12ebd9c073cf138817031cf34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

Release files / mfrc522-0.0.6-py3-none-any.whl

Download URL mfrc522-0.0.6-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86c57d180af96cb430c10f9e55ff9c6424ee82d19e285faadb9efc19427b5eb8
BLAKE2b-256 checksum
How to use checksums
00e73f3f0a3ca16043d3c353b001acb99a126f999f424dd64353c5777ff424dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

Release files / mfrc522-0.0.6-py2-none-any.whl

Download URL mfrc522-0.0.6-py2-none-any.whl
Size 18.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
ef198652c51a6e9956eaa658d64b4614f42e27580c1fd95e1ed9450cb5fb53ea
BLAKE2b-256 checksum
How to use checksums
9d6e259cde6382d2154396c8e6a7d29a73b271acf496c68620f459cb0828c877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3

Release history Release notifications | RSS feed

0.0.7

3 release files

This release

0.0.6 This release

3 release files

0.0.5

3 release files

0.0.4

3 release files

0.0.3

3 release files

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