Skip to main content

Code execution nodes for Flowire workflow automation

Project description

Flowire Code Nodes

PyPI version

Code execution node package for Flowire workflow automation.

This package is intentionally separate from fw-nodes-core so servers can opt into code execution support by installing this package.

Installation

cd flowire-app/backend
uv pip install fw-nodes-code

Enable it in your .env file:

INSTALLED_NODE_PACKAGES=fw-nodes-core,fw-nodes-code

Included Node

Node Description
Code Execute JavaScript or Python code in an isolated sandbox

The node supports a runtime input (default latest) so you can route different versions to different sandbox services (for example 3.13, 3.9, 20).

Sandbox Services

This package includes the sandbox runtimes used by the Code node:

  • js-sandbox/ - JavaScript sandbox (isolated-vm + Fastify)
  • py-sandbox/ - Python sandbox (FastAPI + subprocess execution)

Local sandbox commands

cd fw-nodes-code
just js-sandbox-install
just py-sandbox-install
just js-sandbox
just py-sandbox

Environment Variables

  • CODE_NODE_SANDBOX_URL_MAP - JSON object mapping runtime keys to sandbox URLs.

Example:

CODE_NODE_SANDBOX_URL_MAP='{
  "javascript@latest":"http://localhost:3100",
  "javascript@20":"http://localhost:3110",
  "python@latest":"http://localhost:3200",
  "python@3.13":"http://localhost:3213",
  "python@3.9":"http://localhost:3209"
}'

Runtime keys are resolved as:

  1. {language}@{runtime} (for example python@3.13)
  2. {language}@latest
  3. (no fallback route; configuration must exist in the map)

If CODE_NODE_SANDBOX_URL_MAP is not set, defaults are used:

  • javascript@latest -> http://localhost:3100
  • python@latest -> http://localhost:3200

Development

just install
just js-sandbox-install
just py-sandbox-install
just js-sandbox
just py-sandbox
just test
just lint

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

fw_nodes_code-0.0.1a2.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

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

fw_nodes_code-0.0.1a2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file fw_nodes_code-0.0.1a2.tar.gz.

File metadata

  • Download URL: fw_nodes_code-0.0.1a2.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fw_nodes_code-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 de25f80ecaa18314c5f2ebc8a4e69284dc6cdf7374e7ba0fde0e80032882cab0
MD5 b6f9e76eb760fa98967828a30d77b88a
BLAKE2b-256 cc453904868d5bc265eb06bc2660ac4c96fb3808ea12f975433147146619e456

See more details on using hashes here.

File details

Details for the file fw_nodes_code-0.0.1a2-py3-none-any.whl.

File metadata

  • Download URL: fw_nodes_code-0.0.1a2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fw_nodes_code-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 60a5531ed82e2318d8403167090c1ab8963e485385c2cfaee8e568f4cd78ba86
MD5 9bc4b4cd7b58dc8fe491c2c8faf51c01
BLAKE2b-256 e103307513915f3e3b628d31fad534264c28cd7641cee66bcb06555e1f5458ad

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