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
NodeSpaceand the main event loop, ensuring efficient asynchronous execution of nodes. - Remote Control:
- WebSocket Worker: Allows remote management and frontend interaction via
aiohttpWebSockets. - Message Queue Worker: Supports communication via multiprocessing queues for inter-process coordination.
- WebSocket Worker: Allows remote management and frontend interaction via
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42c2be196f344942b576c3574c9badd04b513f679e2b8d02469a2900e548173d
|
|
| MD5 |
b6f11ee9dbfa0bb97298b79baf23ff38
|
|
| BLAKE2b-256 |
b07e06df79906535746906cd8ce1feafc591df8c9959d94b177c0bf989f4da1a
|
Provenance
The following attestation bundles were made for funcnodes_worker-1.6.0.tar.gz:
Publisher:
version_publish_main.yml on Linkdlab/funcnodes_worker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
funcnodes_worker-1.6.0.tar.gz -
Subject digest:
42c2be196f344942b576c3574c9badd04b513f679e2b8d02469a2900e548173d - Sigstore transparency entry: 1449644151
- Sigstore integration time:
-
Permalink:
Linkdlab/funcnodes_worker@191f61c8a360b70f44e9b5602cd044a7dc21553c -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Linkdlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
version_publish_main.yml@191f61c8a360b70f44e9b5602cd044a7dc21553c -
Trigger Event:
push
-
Statement type:
File details
Details for the file funcnodes_worker-1.6.0-py3-none-any.whl.
File metadata
- Download URL: funcnodes_worker-1.6.0-py3-none-any.whl
- Upload date:
- Size: 53.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b515054df90d451e3dd8f2f55f9c64d70dc7c01eef6834e02c59daac7cbd16d
|
|
| MD5 |
b061875d5a4bedcd8c057c1b830eace4
|
|
| BLAKE2b-256 |
7f762ffb3f9777f5ccfcb5c3158d83d2ac245785f47c3029cea1f1294ed85235
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
funcnodes_worker-1.6.0-py3-none-any.whl -
Subject digest:
5b515054df90d451e3dd8f2f55f9c64d70dc7c01eef6834e02c59daac7cbd16d - Sigstore transparency entry: 1449644163
- Sigstore integration time:
-
Permalink:
Linkdlab/funcnodes_worker@191f61c8a360b70f44e9b5602cd044a7dc21553c -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Linkdlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
version_publish_main.yml@191f61c8a360b70f44e9b5602cd044a7dc21553c -
Trigger Event:
push
-
Statement type: