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

python_xiaobiu-0.1.1.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

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

python_xiaobiu-0.1.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file python_xiaobiu-0.1.1.tar.gz.

File metadata

  • Download URL: python_xiaobiu-0.1.1.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_xiaobiu-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b7c05b67cb8abc8c42804bf96bd81119b8e60ccb46479058304881d775c33f9a
MD5 8511a5ea8ff2bbdc8b354399a00aa6f4
BLAKE2b-256 c37d0fcfe36514cd4139f261517d6dca532d698dd1af500c8539eb0de29f8018

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_xiaobiu-0.1.1.tar.gz:

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

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

File details

Details for the file python_xiaobiu-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: python_xiaobiu-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_xiaobiu-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8efe459ddabfafcb4d874b180c5e6a0850596f09de149654aba248df93174a46
MD5 83fac43d57966f2a868d5f29f3560c9a
BLAKE2b-256 69161ad3127c105275380c6c79b2e2ea55b144e77e26a129445f4b26be6ee4a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_xiaobiu-0.1.1-py3-none-any.whl:

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

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