A high-level client library for accessing Arctic Spas API
Project description
pyarcticspas
A high-level python client library for accessing Arctic Spas API.
Usage
Example:
from pyarcticspas import Spa, LightState, Blower, BlowerState
token = "(Token received from https://myarcticspa.com/spa/SpaAPIManagement.aspx)"
spa = Spa(token)
status=spa.status()
print(status.connected) #True
print(status.lights.value) #off
print(status.blower1.value) #off
spa.set_lights(LightState["ON"])
spa.set_blowers(Blower["VALUE_0"],BlowerState["ON"])
status=spa.status()
print(status.lights.value) #on
print(status.blower1.value) #on
If you are using asynchronous calls, use the async_
version of the calls.
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
pyarcticspas-0.2.3.tar.gz
(8.7 kB
view details)
Built Distribution
File details
Details for the file pyarcticspas-0.2.3.tar.gz
.
File metadata
- Download URL: pyarcticspas-0.2.3.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e55b749e1f102989ea4b59915889b26bf41cbf42292ad59510dd21fbbe915e33 |
|
MD5 | 29d15459ad235e58b620c78a18139793 |
|
BLAKE2b-256 | 5ce85d5f1ea5744b059cdf4d11a9e5a0714e94f9b942f19e311eae781aef72d5 |
File details
Details for the file pyarcticspas-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: pyarcticspas-0.2.3-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57ccf806a45f416f773867a0299ed9fc4e67167750e91a363d2e66826aa6ce66 |
|
MD5 | 7d8452a039a7a9b0b7ede61e5c5e6f37 |
|
BLAKE2b-256 | 566197e1860882b57c429468c530fae19b24231a2d023cbdfef38b6113c63680 |