semvec/pypi-packages huggingface dataset:
qingping-iot-mqtt 0.1.1
Python library and utilities for working with Qingping IoT MQTT protocols - JSON and binary ("HEX").
Requires Python: >=3.8
Keywords: iot, mqtt, qingping

# Qingping IoT MQTT

Python library and utilities for working with Qingping IoT MQTT protocols - JSON and binary ("HEX"). 

## Background

Qingping IoT devices working over Wi-Fi (and some home Qingping+ devices) can either push data to Qingping IoT Cloud (see [qingping-iot-cloud](https://github.com/danielskowronski/qingping-iot-cloud) library for details) or be "privatized", i.e. change MQTT endpoint to your own MQTT broker. Each model of Qingping IoT Wi-Fi device use either JSON or binary ("HEX") protocol and this cannot be changed. 

References:

- [MQTT JSON](https://developer.qingping.co/private/communication-protocols/public-mqtt-json)
- [MQTT HEX](https://qingping.feishu.cn/docx/BlYOdJVRQobV0ox6SNZcV8V6nZT)

## Scope

This library and set of utilities are designed for both protocols. Ultimately, a Home Assistant integration will be created, but main goal for this repository is to have encoder/decoder of both protocols working with CLI inputs and connected to MQTT broker (including automatic acks, required by some devices). Additionaly, there will be some simple ways of storing all data from devices (SQL or Time-Series DBs to store data coming from historical reports, as HA and Prometheus do not support pushing).

MQTT broker configuration is not part of this project.

Currently, I only have CO2 sensor (HEX protocol) and Air Monitor Lite (JSON protocol), so coverage may be limited.

```
#TODO: usage docs
```
keynexus-python 1.0.1
Official Python SDK for KeyNexus License Management
Requires Python: >=3.7
Keywords: license management authentication licensing drm

# KeyNexus Python SDK

Official Python client for KeyNexus License Management System.

## Installation

### From PyPI (Recommended)

```bash
pip install keynexus-python
```

### From Source

```bash
# Clone repository
git clone https://github.com/keynexus/keynexus-python
cd keynexus-python

# Install
pip install -e .
```

## Quick Start

```python
from keynexus import KeyNexusClient

# Initialize client
client = KeyNexusClient(
    app_id="app_xxxxxxxxxxxx",
    secret_key="sk_xxxxxxxxxxxxxxxxxxxx"
)

# Validate license
try:
    result = client.validate_license("XXXXX-XXXXX-XXXXX-XXXXX")
    print(f"✅ License valid!")
    print(f"Type: {result['license']['type']}")
    print(f"Expires: {result['license']['expiresAt']}")
except Exception as e:
    print(f"❌ Error: {e}")
```

## Features

- ✅ License validation with automatic HWID generation
- ✅ Username/password authentication
- ✅ Session management
- ✅ Automatic error handling
- ✅ Type hints for better IDE support

## Documentation

Full documentation available at: https://keynexus.es/docs

## Examples

### Validate License

```python
client = KeyNexusClient(app_id="...", secret_key="...")

result = client.validate_license("XXXXX-XXXXX-XXXXX-XXXXX")
if result['success']:
    print("Access granted!")
```

### Login with Password

```python
result = client.login_with_password("username", "password")
print(f"Welcome {result['user']['username']}!")
```

### Get User Info

```python
user = client.get_user_info()
print(f"Subscription expires: {user['user']['subscriptionExpiry']}")
```

## License

MIT License - see LICENSE file for details