funcnodes 1.2.0__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {funcnodes-1.2.0 → funcnodes-1.3.0}/CHANGELOG.md +10 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/PKG-INFO +1 -1
- {funcnodes-1.2.0 → funcnodes-1.3.0}/pyproject.toml +1 -1
- {funcnodes-1.2.0 → funcnodes-1.3.0}/pytest.ini +1 -1
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/__init__.py +6 -1
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/__main__.py +9 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/uv.lock +1 -1
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.coveragerc +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.flake8 +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.github/actions/install_package/action.yml +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.github/workflows/docs.yaml +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.github/workflows/py_test.yml +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.github/workflows/version_publish_main.yml +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.gitignore +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.pre-commit-config.yaml +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.pylintrc +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.vscode/extensions.json +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/.vscode/settings.json +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/LICENSE +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/README.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/THIRD_PARTY_NOTICES.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/assets/logos/funcnodes.png +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/cz.toml +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/api/cli.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/config.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/inputs-outputs.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/lib.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/node.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/nodeinput.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/nodeoutput.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/nodespace.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/serialization.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/shelf.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/worker.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/worker_config.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/components/workermanager.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/cat.fnw +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/cat.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/cat.png +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/csv.fnw +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/csv.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/csv.png +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/index.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/titanic.fnw +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/titanic.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/examples/titanic.png +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/faq/common-issues.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/getting-started/basic_usage.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/getting-started/installation.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/getting-started/introduction.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/index.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/modules/index.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/static/css/style.css +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/static/js/basic_funcnodes_pyodide.js +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/static/js/node_buildermain.js +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/static/js/node_buildermain.js.LICENSE.txt +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/static/js/noderenderer.js +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/add_module.gif +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/add_module.mp4 +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/basic_nodes.gif +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/basic_nodes.mp4 +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/interface_startup.png +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/new_worker.gif +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/new_worker.mp4 +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/run_worker.gif +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/run_worker.mp4 +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/content/ui-guide/react_flow/web-ui.md +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/mkdocs.yml +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/docs/overrides/example_theme.html +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/examples/funcnodes_numpy_example.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/examples/simple_node.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/examples/simple_nodedecorator.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/examples/ws_worker.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/examples/ws_worker_w_externalworker.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/patches.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/runner/__init__.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/runner/_simple_server.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/utils/__init__.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/utils/asyncutils.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/utils/cmd.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/utils/lazy.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/worker/__init__.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/src/funcnodes/worker/worker_manager.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/tests/__init__.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/tests/test_examples.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/tests/test_graph.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/tests/test_node_examples.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/tests/test_utils/__init__.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/tests/test_utils/test_cmd.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/tests/test_worker_manager/__init__.py +0 -0
- {funcnodes-1.2.0 → funcnodes-1.3.0}/tests/test_worker_manager/test_worker_manager.py +0 -0
|
@@ -4,6 +4,7 @@ from funcnodes_worker import * # noqa: F401, F403 # type: ignore
|
|
|
4
4
|
from funcnodes_worker import __all__ as worker_all # Explicit import
|
|
5
5
|
import sys
|
|
6
6
|
from .utils.lazy import LazyImport
|
|
7
|
+
from importlib.metadata import version, PackageNotFoundError
|
|
7
8
|
|
|
8
9
|
if sys.platform != "emscripten":
|
|
9
10
|
from .worker import ( # noqa: F401
|
|
@@ -26,4 +27,8 @@ else:
|
|
|
26
27
|
__all__ += worker_all + core_all
|
|
27
28
|
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
try:
|
|
31
|
+
__version__ = version("your_package")
|
|
32
|
+
except PackageNotFoundError:
|
|
33
|
+
# Package isn't installed (e.g. during local dev)
|
|
34
|
+
__version__ = "0.0.0"
|
|
@@ -666,6 +666,13 @@ def main():
|
|
|
666
666
|
help="Profile the code",
|
|
667
667
|
)
|
|
668
668
|
|
|
669
|
+
parser.add_argument(
|
|
670
|
+
"--use-subprocess-monitor",
|
|
671
|
+
default=os.environ.get("USE_SUBPROCESS_MONITOR", "1"),
|
|
672
|
+
type=int,
|
|
673
|
+
help="Use the subprocess monitor to run the code",
|
|
674
|
+
)
|
|
675
|
+
|
|
669
676
|
subparsers = parser.add_subparsers(dest="task", required=True)
|
|
670
677
|
|
|
671
678
|
# Add subparsers for each major task
|
|
@@ -690,6 +697,8 @@ def main():
|
|
|
690
697
|
if args.debug:
|
|
691
698
|
fn.FUNCNODES_LOGGER.setLevel("DEBUG")
|
|
692
699
|
|
|
700
|
+
os.environ["USE_SUBPROCESS_MONITOR"] = str(args.use_subprocess_monitor)
|
|
701
|
+
|
|
693
702
|
if (
|
|
694
703
|
getattr(args, "long_running", False)
|
|
695
704
|
and os.environ.get("SUBPROCESS_MONITOR_PID") is None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|