A Python wrapper for the Thinkify Reader Protocol.
Project description
# The Thinkify Python Library
This library is a Python wrapper for [Thinkify's](http://www.thinkifyit.com) Thinkify Reader Protocol. It allows developers to issue commands to their RFID readers as well as retreive data from them.
## Installation
To install the Thinkify python library using [pip](https://pypi.python.org/pypi/pip):
```
$ sudo pip install thinkify
```
or alternatively via easy_install:
```
$ sudo easy_install thinkify
```
or from source:
```
$ sudo python setup.py install
```
## Usage
```python
>>> from thinkify.reader import ThinkifyReader
>>> reader = ThinkifyReader('/dev/tty.usbmodem1411')
>>> # Get the firmware version on your reader
>>> reader.get_version()
VERSION=2.2.3
>>> # Get a list of nearby tags
>>> tag_list = reader.get_tags()
STARTINVENTORY
TAG=3000E2001021490
TAG=3000E2001021491
STOPINVENTORY=0x0002 0x0031
# Iterate over the tag_list and inspect properties of each `Tag` object
>>> [tag.epc_id for tag in tag_list]
3000E2001021490
3000E2001021491
```
## Notes
This library covers about ~20% of the total functionality provided by the [Thinkify Reader Protocol](http://bit.ly/1dKFJ5x)(TRP) - it basically covers what I currently need. If one feels inclined to add extended functionality, please fork!
Another small side note: Instead of using TRP's `T(x)` command which loops indefinitely looking for tag presence, my current workflow is to handle the looping logic in Python. This is because:
* It's cumbersome to constantly read data from the I/O buffer using pyserial.
* It's difficult to manage the timing of the scan loop on the device itself.
Anyway, it works for my use case -- if someone can think of a cleaner way to handle this, please fork.
## Author
This library is maintained by Sean Coonce and can be found here: https://github.com/cooncesean/thinkify/
This library is a Python wrapper for [Thinkify's](http://www.thinkifyit.com) Thinkify Reader Protocol. It allows developers to issue commands to their RFID readers as well as retreive data from them.
## Installation
To install the Thinkify python library using [pip](https://pypi.python.org/pypi/pip):
```
$ sudo pip install thinkify
```
or alternatively via easy_install:
```
$ sudo easy_install thinkify
```
or from source:
```
$ sudo python setup.py install
```
## Usage
```python
>>> from thinkify.reader import ThinkifyReader
>>> reader = ThinkifyReader('/dev/tty.usbmodem1411')
>>> # Get the firmware version on your reader
>>> reader.get_version()
VERSION=2.2.3
>>> # Get a list of nearby tags
>>> tag_list = reader.get_tags()
STARTINVENTORY
TAG=3000E2001021490
TAG=3000E2001021491
STOPINVENTORY=0x0002 0x0031
# Iterate over the tag_list and inspect properties of each `Tag` object
>>> [tag.epc_id for tag in tag_list]
3000E2001021490
3000E2001021491
```
## Notes
This library covers about ~20% of the total functionality provided by the [Thinkify Reader Protocol](http://bit.ly/1dKFJ5x)(TRP) - it basically covers what I currently need. If one feels inclined to add extended functionality, please fork!
Another small side note: Instead of using TRP's `T(x)` command which loops indefinitely looking for tag presence, my current workflow is to handle the looping logic in Python. This is because:
* It's cumbersome to constantly read data from the I/O buffer using pyserial.
* It's difficult to manage the timing of the scan loop on the device itself.
Anyway, it works for my use case -- if someone can think of a cleaner way to handle this, please fork.
## Author
This library is maintained by Sean Coonce and can be found here: https://github.com/cooncesean/thinkify/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thinkify-0.1.0.tar.gz
(3.6 kB
view details)
File details
Details for the file thinkify-0.1.0.tar.gz
.
File metadata
- Download URL: thinkify-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3b5762dff954ff0db34dbfb32dfa9f394d1f0d1f2969624406e6a90530a5bdd |
|
MD5 | 5f76831c7e2ab82f8e12aa8e5fe92861 |
|
BLAKE2b-256 | 7fea45b46150626c70b8d228a693b8ce79333326615614bf7775237874440566 |