Skip to main content

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


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.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

pyarcticspas-0.2.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file pyarcticspas-0.2.2.tar.gz.

File metadata

  • Download URL: pyarcticspas-0.2.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pyarcticspas-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5702e399edcd6769fbc3ec6e9cda21afc617be7a0186b7d9e2c3f2d0241fb874
MD5 b27337609838cee3de90de6ab60556ce
BLAKE2b-256 1fe63a425512bf22aa0badcddf45d403c2df746f95a154d1336bdf4885f47991

See more details on using hashes here.

File details

Details for the file pyarcticspas-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyarcticspas-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 caebe4b56bef64d367204b10be8671f89af25844b7b0509dc58b4a6180a6075a
MD5 ebe9afe434e7a0d1674d0ee7ff529dc8
BLAKE2b-256 98ddc6201d492e1b857e082c7520de8d9260b2536af906812149922a3e2d4397

See more details on using hashes here.

Supported by

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