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.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mfrc522-0.0.7.tar.gz | 5.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mfrc522-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
| mfrc522-0.0.7-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 42.9 kB
Release files / mfrc522-0.0.7.tar.gz
| Download URL | mfrc522-0.0.7.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74c7020a4fc4870f5d7022542c36143fba771055a2fae2e5929e6a1159d2bf00
|
|
BLAKE2b-256 checksum How to use checksums |
3c34f2e893baa79d82d4faad8abb7c5c0fcd138d367f6f38071f7afe883f65a2
|
| 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.7-py3-none-any.whl
| Download URL | mfrc522-0.0.7-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
874fd0385a7e40190063b60af83d615534b1f764c6b776fed1fcc94551c1e62f
|
|
BLAKE2b-256 checksum How to use checksums |
d5b5d33c0634cece0931c3c4e0978b0db58f248045c3b379ccf2d512b76fe044
|
| 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.7-py2-none-any.whl
| Download URL | mfrc522-0.0.7-py2-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
5f0e06d2ca4550d545478b20edb6661d5da943e75b3d4542ba9eb9eef4e541e7
|
|
BLAKE2b-256 checksum How to use checksums |
fab6824c5782411c4b59eca5599ac3e5662f94c061507743b5da587d1a72f20e
|
| 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
|