Skip to main content

Worker package for FuncNodes

Project description

FuncNodes Worker

FuncNodes Worker (funcnodes_worker) is the execution engine for the FuncNodes ecosystem. It provides the runtime environment where nodes are executed, managed, and controlled.

[!NOTE] For the full application usage, please refer to the main FuncNodes repository.

Key Features

  • Execution Runtime: Manages the NodeSpace and the main event loop, ensuring efficient asynchronous execution of nodes.
  • Remote Control:
    • WebSocket Worker: Allows remote management and frontend interaction via aiohttp WebSockets.
    • Message Queue Worker: Supports communication via multiprocessing queues for inter-process coordination.
  • Process Management: Handles state persistence, heartbeats, and safe shutdown procedures.
  • Extensibility: Supports "External Workers" to offload tasks to auxiliary processes or environments.

Installation

pip install funcnodes-worker

Dependencies

  • funcnodes-core: The core logic definitions.
  • aiohttp: For WebSocket communication (optional but recommended).
  • pydantic: For configuration and data validation.

Usage

In most cases, funcnodes-worker is used internally by the funcnodes main package. However, you can instantiate a worker programmatically if needed:

from funcnodes_worker import WSWorker

# Create a worker that listens on a specific host and port
worker = WSWorker(host="localhost", port=9382)

# Start the worker loop (usually handled by an async runner)
# await worker.run()

Documentation

For comprehensive documentation, visit the FuncNodes Documentation.

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

funcnodes_worker-1.6.0.tar.gz (135.6 kB view details)

Uploaded Source

Built Distribution

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

funcnodes_worker-1.6.0-py3-none-any.whl (53.9 kB view details)

Uploaded Python 3

File details

Details for the file funcnodes_worker-1.6.0.tar.gz.

File metadata

  • Download URL: funcnodes_worker-1.6.0.tar.gz
  • Upload date:
  • Size: 135.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for funcnodes_worker-1.6.0.tar.gz
Algorithm Hash digest
SHA256 42c2be196f344942b576c3574c9badd04b513f679e2b8d02469a2900e548173d
MD5 b6f11ee9dbfa0bb97298b79baf23ff38
BLAKE2b-256 b07e06df79906535746906cd8ce1feafc591df8c9959d94b177c0bf989f4da1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for funcnodes_worker-1.6.0.tar.gz:

Publisher: version_publish_main.yml on Linkdlab/funcnodes_worker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file funcnodes_worker-1.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for funcnodes_worker-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b515054df90d451e3dd8f2f55f9c64d70dc7c01eef6834e02c59daac7cbd16d
MD5 b061875d5a4bedcd8c057c1b830eace4
BLAKE2b-256 7f762ffb3f9777f5ccfcb5c3158d83d2ac245785f47c3029cea1f1294ed85235

See more details on using hashes here.

Provenance

The following attestation bundles were made for funcnodes_worker-1.6.0-py3-none-any.whl:

Publisher: version_publish_main.yml on Linkdlab/funcnodes_worker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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