tolquane 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.
- tolquane-1.3.0/.gitignore +38 -0
- tolquane-1.3.0/LICENSE +201 -0
- tolquane-1.3.0/PKG-INFO +185 -0
- tolquane-1.3.0/README.md +128 -0
- tolquane-1.3.0/benchmarks/README.md +120 -0
- tolquane-1.3.0/docs/img/web/ai.png +0 -0
- tolquane-1.3.0/docs/img/web/canvas.png +0 -0
- tolquane-1.3.0/docs/img/web/code.png +0 -0
- tolquane-1.3.0/docs/img/web/deadlock.png +0 -0
- tolquane-1.3.0/docs/img/web/flows.png +0 -0
- tolquane-1.3.0/docs/img/web/history.png +0 -0
- tolquane-1.3.0/docs/img/web/login.png +0 -0
- tolquane-1.3.0/docs/img/web/outcomes.png +0 -0
- tolquane-1.3.0/docs/img/web/params.png +0 -0
- tolquane-1.3.0/docs/img/web/properties.png +0 -0
- tolquane-1.3.0/docs/img/web/run.png +0 -0
- tolquane-1.3.0/docs/img/web/schedules.png +0 -0
- tolquane-1.3.0/examples/README.md +14 -0
- tolquane-1.3.0/examples/generated/README.md +26 -0
- tolquane-1.3.0/hatch_build.py +64 -0
- tolquane-1.3.0/pyproject.toml +115 -0
- tolquane-1.3.0/src/tolquane/__init__.py +108 -0
- tolquane-1.3.0/src/tolquane/__main__.py +5 -0
- tolquane-1.3.0/src/tolquane/_events.py +167 -0
- tolquane-1.3.0/src/tolquane/_sentinels.py +37 -0
- tolquane-1.3.0/src/tolquane/ai/__init__.py +55 -0
- tolquane-1.3.0/src/tolquane/ai/builder.py +109 -0
- tolquane-1.3.0/src/tolquane/ai/prompt.py +83 -0
- tolquane-1.3.0/src/tolquane/ai/providers.py +300 -0
- tolquane-1.3.0/src/tolquane/ai/resources/api-card.md +155 -0
- tolquane-1.3.0/src/tolquane/ai/resources/example_hello.py.txt +29 -0
- tolquane-1.3.0/src/tolquane/ai/resources/example_word_count.py.txt +51 -0
- tolquane-1.3.0/src/tolquane/ai/resources/style.md +24 -0
- tolquane-1.3.0/src/tolquane/ai/tools.py +265 -0
- tolquane-1.3.0/src/tolquane/api.py +128 -0
- tolquane-1.3.0/src/tolquane/asyncnode.py +228 -0
- tolquane-1.3.0/src/tolquane/channel.py +629 -0
- tolquane-1.3.0/src/tolquane/cli.py +749 -0
- tolquane-1.3.0/src/tolquane/draw.py +87 -0
- tolquane-1.3.0/src/tolquane/errors.py +52 -0
- tolquane-1.3.0/src/tolquane/graph.py +966 -0
- tolquane-1.3.0/src/tolquane/launch.py +160 -0
- tolquane-1.3.0/src/tolquane/net.py +808 -0
- tolquane-1.3.0/src/tolquane/optimize.py +251 -0
- tolquane-1.3.0/src/tolquane/policies.py +295 -0
- tolquane-1.3.0/src/tolquane/processes.py +394 -0
- tolquane-1.3.0/src/tolquane/py.typed +0 -0
- tolquane-1.3.0/src/tolquane/run.py +96 -0
- tolquane-1.3.0/src/tolquane/runner.py +351 -0
- tolquane-1.3.0/src/tolquane/runtime.py +868 -0
- tolquane-1.3.0/src/tolquane/session.py +148 -0
- tolquane-1.3.0/src/tolquane/web/__init__.py +5 -0
- tolquane-1.3.0/src/tolquane/web/cron.py +336 -0
- tolquane-1.3.0/src/tolquane/web/history.py +386 -0
- tolquane-1.3.0/src/tolquane/web/model.py +445 -0
- tolquane-1.3.0/src/tolquane/web/model_codegen.py +316 -0
- tolquane-1.3.0/src/tolquane/web/model_parse.py +824 -0
- tolquane-1.3.0/src/tolquane/web/notify.py +454 -0
- tolquane-1.3.0/src/tolquane/web/probe.py +159 -0
- tolquane-1.3.0/src/tolquane/web/scheduler.py +161 -0
- tolquane-1.3.0/src/tolquane/web/server.py +2595 -0
- tolquane-1.3.0/src/tolquane/web/settings.py +678 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/Canvas-C4h0k6Jt.css +1 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/Canvas-DZ6VzSn4.js +7 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/CodeMirror-D1SQOPvA.js +20 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/CodeStage-CF17efdn.js +1 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/ConflictDialog-CcsvTyiW.js +1 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/NodeBody-ByfQOkv_.js +1 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/code-DODi-bqf.css +1 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/code.module-pRN5wGoA.js +1 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/flow-BDQLUivY.js +1 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/index-BnXFG55l.css +1 -0
- tolquane-1.3.0/src/tolquane/web/static/assets/index-CzcYRKDj.js +35 -0
- tolquane-1.3.0/src/tolquane/web/static/favicon.svg +11 -0
- tolquane-1.3.0/src/tolquane/web/static/index.html +33 -0
- tolquane-1.3.0/src/tolquane/web/store.py +1267 -0
- tolquane-1.3.0/src/tolquane/web/supervisor.py +763 -0
- tolquane-1.3.0/tests/conftest.py +8 -0
- tolquane-1.3.0/tests/fixtures/ai/square_sum_anthropic.json +98 -0
- tolquane-1.3.0/tests/fixtures/ai/square_sum_openai.json +94 -0
- tolquane-1.3.0/tests/liveness/test_liveness.py +242 -0
- tolquane-1.3.0/tests/test_ai.py +333 -0
- tolquane-1.3.0/tests/test_all2all.py +213 -0
- tolquane-1.3.0/tests/test_async.py +205 -0
- tolquane-1.3.0/tests/test_batch.py +102 -0
- tolquane-1.3.0/tests/test_bbflow_ports.py +484 -0
- tolquane-1.3.0/tests/test_cli_flows.py +298 -0
- tolquane-1.3.0/tests/test_events.py +688 -0
- tolquane-1.3.0/tests/test_examples.py +45 -0
- tolquane-1.3.0/tests/test_fastflow_ports.py +221 -0
- tolquane-1.3.0/tests/test_feedback.py +167 -0
- tolquane-1.3.0/tests/test_generated_examples.py +84 -0
- tolquane-1.3.0/tests/test_graph.py +163 -0
- tolquane-1.3.0/tests/test_launch.py +120 -0
- tolquane-1.3.0/tests/test_msom.py +68 -0
- tolquane-1.3.0/tests/test_nested.py +169 -0
- tolquane-1.3.0/tests/test_net.py +481 -0
- tolquane-1.3.0/tests/test_optimize.py +167 -0
- tolquane-1.3.0/tests/test_package.py +17 -0
- tolquane-1.3.0/tests/test_processes.py +296 -0
- tolquane-1.3.0/tests/test_run.py +367 -0
- tolquane-1.3.0/tests/test_session.py +61 -0
- tolquane-1.3.0/tests/test_stats.py +54 -0
- tolquane-1.3.0/tests/web/test_cron.py +357 -0
- tolquane-1.3.0/tests/web/test_hardening.py +688 -0
- tolquane-1.3.0/tests/web/test_history.py +356 -0
- tolquane-1.3.0/tests/web/test_model.py +784 -0
- tolquane-1.3.0/tests/web/test_notify.py +622 -0
- tolquane-1.3.0/tests/web/test_openapi.py +89 -0
- tolquane-1.3.0/tests/web/test_probe.py +149 -0
- tolquane-1.3.0/tests/web/test_scheduler.py +302 -0
- tolquane-1.3.0/tests/web/test_server.py +745 -0
- tolquane-1.3.0/tests/web/test_server_graph.py +159 -0
- tolquane-1.3.0/tests/web/test_server_inputs.py +349 -0
- tolquane-1.3.0/tests/web/test_store.py +525 -0
- tolquane-1.3.0/tests/web/test_users.py +785 -0
- tolquane-1.3.0/web/.gitignore +3 -0
- tolquane-1.3.0/web/.prettierignore +10 -0
- tolquane-1.3.0/web/.prettierrc.json +9 -0
- tolquane-1.3.0/web/DESIGN.md +337 -0
- tolquane-1.3.0/web/e2e/ai.spec.ts +251 -0
- tolquane-1.3.0/web/e2e/auth.spec.ts +85 -0
- tolquane-1.3.0/web/e2e/code.spec.ts +155 -0
- tolquane-1.3.0/web/e2e/editor.spec.ts +150 -0
- tolquane-1.3.0/web/e2e/flows.spec.ts +128 -0
- tolquane-1.3.0/web/e2e/harness.ts +415 -0
- tolquane-1.3.0/web/e2e/helpers.ts +94 -0
- tolquane-1.3.0/web/e2e/history.spec.ts +152 -0
- tolquane-1.3.0/web/e2e/inputs.spec.ts +209 -0
- tolquane-1.3.0/web/e2e/journeys.spec.ts +317 -0
- tolquane-1.3.0/web/e2e/offline.spec.ts +131 -0
- tolquane-1.3.0/web/e2e/outcomes.spec.ts +209 -0
- tolquane-1.3.0/web/e2e/run.spec.ts +143 -0
- tolquane-1.3.0/web/e2e/schedules.spec.ts +115 -0
- tolquane-1.3.0/web/e2e/screenshots.spec.ts +121 -0
- tolquane-1.3.0/web/e2e/settings.spec.ts +103 -0
- tolquane-1.3.0/web/e2e/users.harness.ts +100 -0
- tolquane-1.3.0/web/e2e/users.spec.ts +260 -0
- tolquane-1.3.0/web/eslint.config.js +42 -0
- tolquane-1.3.0/web/index.html +31 -0
- tolquane-1.3.0/web/openapi.json +3953 -0
- tolquane-1.3.0/web/package-lock.json +4690 -0
- tolquane-1.3.0/web/package.json +60 -0
- tolquane-1.3.0/web/playwright.config.ts +141 -0
- tolquane-1.3.0/web/public/favicon.svg +11 -0
- tolquane-1.3.0/web/src/App.tsx +51 -0
- tolquane-1.3.0/web/src/ai/AiPanel.module.css +408 -0
- tolquane-1.3.0/web/src/ai/AiPanel.tsx +346 -0
- tolquane-1.3.0/web/src/ai/FlowCard.module.css +159 -0
- tolquane-1.3.0/web/src/ai/FlowCard.tsx +136 -0
- tolquane-1.3.0/web/src/ai/Markdown.module.css +132 -0
- tolquane-1.3.0/web/src/ai/Markdown.tsx +126 -0
- tolquane-1.3.0/web/src/ai/ToolSteps.tsx +57 -0
- tolquane-1.3.0/web/src/ai/apply.test.ts +95 -0
- tolquane-1.3.0/web/src/ai/apply.ts +79 -0
- tolquane-1.3.0/web/src/ai/diff.test.ts +83 -0
- tolquane-1.3.0/web/src/ai/diff.ts +136 -0
- tolquane-1.3.0/web/src/ai/markdown.test.ts +132 -0
- tolquane-1.3.0/web/src/ai/markdown.ts +152 -0
- tolquane-1.3.0/web/src/ai/quickActions.test.ts +47 -0
- tolquane-1.3.0/web/src/ai/quickActions.ts +58 -0
- tolquane-1.3.0/web/src/ai/send.ts +61 -0
- tolquane-1.3.0/web/src/api/ai.test.ts +208 -0
- tolquane-1.3.0/web/src/api/ai.ts +264 -0
- tolquane-1.3.0/web/src/api/auth.test.ts +154 -0
- tolquane-1.3.0/web/src/api/auth.ts +71 -0
- tolquane-1.3.0/web/src/api/client.test.ts +93 -0
- tolquane-1.3.0/web/src/api/client.ts +237 -0
- tolquane-1.3.0/web/src/api/flows.test.ts +137 -0
- tolquane-1.3.0/web/src/api/flows.ts +80 -0
- tolquane-1.3.0/web/src/api/flowsCrud.ts +48 -0
- tolquane-1.3.0/web/src/api/flowsList.ts +24 -0
- tolquane-1.3.0/web/src/api/history.test.ts +120 -0
- tolquane-1.3.0/web/src/api/history.ts +51 -0
- tolquane-1.3.0/web/src/api/runs.test.ts +155 -0
- tolquane-1.3.0/web/src/api/runs.ts +230 -0
- tolquane-1.3.0/web/src/api/schedules.test.ts +119 -0
- tolquane-1.3.0/web/src/api/schedules.ts +98 -0
- tolquane-1.3.0/web/src/api/schema.d.ts +3128 -0
- tolquane-1.3.0/web/src/api/schema.test.ts +49 -0
- tolquane-1.3.0/web/src/api/settings.ts +85 -0
- tolquane-1.3.0/web/src/api/token.test.ts +121 -0
- tolquane-1.3.0/web/src/api/token.ts +144 -0
- tolquane-1.3.0/web/src/api/users.ts +25 -0
- tolquane-1.3.0/web/src/components/Account.module.css +224 -0
- tolquane-1.3.0/web/src/components/AccountMenu.test.tsx +212 -0
- tolquane-1.3.0/web/src/components/AccountMenu.tsx +168 -0
- tolquane-1.3.0/web/src/components/AccountPasswordDialog.tsx +120 -0
- tolquane-1.3.0/web/src/components/AccountSecret.tsx +50 -0
- tolquane-1.3.0/web/src/components/AccountTokensDialog.tsx +149 -0
- tolquane-1.3.0/web/src/components/AppShell.module.css +315 -0
- tolquane-1.3.0/web/src/components/AppShell.tsx +184 -0
- tolquane-1.3.0/web/src/components/AppShellContext.ts +15 -0
- tolquane-1.3.0/web/src/components/BlockCard.module.css +160 -0
- tolquane-1.3.0/web/src/components/BlockCard.tsx +95 -0
- tolquane-1.3.0/web/src/components/BrandMark.tsx +36 -0
- tolquane-1.3.0/web/src/components/Button.module.css +102 -0
- tolquane-1.3.0/web/src/components/Button.tsx +33 -0
- tolquane-1.3.0/web/src/components/CommandPalette.module.css +175 -0
- tolquane-1.3.0/web/src/components/CommandPalette.tsx +407 -0
- tolquane-1.3.0/web/src/components/EmptyState.module.css +33 -0
- tolquane-1.3.0/web/src/components/EmptyState.tsx +22 -0
- tolquane-1.3.0/web/src/components/Icon.tsx +209 -0
- tolquane-1.3.0/web/src/components/Illustrations.tsx +115 -0
- tolquane-1.3.0/web/src/components/LoginGate.module.css +18 -0
- tolquane-1.3.0/web/src/components/LoginGate.test.tsx +109 -0
- tolquane-1.3.0/web/src/components/LoginGate.tsx +43 -0
- tolquane-1.3.0/web/src/components/Notice.module.css +70 -0
- tolquane-1.3.0/web/src/components/Notice.tsx +53 -0
- tolquane-1.3.0/web/src/components/Page.module.css +158 -0
- tolquane-1.3.0/web/src/components/Page.tsx +103 -0
- tolquane-1.3.0/web/src/components/ScheduleCronEditor.module.css +147 -0
- tolquane-1.3.0/web/src/components/ScheduleCronEditor.tsx +249 -0
- tolquane-1.3.0/web/src/components/ScheduleDialog.module.css +46 -0
- tolquane-1.3.0/web/src/components/ScheduleDialog.test.tsx +339 -0
- tolquane-1.3.0/web/src/components/ScheduleDialog.tsx +376 -0
- tolquane-1.3.0/web/src/components/ScheduleList.module.css +143 -0
- tolquane-1.3.0/web/src/components/ScheduleList.tsx +202 -0
- tolquane-1.3.0/web/src/components/ScheduleOutcomes.module.css +146 -0
- tolquane-1.3.0/web/src/components/ScheduleOutcomes.tsx +231 -0
- tolquane-1.3.0/web/src/components/SettingsKeyField.module.css +5 -0
- tolquane-1.3.0/web/src/components/SettingsKeyField.tsx +51 -0
- tolquane-1.3.0/web/src/components/SettingsSection.module.css +113 -0
- tolquane-1.3.0/web/src/components/SettingsSection.tsx +138 -0
- tolquane-1.3.0/web/src/components/StatusDot.module.css +44 -0
- tolquane-1.3.0/web/src/components/StatusDot.tsx +14 -0
- tolquane-1.3.0/web/src/components/TokenDialog.test.tsx +93 -0
- tolquane-1.3.0/web/src/components/TokenDialog.tsx +105 -0
- tolquane-1.3.0/web/src/components/blockKinds.tsx +113 -0
- tolquane-1.3.0/web/src/components/form/Controls.module.css +224 -0
- tolquane-1.3.0/web/src/components/form/Controls.tsx +159 -0
- tolquane-1.3.0/web/src/components/form/Dialog.module.css +94 -0
- tolquane-1.3.0/web/src/components/form/Dialog.tsx +138 -0
- tolquane-1.3.0/web/src/components/nodeState.ts +12 -0
- tolquane-1.3.0/web/src/components/scheduleCron.test.ts +44 -0
- tolquane-1.3.0/web/src/components/scheduleCron.ts +106 -0
- tolquane-1.3.0/web/src/components/scheduleFormat.test.ts +38 -0
- tolquane-1.3.0/web/src/components/scheduleFormat.ts +79 -0
- tolquane-1.3.0/web/src/components/scheduleNotify.ts +27 -0
- tolquane-1.3.0/web/src/editor/Canvas.module.css +137 -0
- tolquane-1.3.0/web/src/editor/Canvas.tsx +452 -0
- tolquane-1.3.0/web/src/editor/CanvasContext.ts +32 -0
- tolquane-1.3.0/web/src/editor/Palette.module.css +84 -0
- tolquane-1.3.0/web/src/editor/Palette.tsx +76 -0
- tolquane-1.3.0/web/src/editor/Properties.module.css +177 -0
- tolquane-1.3.0/web/src/editor/Properties.tsx +612 -0
- tolquane-1.3.0/web/src/editor/autoLayout.ts +75 -0
- tolquane-1.3.0/web/src/editor/buildGraph.test.ts +190 -0
- tolquane-1.3.0/web/src/editor/buildGraph.ts +631 -0
- tolquane-1.3.0/web/src/editor/code/CodeMirror.test.tsx +38 -0
- tolquane-1.3.0/web/src/editor/code/CodeMirror.tsx +199 -0
- tolquane-1.3.0/web/src/editor/code/CodeStage.tsx +139 -0
- tolquane-1.3.0/web/src/editor/code/ConflictDialog.tsx +103 -0
- tolquane-1.3.0/web/src/editor/code/NodeBody.tsx +84 -0
- tolquane-1.3.0/web/src/editor/code/code.module.css +445 -0
- tolquane-1.3.0/web/src/editor/code/diff.test.tsx +122 -0
- tolquane-1.3.0/web/src/editor/code/diff.ts +97 -0
- tolquane-1.3.0/web/src/editor/code/editing.test.ts +134 -0
- tolquane-1.3.0/web/src/editor/code/history.ts +139 -0
- tolquane-1.3.0/web/src/editor/code/index.tsx +41 -0
- tolquane-1.3.0/web/src/editor/code/keymap.ts +133 -0
- tolquane-1.3.0/web/src/editor/code/locate.test.ts +89 -0
- tolquane-1.3.0/web/src/editor/code/locate.ts +115 -0
- tolquane-1.3.0/web/src/editor/code/problems.ts +110 -0
- tolquane-1.3.0/web/src/editor/code/search.ts +228 -0
- tolquane-1.3.0/web/src/editor/code/sync.test.ts +283 -0
- tolquane-1.3.0/web/src/editor/code/sync.ts +187 -0
- tolquane-1.3.0/web/src/editor/code/syncStore.ts +100 -0
- tolquane-1.3.0/web/src/editor/code/theme.test.ts +63 -0
- tolquane-1.3.0/web/src/editor/code/theme.ts +181 -0
- tolquane-1.3.0/web/src/editor/controls.module.css +169 -0
- tolquane-1.3.0/web/src/editor/controls.tsx +227 -0
- tolquane-1.3.0/web/src/editor/dragTypes.ts +2 -0
- tolquane-1.3.0/web/src/editor/edges.module.css +35 -0
- tolquane-1.3.0/web/src/editor/edges.tsx +78 -0
- tolquane-1.3.0/web/src/editor/expandedGraph.ts +94 -0
- tolquane-1.3.0/web/src/editor/geometry.ts +48 -0
- tolquane-1.3.0/web/src/editor/layout.ts +114 -0
- tolquane-1.3.0/web/src/editor/nodes.module.css +335 -0
- tolquane-1.3.0/web/src/editor/nodes.tsx +197 -0
- tolquane-1.3.0/web/src/flows/FlowRow.tsx +114 -0
- tolquane-1.3.0/web/src/flows/Flows.module.css +243 -0
- tolquane-1.3.0/web/src/flows/NewFlowDialog.tsx +266 -0
- tolquane-1.3.0/web/src/flows/format.test.ts +37 -0
- tolquane-1.3.0/web/src/flows/format.ts +35 -0
- tolquane-1.3.0/web/src/history/History.module.css +334 -0
- tolquane-1.3.0/web/src/history/HistoryPanel.test.tsx +298 -0
- tolquane-1.3.0/web/src/history/HistoryPanel.tsx +445 -0
- tolquane-1.3.0/web/src/history/SaveMessageDialog.tsx +93 -0
- tolquane-1.3.0/web/src/history/save.test.tsx +99 -0
- tolquane-1.3.0/web/src/history/save.ts +31 -0
- tolquane-1.3.0/web/src/history/store.test.ts +111 -0
- tolquane-1.3.0/web/src/history/store.ts +125 -0
- tolquane-1.3.0/web/src/hooks/useHealth.ts +67 -0
- tolquane-1.3.0/web/src/hooks/useHotkeys.ts +25 -0
- tolquane-1.3.0/web/src/hooks/useRunEvents.test.ts +203 -0
- tolquane-1.3.0/web/src/hooks/useRunEvents.ts +106 -0
- tolquane-1.3.0/web/src/hooks/useSystemTheme.ts +24 -0
- tolquane-1.3.0/web/src/hooks/useToken.ts +26 -0
- tolquane-1.3.0/web/src/inputs/EnvironmentRows.tsx +97 -0
- tolquane-1.3.0/web/src/inputs/Inputs.module.css +105 -0
- tolquane-1.3.0/web/src/inputs/ParameterFields.test.tsx +125 -0
- tolquane-1.3.0/web/src/inputs/ParameterFields.tsx +151 -0
- tolquane-1.3.0/web/src/inputs/params.test.ts +155 -0
- tolquane-1.3.0/web/src/inputs/params.ts +230 -0
- tolquane-1.3.0/web/src/main.tsx +17 -0
- tolquane-1.3.0/web/src/model/describe.ts +142 -0
- tolquane-1.3.0/web/src/model/edits.test.ts +237 -0
- tolquane-1.3.0/web/src/model/edits.ts +344 -0
- tolquane-1.3.0/web/src/model/index.ts +9 -0
- tolquane-1.3.0/web/src/model/layoutPaths.test.ts +112 -0
- tolquane-1.3.0/web/src/model/layoutPaths.ts +67 -0
- tolquane-1.3.0/web/src/model/normalize.ts +213 -0
- tolquane-1.3.0/web/src/model/params.test.ts +75 -0
- tolquane-1.3.0/web/src/model/templates.ts +174 -0
- tolquane-1.3.0/web/src/model/tree.test.ts +122 -0
- tolquane-1.3.0/web/src/model/tree.ts +267 -0
- tolquane-1.3.0/web/src/model/types.ts +238 -0
- tolquane-1.3.0/web/src/model/validate.test.ts +158 -0
- tolquane-1.3.0/web/src/model/validate.ts +303 -0
- tolquane-1.3.0/web/src/nav.ts +54 -0
- tolquane-1.3.0/web/src/pages/Editor.module.css +209 -0
- tolquane-1.3.0/web/src/pages/EditorPage.tsx +580 -0
- tolquane-1.3.0/web/src/pages/FlowsPage.test.tsx +303 -0
- tolquane-1.3.0/web/src/pages/FlowsPage.tsx +365 -0
- tolquane-1.3.0/web/src/pages/Login.module.css +107 -0
- tolquane-1.3.0/web/src/pages/LoginPage.test.tsx +289 -0
- tolquane-1.3.0/web/src/pages/LoginPage.tsx +481 -0
- tolquane-1.3.0/web/src/pages/NotFoundPage.tsx +24 -0
- tolquane-1.3.0/web/src/pages/Runs.module.css +134 -0
- tolquane-1.3.0/web/src/pages/RunsPage.tsx +450 -0
- tolquane-1.3.0/web/src/pages/SchedulesPage.test.tsx +372 -0
- tolquane-1.3.0/web/src/pages/SchedulesPage.tsx +274 -0
- tolquane-1.3.0/web/src/pages/Settings.module.css +98 -0
- tolquane-1.3.0/web/src/pages/SettingsPage.test.tsx +415 -0
- tolquane-1.3.0/web/src/pages/SettingsPage.tsx +920 -0
- tolquane-1.3.0/web/src/pages/Users.module.css +71 -0
- tolquane-1.3.0/web/src/pages/UsersPage.test.tsx +305 -0
- tolquane-1.3.0/web/src/pages/UsersPage.tsx +461 -0
- tolquane-1.3.0/web/src/platform.ts +16 -0
- tolquane-1.3.0/web/src/run/ConsolePane.tsx +115 -0
- tolquane-1.3.0/web/src/run/ProblemsPane.tsx +121 -0
- tolquane-1.3.0/web/src/run/ReportPane.tsx +59 -0
- tolquane-1.3.0/web/src/run/ReportTable.tsx +69 -0
- tolquane-1.3.0/web/src/run/Run.module.css +564 -0
- tolquane-1.3.0/web/src/run/RunButton.module.css +265 -0
- tolquane-1.3.0/web/src/run/RunButton.tsx +480 -0
- tolquane-1.3.0/web/src/run/RunDialog.module.css +194 -0
- tolquane-1.3.0/web/src/run/RunDialog.test.tsx +172 -0
- tolquane-1.3.0/web/src/run/RunDialog.tsx +292 -0
- tolquane-1.3.0/web/src/run/RunDrawer.tsx +197 -0
- tolquane-1.3.0/web/src/run/SampleManager.tsx +176 -0
- tolquane-1.3.0/web/src/run/TapsPane.tsx +117 -0
- tolquane-1.3.0/web/src/run/format.test.ts +60 -0
- tolquane-1.3.0/web/src/run/format.ts +153 -0
- tolquane-1.3.0/web/src/run/imports.test.ts +53 -0
- tolquane-1.3.0/web/src/run/imports.ts +51 -0
- tolquane-1.3.0/web/src/run/keys.test.ts +99 -0
- tolquane-1.3.0/web/src/run/keys.ts +248 -0
- tolquane-1.3.0/web/src/run/samples.ts +44 -0
- tolquane-1.3.0/web/src/store/ai.test.ts +278 -0
- tolquane-1.3.0/web/src/store/ai.ts +302 -0
- tolquane-1.3.0/web/src/store/auth.test.ts +158 -0
- tolquane-1.3.0/web/src/store/auth.ts +158 -0
- tolquane-1.3.0/web/src/store/commands.ts +79 -0
- tolquane-1.3.0/web/src/store/flow.test.ts +198 -0
- tolquane-1.3.0/web/src/store/flow.ts +568 -0
- tolquane-1.3.0/web/src/store/flowParams.test.ts +72 -0
- tolquane-1.3.0/web/src/store/run.test.ts +337 -0
- tolquane-1.3.0/web/src/store/run.ts +464 -0
- tolquane-1.3.0/web/src/store/storage.ts +32 -0
- tolquane-1.3.0/web/src/store/ui.test.ts +79 -0
- tolquane-1.3.0/web/src/store/ui.ts +80 -0
- tolquane-1.3.0/web/src/test/fixtures/hello.json +250 -0
- tolquane-1.3.0/web/src/test/fixtures/index.ts +47 -0
- tolquane-1.3.0/web/src/test/fixtures/newton.json +351 -0
- tolquane-1.3.0/web/src/test/fixtures/showcase.json +568 -0
- tolquane-1.3.0/web/src/test/fixtures/som.json +193 -0
- tolquane-1.3.0/web/src/test/fixtures/url_status.json +352 -0
- tolquane-1.3.0/web/src/test/fixtures/word_count.json +335 -0
- tolquane-1.3.0/web/src/test/fixtures/word_frequency.json +450 -0
- tolquane-1.3.0/web/src/test/setup.ts +33 -0
- tolquane-1.3.0/web/src/test/shell.test.tsx +123 -0
- tolquane-1.3.0/web/src/theme/base.css +156 -0
- tolquane-1.3.0/web/src/theme/tokens.css +216 -0
- tolquane-1.3.0/web/src/vite-env.d.ts +1 -0
- tolquane-1.3.0/web/tsconfig.app.json +30 -0
- tolquane-1.3.0/web/tsconfig.json +4 -0
- tolquane-1.3.0/web/tsconfig.node.json +23 -0
- tolquane-1.3.0/web/vite.config.ts +56 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
.eggs/
|
|
8
|
+
|
|
9
|
+
# Environments and secrets
|
|
10
|
+
.env
|
|
11
|
+
keys.env
|
|
12
|
+
.venv*/
|
|
13
|
+
venv/
|
|
14
|
+
.python-version
|
|
15
|
+
|
|
16
|
+
# Tooling caches
|
|
17
|
+
.pytest_cache/
|
|
18
|
+
.mypy_cache/
|
|
19
|
+
.ruff_cache/
|
|
20
|
+
.coverage
|
|
21
|
+
htmlcov/
|
|
22
|
+
|
|
23
|
+
# Editors and OS
|
|
24
|
+
.idea/
|
|
25
|
+
.vscode/
|
|
26
|
+
.DS_Store
|
|
27
|
+
site/
|
|
28
|
+
|
|
29
|
+
# Tolquane Web (frontend)
|
|
30
|
+
web/node_modules/
|
|
31
|
+
src/tolquane/web/static/
|
|
32
|
+
web/dist/
|
|
33
|
+
web/test-results/
|
|
34
|
+
web/playwright-report/
|
|
35
|
+
web/e2e/screenshots/
|
|
36
|
+
# The workspace a Playwright run seeds and throws away.
|
|
37
|
+
web/e2e/.workspace/
|
|
38
|
+
.claude/worktrees/
|
tolquane-1.3.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
tolquane-1.3.0/PKG-INFO
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: tolquane
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Summary: Parallel programming with composable building blocks: nodes, pipelines, farms and all-to-all, on threads, processes or a network.
|
|
5
|
+
Project-URL: Homepage, https://github.com/robtacconelli/Tolquane
|
|
6
|
+
Project-URL: Repository, https://github.com/robtacconelli/Tolquane
|
|
7
|
+
Project-URL: Issues, https://github.com/robtacconelli/Tolquane/issues
|
|
8
|
+
Project-URL: Design, https://github.com/robtacconelli/Tolquane/blob/main/DESIGN.md
|
|
9
|
+
Project-URL: Changelog, https://github.com/robtacconelli/Tolquane/blob/main/CHANGELOG.md
|
|
10
|
+
Author: Roberto Tacconelli
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: building-blocks,dataflow,farm,fastflow,parallel,pipeline,streaming
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
23
|
+
Classifier: Topic :: System :: Distributed Computing
|
|
24
|
+
Classifier: Typing :: Typed
|
|
25
|
+
Requires-Python: >=3.11
|
|
26
|
+
Provides-Extra: ai
|
|
27
|
+
Requires-Dist: anthropic>=1.0; extra == 'ai'
|
|
28
|
+
Requires-Dist: openai>=2.0; extra == 'ai'
|
|
29
|
+
Provides-Extra: cloudpickle
|
|
30
|
+
Requires-Dist: cloudpickle>=3.0; extra == 'cloudpickle'
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: anthropic>=1.0; extra == 'dev'
|
|
33
|
+
Requires-Dist: cloudpickle>=3.0; extra == 'dev'
|
|
34
|
+
Requires-Dist: fastapi>=0.115; extra == 'dev'
|
|
35
|
+
Requires-Dist: httpx>=0.27; extra == 'dev'
|
|
36
|
+
Requires-Dist: mkdocs-material>=9.5; extra == 'dev'
|
|
37
|
+
Requires-Dist: mkdocstrings[python]>=0.26; extra == 'dev'
|
|
38
|
+
Requires-Dist: mypy>=1.11; extra == 'dev'
|
|
39
|
+
Requires-Dist: openai>=2.0; extra == 'dev'
|
|
40
|
+
Requires-Dist: pytest-timeout>=2.3; extra == 'dev'
|
|
41
|
+
Requires-Dist: pytest>=8.3; extra == 'dev'
|
|
42
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
43
|
+
Requires-Dist: uvicorn[standard]>=0.30; extra == 'dev'
|
|
44
|
+
Provides-Extra: docs
|
|
45
|
+
Requires-Dist: mkdocs-material>=9.5; extra == 'docs'
|
|
46
|
+
Requires-Dist: mkdocstrings[python]>=0.26; extra == 'docs'
|
|
47
|
+
Provides-Extra: msgpack
|
|
48
|
+
Requires-Dist: msgpack>=1.0; extra == 'msgpack'
|
|
49
|
+
Provides-Extra: numpy
|
|
50
|
+
Requires-Dist: numpy>=1.26; extra == 'numpy'
|
|
51
|
+
Provides-Extra: processes
|
|
52
|
+
Requires-Dist: cloudpickle>=3.0; extra == 'processes'
|
|
53
|
+
Provides-Extra: web
|
|
54
|
+
Requires-Dist: fastapi>=0.115; extra == 'web'
|
|
55
|
+
Requires-Dist: uvicorn[standard]>=0.30; extra == 'web'
|
|
56
|
+
Description-Content-Type: text/markdown
|
|
57
|
+
|
|
58
|
+
# Tolquane
|
|
59
|
+
|
|
60
|
+
[](https://github.com/robtacconelli/Tolquane/actions/workflows/ci.yml)
|
|
61
|
+
[](LICENSE)
|
|
62
|
+
|
|
63
|
+
Parallel programming with composable building blocks, in Python.
|
|
64
|
+
|
|
65
|
+
Nodes speak on channels. Pipelines, farms and all-to-all blocks compose them, and the
|
|
66
|
+
same graph runs on threads, processes or across a network. Tolquane is the successor of
|
|
67
|
+
[BBFlow](https://github.com/robtacconelli/BBFlow), a Java implementation of the
|
|
68
|
+
[FastFlow](https://github.com/fastflow/fastflow) building blocks, rebuilt from scratch
|
|
69
|
+
to be simple to use and impossible to hang.
|
|
70
|
+
|
|
71
|
+
> **1.1.** Nodes, pipelines, farms with every emitter and collector policy and any block
|
|
72
|
+
> as a worker, ordered farms, node fusion, all-to-all, feedback loops that terminate by
|
|
73
|
+
> rule, batching, sessions, deadlock detection, an optimizer that cuts threads; threads,
|
|
74
|
+
> processes, coroutine pools, a distributed runtime over TCP with a one-command launcher,
|
|
75
|
+
> and a deterministic sync runtime; a run report that names the bottleneck; an AI builder
|
|
76
|
+
> that writes, checks and runs flows from a sentence; and Tolquane Web, a local GUI with
|
|
77
|
+
> the blocks on a canvas, live runs and schedules. See [DESIGN.md](DESIGN.md) for the
|
|
78
|
+
> design and the liveness rules, [docs/api-card.md](docs/api-card.md) for the whole API
|
|
79
|
+
> on one page, [examples/](examples/) for flows in the house style, and
|
|
80
|
+
> [CHANGELOG.md](CHANGELOG.md).
|
|
81
|
+
|
|
82
|
+
## What it looks like
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
import tolquane as tq
|
|
86
|
+
|
|
87
|
+
@tq.source
|
|
88
|
+
def numbers():
|
|
89
|
+
yield from range(1, 101) # a source is a generator
|
|
90
|
+
|
|
91
|
+
@tq.node
|
|
92
|
+
def double(x: int) -> int:
|
|
93
|
+
return x * 2 # the return value is sent downstream
|
|
94
|
+
|
|
95
|
+
@tq.sink
|
|
96
|
+
def show(x: int) -> None:
|
|
97
|
+
print(x)
|
|
98
|
+
|
|
99
|
+
graph = numbers >> tq.farm(double, workers=4) >> show
|
|
100
|
+
tq.run(graph) # threads by default
|
|
101
|
+
tq.run(graph, runtime="processes") # same graph, farm workers in child processes
|
|
102
|
+
tq.run(graph, runtime="sync") # same graph, one thread, deterministic
|
|
103
|
+
tq.run(graph, deploy="deploy.toml", group="G1") # same graph, this host's share of it
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
```toml
|
|
107
|
+
# deploy.toml: each host runs `tolquane run flow.py --deploy deploy.toml --group <name>`
|
|
108
|
+
[groups.G1]
|
|
109
|
+
endpoint = "10.0.0.1:7000"
|
|
110
|
+
nodes = ["numbers", "double.emitter", "double.collector", "show"]
|
|
111
|
+
[groups.G2]
|
|
112
|
+
endpoint = "10.0.0.2:7000"
|
|
113
|
+
nodes = ["double.[0-9]*"] # the workers, on the other machine
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
A function is a node. Return `tq.SKIP` to drop an item; `None` is an ordinary value.
|
|
117
|
+
A generator function yields zero or many items. Farms come with round-robin, broadcast,
|
|
118
|
+
scatter, on-demand and key-based emitters, first-come, round-robin, gather and ordered
|
|
119
|
+
collectors. `tq.all2all` joins two farms worker to worker, `tq.feedback` wires a block
|
|
120
|
+
back onto itself with a loop that closes when nothing is left in flight, and
|
|
121
|
+
`tq.session` keeps a graph running while you push items in and read results out.
|
|
122
|
+
|
|
123
|
+
## Runtimes
|
|
124
|
+
|
|
125
|
+
| Runtime | Use when |
|
|
126
|
+
|---|---|
|
|
127
|
+
| `sync` (available) | Tests and debugging: one node runs at a time in a fixed order, and a deadlock is reported the moment it happens. |
|
|
128
|
+
| `threads` (available) | I/O-bound stages, numpy and C work, and full parallelism on free-threaded CPython 3.14t. |
|
|
129
|
+
| `processes` (available) | CPU-bound pure Python on a GIL build: farm workers in child processes, everything else in the parent. |
|
|
130
|
+
| async nodes (available) | Network-heavy stages: `async def` nodes run on an event loop, and a farm of them is one pool running `workers` coroutines at a time on one thread. |
|
|
131
|
+
| distributed (available) | Two or more machines: a deploy file cuts the graph into groups, and edges crossing a group become TCP channels with backpressure, resend and an optional shared secret. |
|
|
132
|
+
|
|
133
|
+
## The AI builder
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
pip install "tolquane[ai]"
|
|
137
|
+
export ANTHROPIC_API_KEY=... # or OPENAI_API_KEY with --provider openai
|
|
138
|
+
tolquane build "read urls.txt, fetch each with 8 workers, write url, status and size to status.csv"
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
The builder writes one short, commented `flow.py` in the house style, checks its wiring,
|
|
142
|
+
runs it on the deterministic runtime with a sample it makes up (or `--sample file`),
|
|
143
|
+
fixes what fails, then asks you what to change. Claude Opus 5 is the default; GPT works
|
|
144
|
+
through `--provider openai`. Ten flows it wrote, unedited, with their transcripts, are in
|
|
145
|
+
[examples/generated/](examples/generated/); none of the ten needed a correction.
|
|
146
|
+
The same loop is a function: `tolquane.ai.build(description, workdir=".")`.
|
|
147
|
+
|
|
148
|
+
Generated code runs on your machine, in a subprocess, with a timeout. Keys are read
|
|
149
|
+
from the environment and never stored. `tolquane check`, `run`, `explain` and `draw`
|
|
150
|
+
work on any file that defines `build(source=None)`.
|
|
151
|
+
|
|
152
|
+
## Tolquane Web
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
pip install "tolquane[web]"
|
|
156
|
+
tolquane web
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
A local page for the flows in one directory: the blocks on a canvas, the Python beside
|
|
160
|
+
it and editable both ways, runs with live per-node counts and tapped items, a run
|
|
161
|
+
history, cron schedules and the AI builder in a side panel. Flows run in child
|
|
162
|
+
processes, so a hung or crashing flow cannot take the server down, and the file stays a
|
|
163
|
+
plain `flow.py` that runs with `python flow.py` anywhere Tolquane is installed. Since 1.3
|
|
164
|
+
it also has accounts with roles, parameters and environment variables for a run or a
|
|
165
|
+
schedule, a git history of every flow, and webhooks, mail and retries when a schedule
|
|
166
|
+
ends. The tour, with screenshots, is [docs/web-user.md](docs/web-user.md).
|
|
167
|
+
|
|
168
|
+
## Principles
|
|
169
|
+
|
|
170
|
+
- No hangs. EOS is a message, every edge is bounded, every node waits on one inbox,
|
|
171
|
+
errors cancel the graph, and a watchdog reports deadlocks by name.
|
|
172
|
+
- No magic. One way to write a node; cardinality is checked at build time, not guessed.
|
|
173
|
+
- No dependencies. Pure Python 3.11+, optional extras for msgpack, numpy and cloudpickle.
|
|
174
|
+
|
|
175
|
+
## Development
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
uv venv .venv --python 3.13
|
|
179
|
+
uv pip install --python .venv/bin/python -e ".[dev]"
|
|
180
|
+
.venv/bin/ruff check . && .venv/bin/ruff format --check . && .venv/bin/mypy && .venv/bin/pytest
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## License
|
|
184
|
+
|
|
185
|
+
Apache-2.0. See [LICENSE](LICENSE).
|
tolquane-1.3.0/README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Tolquane
|
|
2
|
+
|
|
3
|
+
[](https://github.com/robtacconelli/Tolquane/actions/workflows/ci.yml)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
6
|
+
Parallel programming with composable building blocks, in Python.
|
|
7
|
+
|
|
8
|
+
Nodes speak on channels. Pipelines, farms and all-to-all blocks compose them, and the
|
|
9
|
+
same graph runs on threads, processes or across a network. Tolquane is the successor of
|
|
10
|
+
[BBFlow](https://github.com/robtacconelli/BBFlow), a Java implementation of the
|
|
11
|
+
[FastFlow](https://github.com/fastflow/fastflow) building blocks, rebuilt from scratch
|
|
12
|
+
to be simple to use and impossible to hang.
|
|
13
|
+
|
|
14
|
+
> **1.1.** Nodes, pipelines, farms with every emitter and collector policy and any block
|
|
15
|
+
> as a worker, ordered farms, node fusion, all-to-all, feedback loops that terminate by
|
|
16
|
+
> rule, batching, sessions, deadlock detection, an optimizer that cuts threads; threads,
|
|
17
|
+
> processes, coroutine pools, a distributed runtime over TCP with a one-command launcher,
|
|
18
|
+
> and a deterministic sync runtime; a run report that names the bottleneck; an AI builder
|
|
19
|
+
> that writes, checks and runs flows from a sentence; and Tolquane Web, a local GUI with
|
|
20
|
+
> the blocks on a canvas, live runs and schedules. See [DESIGN.md](DESIGN.md) for the
|
|
21
|
+
> design and the liveness rules, [docs/api-card.md](docs/api-card.md) for the whole API
|
|
22
|
+
> on one page, [examples/](examples/) for flows in the house style, and
|
|
23
|
+
> [CHANGELOG.md](CHANGELOG.md).
|
|
24
|
+
|
|
25
|
+
## What it looks like
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
import tolquane as tq
|
|
29
|
+
|
|
30
|
+
@tq.source
|
|
31
|
+
def numbers():
|
|
32
|
+
yield from range(1, 101) # a source is a generator
|
|
33
|
+
|
|
34
|
+
@tq.node
|
|
35
|
+
def double(x: int) -> int:
|
|
36
|
+
return x * 2 # the return value is sent downstream
|
|
37
|
+
|
|
38
|
+
@tq.sink
|
|
39
|
+
def show(x: int) -> None:
|
|
40
|
+
print(x)
|
|
41
|
+
|
|
42
|
+
graph = numbers >> tq.farm(double, workers=4) >> show
|
|
43
|
+
tq.run(graph) # threads by default
|
|
44
|
+
tq.run(graph, runtime="processes") # same graph, farm workers in child processes
|
|
45
|
+
tq.run(graph, runtime="sync") # same graph, one thread, deterministic
|
|
46
|
+
tq.run(graph, deploy="deploy.toml", group="G1") # same graph, this host's share of it
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```toml
|
|
50
|
+
# deploy.toml: each host runs `tolquane run flow.py --deploy deploy.toml --group <name>`
|
|
51
|
+
[groups.G1]
|
|
52
|
+
endpoint = "10.0.0.1:7000"
|
|
53
|
+
nodes = ["numbers", "double.emitter", "double.collector", "show"]
|
|
54
|
+
[groups.G2]
|
|
55
|
+
endpoint = "10.0.0.2:7000"
|
|
56
|
+
nodes = ["double.[0-9]*"] # the workers, on the other machine
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
A function is a node. Return `tq.SKIP` to drop an item; `None` is an ordinary value.
|
|
60
|
+
A generator function yields zero or many items. Farms come with round-robin, broadcast,
|
|
61
|
+
scatter, on-demand and key-based emitters, first-come, round-robin, gather and ordered
|
|
62
|
+
collectors. `tq.all2all` joins two farms worker to worker, `tq.feedback` wires a block
|
|
63
|
+
back onto itself with a loop that closes when nothing is left in flight, and
|
|
64
|
+
`tq.session` keeps a graph running while you push items in and read results out.
|
|
65
|
+
|
|
66
|
+
## Runtimes
|
|
67
|
+
|
|
68
|
+
| Runtime | Use when |
|
|
69
|
+
|---|---|
|
|
70
|
+
| `sync` (available) | Tests and debugging: one node runs at a time in a fixed order, and a deadlock is reported the moment it happens. |
|
|
71
|
+
| `threads` (available) | I/O-bound stages, numpy and C work, and full parallelism on free-threaded CPython 3.14t. |
|
|
72
|
+
| `processes` (available) | CPU-bound pure Python on a GIL build: farm workers in child processes, everything else in the parent. |
|
|
73
|
+
| async nodes (available) | Network-heavy stages: `async def` nodes run on an event loop, and a farm of them is one pool running `workers` coroutines at a time on one thread. |
|
|
74
|
+
| distributed (available) | Two or more machines: a deploy file cuts the graph into groups, and edges crossing a group become TCP channels with backpressure, resend and an optional shared secret. |
|
|
75
|
+
|
|
76
|
+
## The AI builder
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
pip install "tolquane[ai]"
|
|
80
|
+
export ANTHROPIC_API_KEY=... # or OPENAI_API_KEY with --provider openai
|
|
81
|
+
tolquane build "read urls.txt, fetch each with 8 workers, write url, status and size to status.csv"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The builder writes one short, commented `flow.py` in the house style, checks its wiring,
|
|
85
|
+
runs it on the deterministic runtime with a sample it makes up (or `--sample file`),
|
|
86
|
+
fixes what fails, then asks you what to change. Claude Opus 5 is the default; GPT works
|
|
87
|
+
through `--provider openai`. Ten flows it wrote, unedited, with their transcripts, are in
|
|
88
|
+
[examples/generated/](examples/generated/); none of the ten needed a correction.
|
|
89
|
+
The same loop is a function: `tolquane.ai.build(description, workdir=".")`.
|
|
90
|
+
|
|
91
|
+
Generated code runs on your machine, in a subprocess, with a timeout. Keys are read
|
|
92
|
+
from the environment and never stored. `tolquane check`, `run`, `explain` and `draw`
|
|
93
|
+
work on any file that defines `build(source=None)`.
|
|
94
|
+
|
|
95
|
+
## Tolquane Web
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
pip install "tolquane[web]"
|
|
99
|
+
tolquane web
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
A local page for the flows in one directory: the blocks on a canvas, the Python beside
|
|
103
|
+
it and editable both ways, runs with live per-node counts and tapped items, a run
|
|
104
|
+
history, cron schedules and the AI builder in a side panel. Flows run in child
|
|
105
|
+
processes, so a hung or crashing flow cannot take the server down, and the file stays a
|
|
106
|
+
plain `flow.py` that runs with `python flow.py` anywhere Tolquane is installed. Since 1.3
|
|
107
|
+
it also has accounts with roles, parameters and environment variables for a run or a
|
|
108
|
+
schedule, a git history of every flow, and webhooks, mail and retries when a schedule
|
|
109
|
+
ends. The tour, with screenshots, is [docs/web-user.md](docs/web-user.md).
|
|
110
|
+
|
|
111
|
+
## Principles
|
|
112
|
+
|
|
113
|
+
- No hangs. EOS is a message, every edge is bounded, every node waits on one inbox,
|
|
114
|
+
errors cancel the graph, and a watchdog reports deadlocks by name.
|
|
115
|
+
- No magic. One way to write a node; cardinality is checked at build time, not guessed.
|
|
116
|
+
- No dependencies. Pure Python 3.11+, optional extras for msgpack, numpy and cloudpickle.
|
|
117
|
+
|
|
118
|
+
## Development
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
uv venv .venv --python 3.13
|
|
122
|
+
uv pip install --python .venv/bin/python -e ".[dev]"
|
|
123
|
+
.venv/bin/ruff check . && .venv/bin/ruff format --check . && .venv/bin/mypy && .venv/bin/pytest
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
Apache-2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Benchmarks
|
|
2
|
+
|
|
3
|
+
Two scripts reproduce the shapes measured in the BBFlow thesis so the numbers can be
|
|
4
|
+
compared as the runtime evolves.
|
|
5
|
+
|
|
6
|
+
| Script | Thesis reference | What it measures |
|
|
7
|
+
|---|---|---|
|
|
8
|
+
| `pipeline2.py N [runtime] [capacity]` | Table 1, Figures 10 and 11 | Per-item channel overhead: producer to consumer, N items |
|
|
9
|
+
| `farm_scaling.py [items] [max_workers] [work]` | Figures 13 to 15 | Speedup and efficiency of a farm of CPU-bound workers |
|
|
10
|
+
| `farm_throughput.py [items] [workers] [batch]` | Table 5 in spirit | Hand-off cost through emitter, workers and collector with trivial work |
|
|
11
|
+
|
|
12
|
+
## Baseline, 2026-09-05 (Phase 1, no batching yet)
|
|
13
|
+
|
|
14
|
+
Machine: 16 hardware threads, Linux. Interpreters installed with uv.
|
|
15
|
+
|
|
16
|
+
Two-node pipeline, 1,000,000 integers:
|
|
17
|
+
|
|
18
|
+
| Interpreter | Runtime | Time | Rate |
|
|
19
|
+
|---|---|---|---|
|
|
20
|
+
| 3.13 | threads | 2.40 s | 0.42 M items/s |
|
|
21
|
+
| 3.13 | sync | 2.52 s | 0.40 M items/s |
|
|
22
|
+
| 3.14t | threads | 3.06 s | 0.33 M items/s |
|
|
23
|
+
| 3.14t | sync | 4.35 s | 0.23 M items/s |
|
|
24
|
+
|
|
25
|
+
For scale, the thesis measured 159 ms for the same 1M items in BBFlow (Java, with
|
|
26
|
+
class preloading) and 76 ms in FastFlow (C++). Python's per-item cost is about 2.4 µs
|
|
27
|
+
here, almost all of it condition-variable traffic per item. Transparent batching on
|
|
28
|
+
channels (Phase 2) is the lever that changes this.
|
|
29
|
+
|
|
30
|
+
Farm of CPU-bound pure Python workers, 800 items, 20,000 loop iterations each:
|
|
31
|
+
|
|
32
|
+
| Interpreter | 1 worker | 2 | 4 | 8 |
|
|
33
|
+
|---|---|---|---|---|
|
|
34
|
+
| 3.13 (GIL) speedup | 0.97 | 0.97 | 0.89 | 0.90 |
|
|
35
|
+
| 3.14t (free-threaded) speedup | 0.96 | 1.79 | 2.95 | 4.52 |
|
|
36
|
+
| 3.14t efficiency | 0.96 | 0.90 | 0.74 | 0.57 |
|
|
37
|
+
|
|
38
|
+
The GIL build shows none, as it must for pure Python work; the free-threaded build
|
|
39
|
+
shows the farm scaling the way the thesis's Java farm did. The processes runtime
|
|
40
|
+
(Phase 4) is the answer on GIL builds.
|
|
41
|
+
|
|
42
|
+
## Phase 2, batching (2026-09-05)
|
|
43
|
+
|
|
44
|
+
Channels now carry up to `batch` items per hand-off (default 32), flushed when the
|
|
45
|
+
batch is full, after one millisecond, or before the producer blocks on anything.
|
|
46
|
+
|
|
47
|
+
Two-node pipeline, 1,000,000 integers, threads:
|
|
48
|
+
|
|
49
|
+
| Interpreter | batch 1 | batch 32 |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| 3.13 | 2.54 s | 2.10 s |
|
|
52
|
+
| 3.14t | 3.27 s | 2.32 s |
|
|
53
|
+
|
|
54
|
+
Farm of four trivial workers (emitter, workers, collector: three hops), 300,000 integers:
|
|
55
|
+
|
|
56
|
+
| Interpreter | batch 1 | batch 32 |
|
|
57
|
+
|---|---|---|
|
|
58
|
+
| 3.13 (GIL) | 3377 ms | 2788 ms |
|
|
59
|
+
| 3.14t | 3311 ms | 684 ms |
|
|
60
|
+
|
|
61
|
+
The two-node case is bounded by interpreter work in the producer and consumer loops
|
|
62
|
+
(about 2 µs per item: a dozen Python calls and attribute loads). Batching removes the
|
|
63
|
+
lock and condition traffic per item, which is why the three-hop farm gains 5x on the
|
|
64
|
+
free-threaded build while the pipeline gains 20%. On the GIL build the six threads of
|
|
65
|
+
the farm still serialize on the interpreter, so the gain is small; the processes
|
|
66
|
+
runtime (Phase 4) is the answer there, and for array work it is sending arrays, not
|
|
67
|
+
scalars.
|
|
68
|
+
|
|
69
|
+
Farm scaling (800 items of 20,000 loop iterations) on 3.14t with the default batch:
|
|
70
|
+
speedup 1.34, 2.86 and 3.88 with 2, 4 and 8 workers.
|
|
71
|
+
|
|
72
|
+
## Phase 4, processes (2026-09-05)
|
|
73
|
+
|
|
74
|
+
`runtime="processes"` puts every farm worker in its own spawned child; the rest of the
|
|
75
|
+
graph stays in the parent. Farm of CPU-bound workers, 3,000 items of 20,000 loop
|
|
76
|
+
iterations each (about 2.4 s sequential):
|
|
77
|
+
|
|
78
|
+
| Runtime | 1 worker | 2 | 4 | 8 |
|
|
79
|
+
|---|---|---|---|---|
|
|
80
|
+
| 3.13 threads (GIL) | 0.97 | 0.98 | 0.91 | 0.92 |
|
|
81
|
+
| 3.13 processes | 0.97 | 1.87 | 3.51 | 5.47 |
|
|
82
|
+
| 3.14t threads | 0.98 | 1.83 | 3.51 | 5.56 |
|
|
83
|
+
|
|
84
|
+
Speedup over the sequential loop. Processes on the GIL build now match the
|
|
85
|
+
free-threaded interpreter's threads. Efficiency at 8 workers is 0.68 on both; the
|
|
86
|
+
missing part is process startup (about 0.1 s per run, all children at once), pickling
|
|
87
|
+
each item across the pipe, and the emitter and collector sharing one core with the
|
|
88
|
+
parent's threads. On a 0.5 s workload the same farm reaches only 3.3x, so keep
|
|
89
|
+
processes for work that runs longer than a second or send bigger items.
|
|
90
|
+
|
|
91
|
+
## Phase 5, TCP between groups (2026-09-05)
|
|
92
|
+
|
|
93
|
+
Two groups as two processes on loopback, one cut edge between them (thesis Tables 2
|
|
94
|
+
and 5). `benchmarks/network_pipeline.py 1000000 <batch>` and
|
|
95
|
+
`benchmarks/network_farm.py 300000 3 32`.
|
|
96
|
+
|
|
97
|
+
| Shape | batch 1 | batch 32 | batch 256 |
|
|
98
|
+
|---|---|---|---|
|
|
99
|
+
| producer to consumer, 1,000,000 integers | 45.5 s | 3.5 s | 2.5 s |
|
|
100
|
+
| farm of 3 with the workers on the other side, 300,000 integers | | 4.0 s | |
|
|
101
|
+
|
|
102
|
+
For scale, the thesis measured 1.2 s for the same million items through BBFlow's
|
|
103
|
+
buffered Java channel on loopback and 4.5 s unbuffered. The batch is the whole story
|
|
104
|
+
here: one frame per item costs a system call and a round trip of acknowledgements per
|
|
105
|
+
item, one frame per 32 items amortizes both. The farm shape pays twice (emitter to
|
|
106
|
+
worker and worker to collector both cross the wire), and its per-item Python work in
|
|
107
|
+
the parent group runs on one core next to the two proxies per worker.
|
|
108
|
+
|
|
109
|
+
## Phase 6, coroutine pools (2026-09-05)
|
|
110
|
+
|
|
111
|
+
`tq.farm(fetch, workers=N)` where `fetch` awaits 20 ms per item, 2000 items, 3.13:
|
|
112
|
+
|
|
113
|
+
| workers | 1 | 10 | 100 | 1000 |
|
|
114
|
+
|---|---|---|---|---|
|
|
115
|
+
| time | 41.3 s | 4.21 s | 0.44 s | 0.08 s |
|
|
116
|
+
|
|
117
|
+
Wall time is the waiting time divided by the pool size until the fixed cost of the
|
|
118
|
+
pool (about 40 µs per item on one thread) takes over. The sync runtime's speed is
|
|
119
|
+
unchanged by the scheduler rework of this phase: 2.50 s for the 1,000,000-item
|
|
120
|
+
pipeline against 2.52 s in the Phase 1 baseline.
|
|
Binary file
|
|
Binary file
|