PythonToSW is a Python package that allows you to code up addons for Stormworks: Build and Rescue in Python rather than using Lua. It uses HTTP under the hood to communicate with an in-game addon to carry out function calls.
Unfortunately, since HTTP is used, any PythonToSW addon will be 2x slower than a normal addon due to the request rate limit (one request every two ticks, or 32 requests/s).
Installation
To install or update PythonToSW, simply run:
pip install PythonToSW --upgrade
Learn More
Knowledge on Stormworks addons is recommended before proceeding. Consider reading the in-game addon documentation as this documentation assumes you know a decent amount about Stormworks addons.