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
Metadata
Release files for mfrc522 0.0.4
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.4.tar.gz | 5.5 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mfrc522-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
| mfrc522-0.0.4-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 42.6 kB
Release files / mfrc522-0.0.4.tar.gz
| Download URL | mfrc522-0.0.4.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ae3ce29e5bc28683f4503414f858b46de866c92e568f041d39ac93abe29e02f
|
|
BLAKE2b-256 checksum How to use checksums |
6c6fa366c16268350efd2b83dc289565b08cab725fae5113d2e8b6822aa79486
|
| 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.4-py3-none-any.whl
| Download URL | mfrc522-0.0.4-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1583d2a254599d8dc666d43bc67d7d1d8a50ab8f5004b5b26c119858528ac29
|
|
BLAKE2b-256 checksum How to use checksums |
fe0adb2a498521738d2a5333f196c2e041ade1685bbf36328c87ec1401415c21
|
| 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.4-py2-none-any.whl
| Download URL | mfrc522-0.0.4-py2-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
3dda5e4bece75a6c498d3773dac01a2175d279f52add28494052346edbcacab1
|
|
BLAKE2b-256 checksum How to use checksums |
9b1e250f8103c9c2cd9883db3dda27a09c57ccbf58912cfdf123789247b0e1c5
|
| 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
|