Windsuite User SDK for the Windshape Software Suite.
Project description
WindShape Software Suite SDK
Installation
uv add windsuite_sdk
# Legacy pip method
pip install windsuite_sdk
Basic Example
import os
import threading
from dotenv import load_dotenv
from windsuite_sdk import WindsuiteSDK
load_dotenv()
SERVER_IP_ADDRESS = os.getenv("SERVER_IP_ADDRESS", default="localhost")
stop_event = threading.Event()
def main() -> None:
base_url = f"http://{SERVER_IP_ADDRESS}"
print(f"Connecting to WindSuite server at {base_url}")
sdk = WindsuiteSDK(base_url=base_url)
sdk.start_communication()
main_loop_hz = 25
try:
sdk.set_psu(state=True)
stop_event.wait(timeout=2)
sdk.fan_controller.set_intensity(percent=10).apply()
while not stop_event.wait(timeout=(1.0 / main_loop_hz)):
# ! DO WHATEVER
pass
except KeyboardInterrupt:
print("\nShutting down...")
stop_event.set()
finally:
sdk.fan_controller.set_intensity(0).apply()
sdk.cleanup()
print("SDK stopped")
if __name__ == "__main__":
main()
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
windsuite_sdk-0.4.6.tar.gz
(95.2 kB
view details)
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 windsuite_sdk-0.4.6.tar.gz.
File metadata
- Download URL: windsuite_sdk-0.4.6.tar.gz
- Upload date:
- Size: 95.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab5cf97aaee339012987f5c203f16f936f8ce35bb8724b3975985ec2f8882ae4
|
|
| MD5 |
cfd49d693aab19e54d501f943f9427d1
|
|
| BLAKE2b-256 |
e7676fedc27dec7ce47eee221de8b9e48f375958fb63cd1ace7944eddc246687
|
File details
Details for the file windsuite_sdk-0.4.6-py3-none-any.whl.
File metadata
- Download URL: windsuite_sdk-0.4.6-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1bb733710856ead43daa522a57677c6b8c51be948184a3f9c32d09b6ba77877
|
|
| MD5 |
df3c522519a41923a78fd1a7b750ad0c
|
|
| BLAKE2b-256 |
bc71e691289ec5d2d9eadd6f36412b4f3164fd1e589f8eb187ba04adcc15d4e5
|