Skip to main content

Suning biu smart home SMS login and session client

Project description

python-xiaobiu

Python client for Suning smart home SMS login and session management.

Used by the ha-suning Home Assistant custom integration.

Install

pip install python-xiaobiu

Usage

from xiaobiu import CaptchaRequiredError, SuningSmartHomeClient

client = SuningSmartHomeClient(state_path=".suning-session.json")

try:
    client.send_sms_code("13800000000")
except CaptchaRequiredError as error:
    print(error.risk_type, error.sms_ticket)

client.login_with_sms_code(phone_number="13800000000", sms_code="123456")
print(client.list_family_infos())

CLI

# Interactive login
xiaobiucli login --phone 13800000000 --state-file .suning-session.json

# Send SMS only
xiaobiucli send-sms --phone 13800000000 --state-file .suning-session.json

# Check session
xiaobiucli check --state-file .suning-session.json

# List families / devices
xiaobiucli families --state-file .suning-session.json
xiaobiucli devices --family-id 37790 --state-file .suning-session.json

Requirements

  • Python >= 3.14
  • cryptography, pydantic, requests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xiaobiu_python-0.0.1.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xiaobiu_python-0.0.1-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file xiaobiu_python-0.0.1.tar.gz.

File metadata

  • Download URL: xiaobiu_python-0.0.1.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xiaobiu_python-0.0.1.tar.gz
Algorithm Hash digest
SHA256 aea6a716a4b1737463f4e6c9b9fddc3e77a9cc6e22e46d9584dc5c5dd128873f
MD5 98b62ba5765e70cd8734b76120739c78
BLAKE2b-256 d337dcd8fdde9091df0432e8a32669f8c3ba20ef64cc9c685cc53e9772c0b4ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for xiaobiu_python-0.0.1.tar.gz:

Publisher: python-publish.yml on zhiyuHD/xiaobiu-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xiaobiu_python-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: xiaobiu_python-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xiaobiu_python-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6f96e6c52a32b04adfeee33570420a7e25dddddf380fecdbc428b2502491342
MD5 297ce54cf20a5f5a42d01c6418b7902e
BLAKE2b-256 3e1b0a0d4fe14453753f4cda8e481b05b6a5b5ab73776ab26c296fc1c0cb149a

See more details on using hashes here.

Provenance

The following attestation bundles were made for xiaobiu_python-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on zhiyuHD/xiaobiu-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page