Using the RDM6300 RFID reader from python
The project is primarly geared towards using the RDM6300 with a Raspberry PI and Python 3.
The unit tests are passing with Python 2, so it should work (tm), but I am using python3 for developing the module.
In theory the module should be working with anything that is compatible with the EM4100 wire protocol.
Please note that wiring the RDM6300 to an RPI is not entierly trivial (either it will not work, or you are risking frying your PI), so before tring this out please make sure you had read my blog post on this: https://the.mad-tinkerer.me/rdm-6300-raspberry-pi/
The reader code has almost 100% unit test coverage, so the code should be quite stable.
Please see the API documentation here
Usage (Easy mode)
Assuming that you had wired the RDM6300 correctly you can execute the following to create a working environment:
$ virtualenv -p python3 virtualenv
$ . virtualenv/bin/activate
$ pip install rdm6300
Afterwards you can use this code to start reading with the RFID reader (examples/simple.py):
import rdm6300
reader = rdm6300.Reader('/dev/ttyS0')
print("Please insert an RFID card")
while True:
card = reader.read()
if card:
print(f"[{card.value}] read card {card}")
Usage (Real life scenario)
see examples/complex.py
import rdm6300
class Reader(rdm6300.BaseReader):
def card_inserted(self, card):
print(f"card inserted {card}")
def card_removed(self, card):
print(f"card removed {card}")
def invalid_card(self, card):
print(f"invalid card {card}")
r = Reader('/dev/ttyS0')
r.start()
Credits
The code is a rewrite of the library pyrfid: https://www.pm-codeworks.de/pyrfid.html
Metadata
Release files for rdm6300 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rdm6300-0.1.1.tar.gz | 5.9 kB | Without provenance | Details for rdm6300-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rdm6300-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for rdm6300-0.1.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / rdm6300-0.1.1.tar.gz
| Download URL | rdm6300-0.1.1.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7c27f6d8ad4c6b406cde0c68e68720a7f6e2995c5c3f44e9595f5c470692a95
|
|
BLAKE2b-256 checksum How to use checksums |
8310340847886d6d22fcfd188f2bf15b3b741b9943a23e8ca3446c71450db232
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3
|
Release files / rdm6300-0.1.1-py3-none-any.whl
| Download URL | rdm6300-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afb067da8b8d23a477138ca67d4ff1d198f12d157b64668c9dd3cbd7df54e74e
|
|
BLAKE2b-256 checksum How to use checksums |
2d79ee3f35c44aeb6fff983ee9e0d99e0a84692a93de09059e5b887a87a3bbfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.3
|
Security for rdm6300 0.1.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.