Skip to main content

A Python package that allows you to create basic addons in Stormworks: Build and Rescue with Python.

Reason this release was yanked:

test publish

Project description

⚙️ | PythonToSW

📚 | Overview

A Python package that allows you to create basic addons in Stormworks: Build and Rescue with Python.

import time
import PythonToSW as PTS

addon = PTS.Addon(addonName = "My Python Addon", port = 7800)

def main():
    # Every 5 seconds, send a message to everyone
    while True:
        time.sleep(5)

        addon.execute(
            PTS.Announce("Server", "Hello World", -1)
        )

addon.start(target = main) # Start the addon. This automatically creates an addon and places it in your Stormworks' addon directory, so you can easily use the addon in a save

⚙️ | Installing this package

  • Use pip install PythonToSW --upgrade
  • Import the package with import PythonToSW as PTS in your code

😔 | Quirks

  • Noticeable delays. This project works through HTTP instead of converting Python code to Lua code, and HTTP is unfortunately slow.
  • For your addon to function, the host of the server must run the Python script behind your addon. Closing the Python script will essentially stop the addon.
  • No support for property.slider and property.checkbox as of now.

✨ | Credit

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

pythontosw-2.0.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythontosw-2.0.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file pythontosw-2.0.0.tar.gz.

File metadata

  • Download URL: pythontosw-2.0.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.0 Windows/11

File hashes

Hashes for pythontosw-2.0.0.tar.gz
Algorithm Hash digest
SHA256 32a239a0d18503ab2360ce9c203c1bd499336196cfd4d0c00f8c784d4e57c33d
MD5 50ad35e29bef2abeceee7f204020d7e5
BLAKE2b-256 de290cda77e3fcd8a611f9763386e7a9029292b17d18bf7f698092d9f604f3b9

See more details on using hashes here.

File details

Details for the file pythontosw-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pythontosw-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.0 Windows/11

File hashes

Hashes for pythontosw-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e39c3c5d8bdd901945592484924bda66a84b9c010897fc645e7adb0781d9995d
MD5 3dcbc20cb41b02a091a0c3b37291febb
BLAKE2b-256 5b786e17d6b904a28591e28664652b9db5671d5618171fe1ce8a892ecd9cfbd7

See more details on using hashes here.

Supported by

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