{"id":22410,"library":"stonefish-runtime","title":"Stonefish Runtime","description":"Stonefish Runtime is a lightweight runtime library for deploying and executing serverless functions, especially in edge environments. It supports function orchestration, dependency injection, and cloud-edge synchronization. Current version 0.4.10, released on 2025-04-22. Pre-release phase with weekly updates.","status":"active","version":"0.4.10","language":"python","source_language":"en","source_url":"https://github.com/stonefish/stonefish-runtime","tags":["serverless","edge","runtime","stonefish"],"install":[{"cmd":"pip install stonefish-runtime","lang":"bash","label":"PyPI install"}],"dependencies":[],"imports":[{"note":"The package name uses hyphen, but import uses underscore. The top-level module is 'stonefish'.","wrong":"from stonefish_runtime import Runtime","symbol":"Runtime","correct":"from stonefish import Runtime"}],"quickstart":{"code":"from stonefish import Runtime\n\nasync def handler(event, context):\n    return {\"message\": \"Hello from Stonefish!\"}\n\nif __name__ == \"__main__\":\n    rt = Runtime(handler)\n    rt.run()","lang":"python","description":"Minimal async function and runtime initialization."},"warnings":[{"fix":"Use 'from stonefish import Runtime' or 'import stonefish'.","message":"The PyPI package is 'stonefish-runtime', but importable as 'stonefish'. Using 'import stonefish_runtime' will raise ModuleNotFoundError.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace rt.run(port=8080) with rt.run(config={'port': 8080}).","message":"Breaking change between v0.3.x and v0.4.x: The 'Runtime.run()' method now accepts a 'config' dict instead of keyword arguments for port, host, etc.","severity":"breaking","affected_versions":">=0.4.0"},{"fix":"Replace 'stonefish.deploy(func)' with 'await stonefish.deploy_async(func)'.","message":"The synchronous 'deploy' function is deprecated in v0.4.0+. Use the async 'deploy_async' instead.","severity":"deprecated","affected_versions":">=0.4.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Replace 'import stonefish_runtime' with 'import stonefish' or 'from stonefish import Runtime'.","cause":"Wrong import name. The package uses hyphen in PyPI, but import uses underscore. The module is 'stonefish'.","error":"ModuleNotFoundError: No module named 'stonefish_runtime'"},{"fix":"Change Runtime(handler, port=8080) to Runtime(handler, config={'port': 8080}) or use rt.run(config={'port':8080}).","cause":"In v0.4.0, Runtime.__init__ no longer accepts 'port' directly; pass it via 'config' dict.","error":"TypeError: Runtime.__init__() got an unexpected keyword argument 'port'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}