Metadata-Version: 2.4
Name: beetech-smartsdk
Version: 1.0.5
Summary: Beetech Universal RFID & IoT SmartSdk Native AOT Engine for Python
Author-email: "Beetech AutoID Corp." <support@advautoid.com>
License: Commercial
Keywords: rfid,smartsdk,native-aot,impinj,zebra,urovo,iot,edge
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# Beetech Universal RFID SmartSdk - Python Package

Cross-Platform Native AOT Python bindings for **Beetech Universal RFID & IoT Edge Gateway**.

## Features

- **Zero-Setup Native Bundling**: Includes precompiled Native AOT binaries for Windows (`x64`), Linux (`x64`), and macOS Universal (`osx-arm64` & `osx-x64`).
- **High-Level RFID Reader API**: Connect to Impinj, Zebra, Urovo, Chainway, Unitech, and Mock readers with native asynchronous event callbacks.
- **GS1 SGTIN-96 & SSCC-18**: Native encoding, decoding, and ZPL label generation.
- **High-Performance EPC Cryptography**: Native ChaCha20 encryption & decryption at sub-millisecond speeds.
- **Industrial Automation & Packaging**: Built-in station packing cycles, multi-tier pallet aggregation, and conveyor stress benchmarking.
- **Antenna Diagnostics & Spatial Direction**: Dynamic RF health telemetry and direction detection (Approaching, Receding, Stationary).

---

## Installation

Install directly from the wheel distribution:

```bash
pip install beetech_smartsdk-1.0.4-py3-none-any.whl
```

---

## Quickstart

```python
import beetech_smartsdk as sdk

# 1. Hardware Fingerprint & Development Bypass
print("Hardware Fingerprint:", sdk.SmartSdk.get_hardware_fingerprint())
sdk.SmartSdk.set_dev_bypass(True)

# 2. ChaCha20 EPC Cryptography (4-hex type prefix)
encrypted = sdk.SmartSdk.encrypt_epc(987654321012345, "2000")
print("Encrypted EPC:", encrypted)
tag_id, tag_type = sdk.SmartSdk.decrypt_epc(encrypted)
print(f"Decrypted: Tag ID={tag_id}, Type={tag_type}")

# 3. GS1 SGTIN-96 & SSCC-18
sgtin = sdk.SmartSdk.get_sgtin("0614141107346", "1001", company_prefix_len=7)
print("SGTIN-96 EPC:", sgtin)

sscc18 = sdk.Gs1ShippingLabel.generate_sscc18("0", "0614141", 12345)
print("SSCC-18 Barcode:", sscc18)

# 4. RFID Reader Connection & Tag Streaming
smart = sdk.SmartSdk()
with smart.create_reader("mock-reader", 1, "127.0.0.1") as reader:
    reader.on_tag_read(lambda evt: print(f"Tag: {evt.epc} | RSSI: {evt.rssi} dBm | Ant: {evt.antenna_port}"))
    if reader.connect():
        reader.start_inventory()
        # Tags stream to callback
        reader.stop_inventory()
        reader.disconnect()
```

---

## Industrial Packaging & Pallet Aggregation

```python
from beetech_smartsdk import Station, PalletSession

# Station packing cycle
with Station("CARTON_STATION_01") as station:
    station.initialize()
    station.start_carton("3034257BF400000000000001", expected_items=10)
    count, is_complete = station.pack_item("3034257BF400000000000002")
    station.seal_carton("SHIPPING_DOCK_A")

# Multi-tier pallet session
with PalletSession("PALLET_9901", max_cartons=40) as pallet:
    pallet.start(warehouse_zone="ZONE_EAST", expected_tiers=4)
    pallet.add_carton("3034257BF400000000000001", tier_level=1)
    pallet.seal(target_dock="DOCK_04", wrapping_gauge_microns=30)
```
