Skip to main content

senseid

PyPI - Version PyPI - Python Version

Python SDK for SenseID smart sensor tags. Parse sensor data from RAIN RFID, BLE, and NFC tags, and control supported reader devices through a unified interface.

Features

  • Multi-technology parsing: Decode SenseID sensor data from RAIN (UHF RFID), BLE beacons, and NFC tags
  • Unified reader interface: Control different RFID/NFC readers through a single API
  • Auto-discovery: Scan for supported readers via serial port, mDNS, and PC/SC
  • YAML-driven definitions: Tag types and sensor calibration defined in YAML files
  • Sensor data extraction: Temperature, humidity, and other magnitudes with automatic calibration

Supported Readers

Reader Driver Interface
Impinj R700 IMPINJ_IOT REST API (IoT Device Interface)
Impinj Speedway R420/R220/R120 OCTANE / SPEEDWAY Octane SDK / LLRP
NordicID Sampoo / Stix NURAPI / NURAPY NUR API
Phychips RED4S REDRCP RedRCP (serial)
ACS ACR1552 ACR1552 PC/SC (NFC)
Kliskatek BLE Reader KLSBLELCR BLE

Installation

pip install senseid

Quick Start

Parse a RAIN RFID tag

from senseid.parsers.rain import SenseidRainTag

tag = SenseidRainTag('000000F1D301010000012301')
print(tag.name)          # Tag model name
print(tag.sn)            # Serial number
for d in tag.data:
    print(f"{d.magnitude}: {d.value} {d.unit_short}")

Scan for readers and run inventory

from senseid.parsers import SenseidTag
from senseid.readers import SupportedSenseidReader, create_SenseidReader
from senseid.readers.scanner import SenseidReaderScanner

scanner = SenseidReaderScanner(autostart=True)
connection_info = scanner.wait_for_reader_of_type(SupportedSenseidReader.IMPINJ_IOT, timeout_s=10)
scanner.stop()

if connection_info is None:
    print('No reader found')
    exit()

reader = create_SenseidReader(connection_info)
reader.connect(connection_info.connection_string)

def on_tag(tag: SenseidTag):
    print(f"{tag.name} | SN: {tag.sn} | {tag.data}")

reader.start_inventory_async(notification_callback=on_tag)
input("Press Enter to stop...")
reader.stop_inventory_async()
reader.disconnect()

API Reference

Parsers

SenseidRainTag(epc: str | bytearray)

Parses a RAIN RFID EPC into a SenseidTag with decoded sensor data. Accepts hex string or bytearray.

SenseidBleTag(beacon: str | bytearray)

Parses a BLE advertisement payload into a SenseidTag.

parse_nfc_ndef(ndef_data: bytearray, uid: str) -> (SenseidTag, type_id)

Parses NFC NDEF data into a SenseidTag.

SenseidTag

Field Type Description
technology SenseidTechnologies RAIN, BLE, or NFC
id str Tag identifier (EPC hex, BLE MAC, NFC UID)
name str Tag model name
description str Tag description
sn int Serial number
fw_version int Firmware version
data list[SenseidData] Parsed sensor measurements
timestamp datetime Read timestamp

SenseidData

Field Type Description
magnitude str Measurement name (e.g. "Temperature")
magnitude_short str Short name (e.g. "Temp")
unit_long str Unit name (e.g. "Celsius")
unit_short str Unit symbol (e.g. "C")
value float Calibrated value

Readers

SenseidReaderScanner

Method Description
start() Start scanning for readers (serial, mDNS, PC/SC)
stop() Stop scanning
get_readers() Get list of discovered readers
wait_for_reader_of_type(type, timeout_s) Block until a reader of the given type is found

SenseidReader

Method Description
connect(connection_string) Connect to reader
disconnect() Disconnect
get_details() Get model, region, firmware, antenna count, power limits
get_tx_power() / set_tx_power(dbm) Get/set TX power in dBm
get_antenna_config() / set_antenna_config(list[bool]) Get/set active antennas
start_inventory_async(callback) Start inventory with tag notification callback
stop_inventory_async() Stop inventory

License

senseid is distributed under the terms of the MIT license.

Metadata

Release files for senseid 1.7.3

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

Source distribution (sdist)

Source distribution for senseid 1.7.3
File Size Uploaded Provenance Actions
senseid-1.7.3.tar.gz 46.5 kB Without provenance Details for senseid-1.7.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for senseid 1.7.3
File Interpreter ABI Platform Actions
senseid-1.7.3-py3-none-any.whl Python 3 none any Details for senseid-1.7.3-py3-none-any.whl

Total release size: 104.9 kB

Release files / senseid-1.7.3.tar.gz

Download URL senseid-1.7.3.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
98675b0f60df7aeba19331509cdbaf509082c80cee5051e989c1e0d70b35b6dc
BLAKE2b-256 checksum
How to use checksums
90c04f3e87a65ad0801125d5880c595ba7263ce903f2800df9a3b5f15116bc82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release files / senseid-1.7.3-py3-none-any.whl

Download URL senseid-1.7.3-py3-none-any.whl
Size 58.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3feddfe197e9c0e74f198ef5e612cbebc897afa85167668609cd8f05c6dbace
BLAKE2b-256 checksum
How to use checksums
99ef3ad23ab38f28e2ee733f005d2c8587dac97d6ff25f7bd269f549a46b1fcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Security for senseid 1.7.3

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.

Release history Release notifications | RSS feed

This release

1.7.3 This release

2 release files No provenance

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