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()
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.5.0.tar.gz
(97.0 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.5.0.tar.gz.
File metadata
- Download URL: windsuite_sdk-0.5.0.tar.gz
- Upload date:
- Size: 97.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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 |
1bdd9a76301100bd3d30453a5082a4716a71b17c7c07f5e766313412c9389966
|
|
| MD5 |
74570ffd12991c474eeac435844c2682
|
|
| BLAKE2b-256 |
8c576876b212ccbbcdf0e682812eaefb03691cc4c3a20a4c7d499881d95c4c65
|
File details
Details for the file windsuite_sdk-0.5.0-py3-none-any.whl.
File metadata
- Download URL: windsuite_sdk-0.5.0-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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 |
1f1cc2ecbbe487bd14bc2f34cda91db35a6a915bbeb3ff0a29a7175c9f31243c
|
|
| MD5 |
f63e377c7cd75db8a2cd5d0991e42008
|
|
| BLAKE2b-256 |
43f0c5668b0d94ab0adfd09996b133ca452fb1048a9772a9523d9cd481ebea67
|