A python library to get information from Smart #1 and #3 web API
Project description
pySmartHashtag
API wrapper for Smart #1 and #3 Cloud Service
Regard this to be kind of stable. This library is used in custom Homeassistant component Smart Hashtag
Get this custom integration into homeassistant
Region Support
The library supports both European and International (Asia-Pacific) regions. This is important for users with the Hello Smart International app (used in Australia, Singapore, and other international markets).
Usage
from pysmarthashtag.account import SmartAccount
from pysmarthashtag.const import SmartRegion, get_endpoint_urls_for_region
# For European users (default)
account = SmartAccount("user@example.com", "password")
# For International/Asia-Pacific users (Australia, Singapore, etc.)
endpoint_urls = get_endpoint_urls_for_region(SmartRegion.INTL)
account = SmartAccount("user@example.com", "password", endpoint_urls=endpoint_urls)
CLI Usage
When using the command-line interface, you can specify the region with the --region flag:
# European region (default)
python -m pysmarthashtag.cli --username user@example.com --password secret status
# International region
python -m pysmarthashtag.cli --username user@example.com --password secret --region intl status
You can also set the region via environment variable:
export SMART_REGION=intl
AI Disclosure
This project uses AI to assist with development.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysmarthashtag-0.8.0.tar.gz.
File metadata
- Download URL: pysmarthashtag-0.8.0.tar.gz
- Upload date:
- Size: 55.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dbb92af7f08b939db88bcee577cfb71e6be877dd5d0f51d625b10f43d28e41b
|
|
| MD5 |
467dbec09509a95954a4eb221e7594b4
|
|
| BLAKE2b-256 |
0e82a1a19472b18e31978c0b000b1bfe66737b00ba2d3d3ad4e23322bd39b4a4
|
File details
Details for the file pysmarthashtag-0.8.0-py3-none-any.whl.
File metadata
- Download URL: pysmarthashtag-0.8.0-py3-none-any.whl
- Upload date:
- Size: 67.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ceb0e86122aff305e129abc6b957cdbf1db9e5aeae231b7a3e1c61ed33bda40
|
|
| MD5 |
0907524f8daa66ab3d2efd377fe8114f
|
|
| BLAKE2b-256 |
68a51fe293994a757254a784af08fe2c357e4aec44e71453bd23aaaac97189a2
|