dash 4.5.1__tar.gz → 4.5.2__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.
- {dash-4.5.1 → dash-4.5.2}/MANIFEST.in +1 -2
- {dash-4.5.1/dash.egg-info → dash-4.5.2}/PKG-INFO +4 -4
- {dash-4.5.1 → dash-4.5.2}/dash/_callback.py +7 -3
- {dash-4.5.1 → dash-4.5.2}/dash/_callback_context.py +2 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_dash_renderer.py +2 -2
- {dash-4.5.1 → dash-4.5.2}/dash/_jupyter.py +5 -5
- {dash-4.5.1 → dash-4.5.2}/dash/_pages.py +5 -2
- {dash-4.5.1 → dash-4.5.2}/dash/_patch.py +1 -1
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/local.py +66 -20
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/redis.py +36 -15
- {dash-4.5.1 → dash-4.5.2}/dash/_stream_hub.py +50 -5
- {dash-4.5.1 → dash-4.5.2}/dash/_watch.py +6 -2
- {dash-4.5.1 → dash-4.5.2}/dash/backends/_fastapi.py +57 -19
- {dash-4.5.1 → dash-4.5.2}/dash/backends/_quart.py +4 -6
- {dash-4.5.1 → dash-4.5.2}/dash/backends/_utils.py +25 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash-renderer/build/dash_renderer.dev.js +87 -65
- dash-4.5.2/dash/dash-renderer/build/dash_renderer.min.js +2 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash.py +1 -1
- dash-4.5.2/dash/dash_table/async-table.js +3 -0
- dash-4.5.2/dash/dash_table/async-table.js.map +1 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/bundle.js +1 -1
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/bundle.js.map +1 -1
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/demo.js +1 -1
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/demo.js.map +1 -1
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/package-info.json +1 -1
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-datepicker.js +1 -1
- dash-4.5.2/dash/dcc/async-datepicker.js.map +1 -0
- dash-4.5.2/dash/dcc/async-dropdown.js.map +1 -0
- dash-4.5.2/dash/dcc/async-graph.js +2 -0
- dash-4.5.2/dash/dcc/async-graph.js.map +1 -0
- dash-4.5.2/dash/dcc/async-highlight.js.map +1 -0
- dash-4.5.2/dash/dcc/async-markdown.js +2 -0
- dash-4.5.2/dash/dcc/async-markdown.js.map +1 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-slider.js +1 -1
- dash-4.5.2/dash/dcc/async-slider.js.map +1 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-upload.js +1 -1
- dash-4.5.2/dash/dcc/async-upload.js.map +1 -0
- dash-4.5.2/dash/dcc/dash_core_components-shared.js +2 -0
- dash-4.5.2/dash/dcc/dash_core_components-shared.js.map +1 -0
- dash-4.5.2/dash/dcc/dash_core_components.js +3 -0
- dash-4.5.2/dash/dcc/dash_core_components.js.map +1 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/package-info.json +6 -6
- {dash-4.5.1 → dash-4.5.2}/dash/development/_r_components_generation.py +15 -8
- {dash-4.5.1 → dash-4.5.2}/dash/html/package-info.json +1 -1
- dash-4.5.2/dash/labextension/install.json +4 -0
- dash-4.5.2/dash/labextension/package.json +90 -0
- dash-4.5.2/dash/labextension/static/509.2689f229a2807e6b1434.js +1 -0
- dash-4.5.2/dash/labextension/static/remoteEntry.1be6ee42c6daa22f9f45.js +1 -0
- dash-4.5.2/dash/labextension/static/style.js +4 -0
- dash-4.5.2/dash/labextension/static/third-party-licenses.json +16 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/plugin.py +1 -1
- dash-4.5.2/dash/version.py +1 -0
- {dash-4.5.1 → dash-4.5.2/dash.egg-info}/PKG-INFO +4 -4
- {dash-4.5.1 → dash-4.5.2}/dash.egg-info/SOURCES.txt +5 -1
- {dash-4.5.1 → dash-4.5.2}/dash.egg-info/requires.txt +3 -3
- {dash-4.5.1 → dash-4.5.2}/requirements/celery.txt +2 -2
- {dash-4.5.1 → dash-4.5.2}/requirements/ci.txt +1 -1
- {dash-4.5.1 → dash-4.5.2}/setup.py +7 -3
- dash-4.5.1/dash/dash-renderer/build/dash_renderer.min.js +0 -2
- dash-4.5.1/dash/dash_table/async-table.js +0 -3
- dash-4.5.1/dash/dash_table/async-table.js.map +0 -1
- dash-4.5.1/dash/dcc/async-datepicker.js.map +0 -1
- dash-4.5.1/dash/dcc/async-dropdown.js.map +0 -1
- dash-4.5.1/dash/dcc/async-graph.js +0 -2
- dash-4.5.1/dash/dcc/async-graph.js.map +0 -1
- dash-4.5.1/dash/dcc/async-highlight.js.map +0 -1
- dash-4.5.1/dash/dcc/async-markdown.js +0 -3
- dash-4.5.1/dash/dcc/async-markdown.js.map +0 -1
- dash-4.5.1/dash/dcc/async-slider.js.map +0 -1
- dash-4.5.1/dash/dcc/async-upload.js.map +0 -1
- dash-4.5.1/dash/dcc/dash_core_components-shared.js +0 -2
- dash-4.5.1/dash/dcc/dash_core_components-shared.js.map +0 -1
- dash-4.5.1/dash/dcc/dash_core_components.js +0 -3
- dash-4.5.1/dash/dcc/dash_core_components.js.map +0 -1
- dash-4.5.1/dash/labextension/dist/dash-jupyterlab.tgz +0 -0
- dash-4.5.1/dash/labextension/package.json +0 -46
- dash-4.5.1/dash/version.py +0 -1
- {dash-4.5.1 → dash-4.5.2}/LICENSE +0 -0
- {dash-4.5.1 → dash-4.5.2}/README.md +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_callback_signing.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_compression.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_configs.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_get_app.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_get_paths.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_grouping.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_hooks.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_layout_utils.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_no_update.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_obsolete.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_plotly_cli.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_remount.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/_codec.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/_engine.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/_env.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/_persistence.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/_polling.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/_transport.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/base.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_shared_storage/diskcache.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_streaming.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_utils.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/_validate.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/backends/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/backends/_flask.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/backends/base_server.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/backends/ws.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/background_callback/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/background_callback/_proxy_set_props.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/background_callback/managers/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/background_callback/managers/celery_manager.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/background_callback/managers/diskcache_manager.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash-renderer/build/dash-stream-worker.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash-renderer/build/dash-ws-worker.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash-renderer/build/react-shim.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/.gitkeep +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/DataTable.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/Format.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/FormatTemplate.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/_imports_.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/async-export.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/async-export.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/async-export.js.map +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/async-highlight.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/async-highlight.js.map +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/async-table.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/clipboard_test.2006415142.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/commons.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/commons.js.map +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/dash_table_queries_test.793109876.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/dateCoercion_test.962579238.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/dateValidation_test.371405921.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/derivedFragmentStyles_test.1414718214.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/derivedSelectedRows_test.191006642.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/derivedViewport_test.1205034743.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/edges_test.967237579.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/editColumnNames.2728755743.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/exportUtils_tests.2912917026.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/exportUtils_tests.2912917026.js.map +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/formatting_test.841259566.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/index.html +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/isEditable_test.3783358896.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/lexeme_test.1119087106.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/loadingState.3432615788.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/metadata.json +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/multi_columns_syntactic_tree.2997507671.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/numberCoercion_test.1793174015.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/numberValidation_test.2162365126.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/query_syntactic_tree_test.3221830692.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/reconcile_test.474626241.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/runtime.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/runtime.js.map +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/single_column_syntactic_tree_test.654853628.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/sorting_test.2769206697.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/table_clipboard_helper_test.53776781.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/table_clipboard_helper_test.53776781.js.map +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/table_update_test.2311585578.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/textCoercion_test.2622183371.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dash_table/textValidation_test.63529138.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/.gitkeep +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Button.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Checklist.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Clipboard.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/ConfirmDialog.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/ConfirmDialogProvider.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/DatePickerRange.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/DatePickerSingle.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Download.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Dropdown.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Geolocation.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Graph.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Input.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Interval.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Link.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Loading.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Location.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Markdown.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/RadioItems.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/RangeSlider.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Slider.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Store.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Tab.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Tabs.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Textarea.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Tooltip.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/Upload.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/_imports_.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-datepicker.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-dropdown.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-dropdown.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-highlight.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-markdown.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-mathjax.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-slider.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/async-upload.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/dash_core_components-shared.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/dash_core_components.js.LICENSE.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/express.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/metadata.json +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dcc/proptypes.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/dependencies.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/polyfill@7.12.1.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/prop-types@15.8.1.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/prop-types@15.8.1.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react-dom@18.2.0.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react-dom@18.2.0.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react-dom@18.3.1.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react-dom@18.3.1.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react-dom@19.2.4.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react-dom@19.2.4.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react@18.2.0.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react@18.2.0.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react@18.3.1.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react@18.3.1.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react@19.2.4.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/deps/react@19.2.4.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/_all_keywords.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/_collect_nodes.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/_generate_prop_types.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/_jl_components_generation.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/_py_components_generation.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/_py_prop_typing.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/base_component.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/build_process.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/component_generator.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/development/update_components.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/exceptions.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/extract-meta.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/favicon.ico +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/fingerprint.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/.gitkeep +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/A.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Abbr.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Acronym.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Address.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Area.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Article.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Aside.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Audio.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/B.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Base.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Basefont.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Bdi.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Bdo.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Big.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Blink.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Blockquote.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Br.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Button.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Canvas.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Caption.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Center.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Cite.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Code.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Col.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Colgroup.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Content.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Data.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Datalist.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Dd.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Del.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Details.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Dfn.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Dialog.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Div.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Dl.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Dt.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Em.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Embed.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Fieldset.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Figcaption.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Figure.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Font.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Footer.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Form.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Frame.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Frameset.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/H1.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/H2.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/H3.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/H4.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/H5.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/H6.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Header.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Hgroup.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Hr.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/I.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Iframe.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Img.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Ins.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Kbd.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Keygen.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Label.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Legend.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Li.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Link.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Main.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/MapEl.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Mark.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Marquee.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Meta.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Meter.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Nav.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Nobr.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Noscript.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/ObjectEl.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Ol.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Optgroup.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Option.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Output.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/P.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Param.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Picture.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Plaintext.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Pre.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Progress.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Q.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Rb.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Rp.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Rt.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Rtc.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Ruby.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/S.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Samp.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Script.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Section.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Select.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Shadow.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Slot.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Small.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Source.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Spacer.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Span.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Strike.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Strong.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Sub.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Summary.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Sup.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Table.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Tbody.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Td.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Template.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Textarea.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Tfoot.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Th.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Thead.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Time.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Title.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Tr.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Track.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/U.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Ul.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Var.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Video.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Wbr.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/Xmp.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/_imports_.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/dash_html_components.min.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/dash_html_components.min.js.map +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/html/metadata.json +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/_configure.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/_decorator.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/_server.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/resources/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/resources/base.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/resources/resource_clientside_callbacks.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/resources/resource_components.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/resources/resource_layout.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/resources/resource_page_layout.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/resources/resource_pages.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/base.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/callback_adapter.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/callback_adapter_collection.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/callback_utils.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/descriptions/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/descriptions/base.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/descriptions/description_background_callbacks.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/descriptions/description_docstring.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/descriptions/description_outputs.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/base.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/input_descriptions/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/input_descriptions/base.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/input_descriptions/description_component_props.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/input_descriptions/description_docstrings.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/input_descriptions/description_html_labels.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/input_descriptions/description_pattern_matching.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/schema_callback_type_annotations.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/schema_component_proptypes.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/schema_component_proptypes_overrides.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/input_schemas/schema_pattern_matching.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/output_schemas/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/output_schemas/schema_callback_response.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/prop_roles.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/results/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/results/base.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/results/result_dataframe.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/results/result_plotly_figure.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/tool_background_tasks.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/tool_decorated_mcp_functions.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/tool_get_dash_component.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/primitives/tools/tools_callbacks.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/tasks/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/tasks/tasks.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/types/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/types/callback_types.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/types/component_types.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/types/exceptions.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/types/protocol.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/mcp/types/typing_utils.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/nbextension/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/nbextension/dash.json +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/nbextension/main.js +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/py.typed +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/resources.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/__init__.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/application_runners.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/browser.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/composite.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/consts.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/dash_page.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/errors.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/newhooks.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/testing/wait.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash/types.py +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash.egg-info/dependency_links.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash.egg-info/entry_points.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/dash.egg-info/top_level.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/ag-grid.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/async.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/cloud.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/compress.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/dev.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/diskcache.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/fastapi.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/install.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/quart.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/redis.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/shared_storage.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/requirements/testing.txt +0 -0
- {dash-4.5.1 → dash-4.5.2}/setup.cfg +0 -0
|
@@ -10,6 +10,5 @@ include dash/html/*
|
|
|
10
10
|
include dash/dash_table/*
|
|
11
11
|
include dash/dash-renderer/build/*.js
|
|
12
12
|
include dash/dash-renderer/build/*.map
|
|
13
|
-
|
|
14
|
-
include dash/labextension/package.json
|
|
13
|
+
graft dash/labextension
|
|
15
14
|
include dash/py.typed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dash
|
|
3
|
-
Version: 4.5.
|
|
3
|
+
Version: 4.5.2
|
|
4
4
|
Summary: A Python framework for building reactive web-apps. Developed by Plotly.
|
|
5
5
|
Home-page: https://plotly.com/dash
|
|
6
6
|
Author: Chris Parmer
|
|
@@ -74,7 +74,7 @@ Requires-Dist: pytest-rerunfailures; extra == "ci"
|
|
|
74
74
|
Requires-Dist: pytest-timeout; extra == "ci"
|
|
75
75
|
Requires-Dist: jupyterlab<4.0.0; extra == "ci"
|
|
76
76
|
Requires-Dist: pyright==1.1.414; extra == "ci"
|
|
77
|
-
Requires-Dist: mypy==
|
|
77
|
+
Requires-Dist: mypy==2.4.1; extra == "ci"
|
|
78
78
|
Provides-Extra: dev
|
|
79
79
|
Requires-Dist: coloredlogs>=15.0.1; extra == "dev"
|
|
80
80
|
Requires-Dist: fire>=0.4.0; extra == "dev"
|
|
@@ -93,8 +93,8 @@ Requires-Dist: psutil>=5.8.0; extra == "testing"
|
|
|
93
93
|
Requires-Dist: dash_testing_stub>=0.0.2; extra == "testing"
|
|
94
94
|
Provides-Extra: celery
|
|
95
95
|
Requires-Dist: redis<=8.1.0,>=3.5.3; extra == "celery"
|
|
96
|
-
Requires-Dist: kombu<5.
|
|
97
|
-
Requires-Dist: celery[redis]<5.
|
|
96
|
+
Requires-Dist: kombu<5.8.0; extra == "celery"
|
|
97
|
+
Requires-Dist: celery[redis]<5.8.0,>=5.1.2; extra == "celery"
|
|
98
98
|
Provides-Extra: diskcache
|
|
99
99
|
Requires-Dist: diskcache>=5.2.1; extra == "diskcache"
|
|
100
100
|
Requires-Dist: multiprocess>=0.70.12; extra == "diskcache"
|
|
@@ -796,6 +796,7 @@ def _prepare_response(
|
|
|
796
796
|
component_ids: dict = collections.defaultdict(dict)
|
|
797
797
|
|
|
798
798
|
if has_output:
|
|
799
|
+
is_no_update = NoUpdate.is_no_update(output_value)
|
|
799
800
|
if not multi:
|
|
800
801
|
output_value, output_spec = [output_value], [output_spec]
|
|
801
802
|
flat_output_values = output_value
|
|
@@ -804,13 +805,13 @@ def _prepare_response(
|
|
|
804
805
|
# For multi-output, allow top-level collection to be
|
|
805
806
|
# list or tuple
|
|
806
807
|
output_value = list(output_value)
|
|
807
|
-
if
|
|
808
|
+
if is_no_update:
|
|
808
809
|
flat_output_values = [output_value]
|
|
809
810
|
else:
|
|
810
811
|
# Flatten grouping and validate grouping structure
|
|
811
812
|
flat_output_values = flatten_grouping(output_value, output)
|
|
812
813
|
|
|
813
|
-
if not
|
|
814
|
+
if not is_no_update:
|
|
814
815
|
_validate.validate_multi_return(
|
|
815
816
|
output_spec, flat_output_values, callback_id
|
|
816
817
|
)
|
|
@@ -828,7 +829,7 @@ def _prepare_response(
|
|
|
828
829
|
component_ids[id_str][prop] = vali
|
|
829
830
|
|
|
830
831
|
else:
|
|
831
|
-
if output_value is not None:
|
|
832
|
+
if output_value is not None and not NoUpdate.is_no_update(output_value):
|
|
832
833
|
raise InvalidCallbackReturnValue(
|
|
833
834
|
f"No-output callback received return value: {output_value}"
|
|
834
835
|
)
|
|
@@ -1205,6 +1206,9 @@ def register_callback(
|
|
|
1205
1206
|
return
|
|
1206
1207
|
if frame is not None:
|
|
1207
1208
|
yield frame
|
|
1209
|
+
response = {"multi": True}
|
|
1210
|
+
if _set_side_update(callback_ctx, response):
|
|
1211
|
+
yield response
|
|
1208
1212
|
yield {"done": True}
|
|
1209
1213
|
finally:
|
|
1210
1214
|
await user_gen.aclose()
|
|
@@ -8,6 +8,7 @@ from dash.backends.ws import DashWebsocketCallback
|
|
|
8
8
|
|
|
9
9
|
from . import exceptions
|
|
10
10
|
from ._get_app import get_app
|
|
11
|
+
from ._no_update import NoUpdate
|
|
11
12
|
from ._utils import AttributeDict, stringify_id
|
|
12
13
|
|
|
13
14
|
context_value: contextvars.ContextVar[
|
|
@@ -386,3 +387,4 @@ def set_props(component_id: typing.Union[str, dict], props: dict):
|
|
|
386
387
|
else:
|
|
387
388
|
# Batch for response (existing behavior)
|
|
388
389
|
callback_context.set_props(component_id, props)
|
|
390
|
+
return NoUpdate()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
from typing import Any, List, Dict
|
|
3
3
|
|
|
4
|
-
__version__ = "3.5.
|
|
4
|
+
__version__ = "3.5.5"
|
|
5
5
|
|
|
6
6
|
_available_react_versions = {"18.3.1", "18.2.0", "19.2.4"}
|
|
7
7
|
_available_reactdom_versions = {"18.3.1", "18.2.0", "19.2.4"}
|
|
@@ -85,7 +85,7 @@ _js_dist = [
|
|
|
85
85
|
{
|
|
86
86
|
"relative_package_path": "dash-renderer/build/dash_renderer.min.js",
|
|
87
87
|
"dev_package_path": "dash-renderer/build/dash_renderer.dev.js",
|
|
88
|
-
"external_url": "https://unpkg.com/dash-renderer@3.5.
|
|
88
|
+
"external_url": "https://unpkg.com/dash-renderer@3.5.5"
|
|
89
89
|
"/build/dash_renderer.min.js",
|
|
90
90
|
"namespace": "dash",
|
|
91
91
|
},
|
|
@@ -14,6 +14,9 @@ from typing import Optional, Any, Literal
|
|
|
14
14
|
from werkzeug.serving import make_server
|
|
15
15
|
|
|
16
16
|
try:
|
|
17
|
+
if "IPython" not in sys.modules:
|
|
18
|
+
# Not inside IPython: skip the heavy imports, they double the cost of `import dash`.
|
|
19
|
+
raise ImportError
|
|
17
20
|
from IPython import get_ipython # type: ignore[attr-defined]
|
|
18
21
|
from IPython.display import IFrame, display, Javascript # type: ignore[import-not-found]
|
|
19
22
|
from IPython.core.display import HTML # type: ignore[import-not-found]
|
|
@@ -250,11 +253,8 @@ class JupyterDash:
|
|
|
250
253
|
by running the following command:
|
|
251
254
|
$ jupyter nbextension list
|
|
252
255
|
|
|
253
|
-
In JupyterLab, this method requires the `@plotly/dash-jupyterlab` labextension
|
|
254
|
-
|
|
255
|
-
jupyter-dash Python package, but JupyterLab must be allowed to rebuild before
|
|
256
|
-
the extension is activated (JupyterLab should automatically detect the
|
|
257
|
-
extension and produce a popup dialog asking for permission to rebuild). You can
|
|
256
|
+
In JupyterLab, this method requires the `@plotly/dash-jupyterlab` labextension,
|
|
257
|
+
which is installed as a prebuilt extension with the dash Python package. You can
|
|
258
258
|
see what JupyterLab extensions are installed by running the following command:
|
|
259
259
|
$ jupyter labextension list
|
|
260
260
|
"""
|
|
@@ -8,6 +8,7 @@ import sys
|
|
|
8
8
|
from fnmatch import fnmatch
|
|
9
9
|
from os.path import isfile, join
|
|
10
10
|
from pathlib import Path
|
|
11
|
+
from typing import Any
|
|
11
12
|
from urllib.parse import parse_qs
|
|
12
13
|
|
|
13
14
|
from . import _validate
|
|
@@ -17,7 +18,7 @@ from ._get_paths import get_relative_path
|
|
|
17
18
|
from ._utils import AttributeDict, get_root_path
|
|
18
19
|
|
|
19
20
|
CONFIG = AttributeDict()
|
|
20
|
-
PAGE_REGISTRY = collections.OrderedDict()
|
|
21
|
+
PAGE_REGISTRY: collections.OrderedDict[str, dict[str, Any]] = collections.OrderedDict()
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
def _infer_image(module):
|
|
@@ -67,8 +68,10 @@ def _infer_path(module_name, template):
|
|
|
67
68
|
if template is None:
|
|
68
69
|
if CONFIG.pages_folder:
|
|
69
70
|
pages_module = str(Path(CONFIG.pages_folder).name)
|
|
71
|
+
# Match the folder name as whole dotted parts, not as a substring.
|
|
70
72
|
path = (
|
|
71
|
-
module_name.
|
|
73
|
+
f".{module_name}.".rpartition(f".{pages_module}.")[-1]
|
|
74
|
+
.strip(".")
|
|
72
75
|
.replace("_", "-")
|
|
73
76
|
.replace(".", "/")
|
|
74
77
|
.lower()
|
|
@@ -158,7 +158,7 @@ class Patch:
|
|
|
158
158
|
|
|
159
159
|
def update(self, E: Any = None, **F) -> None:
|
|
160
160
|
"""Merge a dict or keyword arguments with another dictionary"""
|
|
161
|
-
value = E or {}
|
|
161
|
+
value = dict(E or {})
|
|
162
162
|
value.update(F)
|
|
163
163
|
self._operations.append(_operation("Merge", self._location, value=value))
|
|
164
164
|
|
|
@@ -14,6 +14,7 @@ own owner) pays no socket overhead at all; only extra worker processes proxy.
|
|
|
14
14
|
import asyncio
|
|
15
15
|
import atexit
|
|
16
16
|
import contextlib
|
|
17
|
+
import errno
|
|
17
18
|
import hashlib
|
|
18
19
|
import json
|
|
19
20
|
import os
|
|
@@ -68,7 +69,12 @@ def _tcp_port(namespace: str) -> int:
|
|
|
68
69
|
|
|
69
70
|
def _write_advertisement(addr_path, family, address, token) -> None:
|
|
70
71
|
payload = json.dumps(
|
|
71
|
-
{
|
|
72
|
+
{
|
|
73
|
+
"family": int(family),
|
|
74
|
+
"address": address,
|
|
75
|
+
"token": token,
|
|
76
|
+
"pid": os.getpid(),
|
|
77
|
+
}
|
|
72
78
|
).encode("utf-8")
|
|
73
79
|
tmp = f"{addr_path}.{os.getpid()}.tmp"
|
|
74
80
|
fd = os.open(tmp, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600)
|
|
@@ -92,26 +98,51 @@ def _read_advertisement(addr_path, retries=100, delay=0.05):
|
|
|
92
98
|
raise ConnectionError("shared-storage owner advertisement not found")
|
|
93
99
|
|
|
94
100
|
|
|
95
|
-
def
|
|
101
|
+
def _owner_alive(addr_path: str) -> bool:
|
|
102
|
+
try:
|
|
103
|
+
with open(addr_path, "rb") as f:
|
|
104
|
+
pid = json.loads(f.read().decode("utf-8"))["pid"]
|
|
105
|
+
os.kill(pid, 0)
|
|
106
|
+
except PermissionError:
|
|
107
|
+
return True # the process exists, it is just not ours
|
|
108
|
+
except (OSError, ValueError, KeyError, TypeError):
|
|
109
|
+
return False
|
|
110
|
+
return True
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def _unix_is_stale(path: str, addr_path: Optional[str] = None) -> bool:
|
|
114
|
+
"""Whether the socket file at ``path`` has no owner behind it. An owner
|
|
115
|
+
too busy to accept is alive: taking its socket over would start a second,
|
|
116
|
+
empty store."""
|
|
96
117
|
probe = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
|
97
118
|
probe.settimeout(0.5)
|
|
98
119
|
try:
|
|
99
120
|
probe.connect(path)
|
|
100
121
|
return False # a live owner answered
|
|
101
|
-
except
|
|
102
|
-
return True
|
|
122
|
+
except FileNotFoundError:
|
|
123
|
+
return True
|
|
124
|
+
except ConnectionRefusedError:
|
|
125
|
+
# Linux refuses only when nobody listens. macOS and the BSDs also
|
|
126
|
+
# refuse when the backlog is full, so there the owner's process
|
|
127
|
+
# decides.
|
|
128
|
+
if sys.platform.startswith("linux") or addr_path is None:
|
|
129
|
+
return True
|
|
130
|
+
return not _owner_alive(addr_path)
|
|
131
|
+
except OSError as exc:
|
|
132
|
+
# Not a socket at all, or (a timeout, a full backlog) a busy owner.
|
|
133
|
+
return exc.errno == errno.ENOTSOCK
|
|
103
134
|
finally:
|
|
104
135
|
probe.close()
|
|
105
136
|
|
|
106
137
|
|
|
107
|
-
def _try_bind(namespace: str, sock_path: str):
|
|
138
|
+
def _try_bind(namespace: str, sock_path: str, addr_path: Optional[str] = None):
|
|
108
139
|
"""Try to become the owner. Returns (listen_sock, family, address) or None."""
|
|
109
140
|
if _HAS_AF_UNIX:
|
|
110
141
|
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
|
|
111
142
|
try:
|
|
112
143
|
s.bind(sock_path)
|
|
113
144
|
except OSError:
|
|
114
|
-
if _unix_is_stale(sock_path):
|
|
145
|
+
if _unix_is_stale(sock_path, addr_path):
|
|
115
146
|
try:
|
|
116
147
|
os.unlink(sock_path)
|
|
117
148
|
s.bind(sock_path)
|
|
@@ -122,6 +153,9 @@ def _try_bind(namespace: str, sock_path: str):
|
|
|
122
153
|
s.close()
|
|
123
154
|
return None
|
|
124
155
|
os.chmod(sock_path, 0o600)
|
|
156
|
+
# Listen now, not once the owner is ready to serve: a probe refused
|
|
157
|
+
# while a starting owner recovers its data would take it for stale.
|
|
158
|
+
s.listen(128)
|
|
125
159
|
return s, socket.AF_UNIX, sock_path
|
|
126
160
|
|
|
127
161
|
port = _tcp_port(namespace)
|
|
@@ -132,6 +166,7 @@ def _try_bind(namespace: str, sock_path: str):
|
|
|
132
166
|
except OSError:
|
|
133
167
|
s.close()
|
|
134
168
|
return None
|
|
169
|
+
s.listen(128)
|
|
135
170
|
return s, socket.AF_INET, ("127.0.0.1", port)
|
|
136
171
|
|
|
137
172
|
|
|
@@ -179,24 +214,35 @@ class _Coordinator:
|
|
|
179
214
|
return self._role == "owner"
|
|
180
215
|
|
|
181
216
|
def _elect(self) -> None:
|
|
182
|
-
bound = _try_bind(self._namespace, self._sock_path)
|
|
217
|
+
bound = _try_bind(self._namespace, self._sock_path, self._addr_path)
|
|
183
218
|
if bound:
|
|
184
219
|
listen_sock, family, address = bound
|
|
185
220
|
token = secrets.token_hex(16)
|
|
186
|
-
_write_advertisement(self._addr_path, family, address, token)
|
|
187
221
|
engine = StoreEngine(self._buffer_size)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
self._path
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
222
|
+
try:
|
|
223
|
+
_write_advertisement(self._addr_path, family, address, token)
|
|
224
|
+
if self._mode != "memory":
|
|
225
|
+
assert self._path is not None
|
|
226
|
+
persistence = _Persistence(
|
|
227
|
+
self._path, self._mode, self._flush_interval, engine
|
|
228
|
+
)
|
|
229
|
+
# Recover before serving (so clients see the restored state)
|
|
230
|
+
# and before attaching (so restored keys are not re-marked
|
|
231
|
+
# dirty).
|
|
232
|
+
persistence.recover()
|
|
233
|
+
engine.attach_persistence(persistence)
|
|
234
|
+
persistence.start()
|
|
235
|
+
server = OwnerServer(engine, listen_sock, token)
|
|
236
|
+
server.start()
|
|
237
|
+
except BaseException:
|
|
238
|
+
# The socket already listens: left open, it would pass for a
|
|
239
|
+
# live owner that never answers.
|
|
240
|
+
listen_sock.close()
|
|
241
|
+
engine.close()
|
|
242
|
+
for path in (self._sock_path, self._addr_path):
|
|
243
|
+
with contextlib.suppress(OSError):
|
|
244
|
+
os.unlink(path)
|
|
245
|
+
raise
|
|
200
246
|
self._engine, self._server = engine, server
|
|
201
247
|
self._family, self._address, self._token = family, address, token
|
|
202
248
|
self._role = "owner"
|
|
@@ -45,6 +45,11 @@ _POLL_TIMEOUT = 5.0
|
|
|
45
45
|
_READER_BLOCK_MS = 5000
|
|
46
46
|
_WAKE_TTL_MS = 60_000
|
|
47
47
|
_DEFAULT_URL = "redis://localhost:6379"
|
|
48
|
+
# Connections per client we build (the sync one and each event loop's async
|
|
49
|
+
# one), and how long a call waits for a free one before it fails. redis-py 8
|
|
50
|
+
# caps a plain pool at 100 and raises past that; a blocking pool waits instead.
|
|
51
|
+
_POOL_SIZE = 100
|
|
52
|
+
_POOL_WAIT = 20.0
|
|
48
53
|
|
|
49
54
|
# A topic's keys live this many ttls past its last publish or poll. A poll on a
|
|
50
55
|
# topic with a ttl blocks for at most a third of that lifetime, so a waiting
|
|
@@ -392,7 +397,11 @@ class RedisSharedStorage(BaseSharedStorage):
|
|
|
392
397
|
self._owns_client = False
|
|
393
398
|
else:
|
|
394
399
|
url = url or os.environ.get("REDIS_URL") or _DEFAULT_URL
|
|
395
|
-
self._redis = redis.Redis
|
|
400
|
+
self._redis = redis.Redis(
|
|
401
|
+
connection_pool=redis.BlockingConnectionPool.from_url(
|
|
402
|
+
url, max_connections=_POOL_SIZE, timeout=_POOL_WAIT
|
|
403
|
+
)
|
|
404
|
+
)
|
|
396
405
|
self._owns_client = True
|
|
397
406
|
self._url = url if client is None else None
|
|
398
407
|
self._block_cap = _block_cap_ms(self._redis)
|
|
@@ -412,10 +421,11 @@ class RedisSharedStorage(BaseSharedStorage):
|
|
|
412
421
|
|
|
413
422
|
def close(self) -> None:
|
|
414
423
|
if self._owns_client:
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
424
|
+
for shut in (self._redis.close, self._redis.connection_pool.disconnect):
|
|
425
|
+
try:
|
|
426
|
+
shut()
|
|
427
|
+
except Exception: # pylint: disable=broad-except
|
|
428
|
+
pass
|
|
419
429
|
with self._loops_lock:
|
|
420
430
|
states = list(self._loops.items())
|
|
421
431
|
self._loops.clear()
|
|
@@ -432,17 +442,28 @@ class RedisSharedStorage(BaseSharedStorage):
|
|
|
432
442
|
from redis import asyncio as aredis # type: ignore[import-not-found,import-untyped] # pylint: disable=import-outside-toplevel,import-error
|
|
433
443
|
|
|
434
444
|
if self._url is not None:
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
pool = self._redis.connection_pool
|
|
438
|
-
connection_class = getattr(
|
|
439
|
-
aredis.connection, pool.connection_class.__name__, aredis.Connection
|
|
440
|
-
)
|
|
441
|
-
return aredis.Redis(
|
|
442
|
-
connection_pool=aredis.ConnectionPool(
|
|
443
|
-
connection_class=connection_class, **pool.connection_kwargs
|
|
445
|
+
pool = aredis.BlockingConnectionPool.from_url(
|
|
446
|
+
self._url, max_connections=_POOL_SIZE, timeout=_POOL_WAIT
|
|
444
447
|
)
|
|
445
|
-
|
|
448
|
+
else:
|
|
449
|
+
# Same server and options as the client we were handed, its pool
|
|
450
|
+
# size included. redis-py before 8 defaults that to 2**31: no cap.
|
|
451
|
+
sync_pool = self._redis.connection_pool
|
|
452
|
+
size = getattr(sync_pool, "max_connections", None)
|
|
453
|
+
if not size or size >= 2**31:
|
|
454
|
+
size = _POOL_SIZE
|
|
455
|
+
connection_class = getattr(
|
|
456
|
+
aredis.connection,
|
|
457
|
+
sync_pool.connection_class.__name__,
|
|
458
|
+
aredis.Connection,
|
|
459
|
+
)
|
|
460
|
+
pool = aredis.BlockingConnectionPool(
|
|
461
|
+
connection_class=connection_class,
|
|
462
|
+
max_connections=size,
|
|
463
|
+
timeout=_POOL_WAIT,
|
|
464
|
+
**sync_pool.connection_kwargs,
|
|
465
|
+
)
|
|
466
|
+
return aredis.Redis(connection_pool=pool)
|
|
446
467
|
|
|
447
468
|
def _loop_state(self) -> "_LoopState":
|
|
448
469
|
loop = asyncio.get_running_loop()
|
|
@@ -212,20 +212,34 @@ class Downlink:
|
|
|
212
212
|
self._key = connection_key(connection_id)
|
|
213
213
|
self._token = secrets.token_hex(8)
|
|
214
214
|
self._closed = False
|
|
215
|
+
self._opened = 0.0
|
|
216
|
+
self._refresh: Optional["asyncio.Future[None]"] = None
|
|
215
217
|
with _registry_lock:
|
|
216
218
|
_active_subscriptions.add(self.subscription)
|
|
217
219
|
|
|
218
220
|
def _record(self, is_open: bool) -> Any:
|
|
221
|
+
now = time.time()
|
|
222
|
+
if not self._opened:
|
|
223
|
+
self._opened = now
|
|
219
224
|
return {
|
|
220
225
|
"mode": "stream",
|
|
221
226
|
"open": is_open,
|
|
222
|
-
"at":
|
|
227
|
+
"at": now,
|
|
223
228
|
"token": self._token,
|
|
229
|
+
"opened": self._opened,
|
|
224
230
|
}
|
|
225
231
|
|
|
226
232
|
def _is_mine(self, record: Any) -> bool:
|
|
227
233
|
return isinstance(record, dict) and record.get("token") == self._token
|
|
228
234
|
|
|
235
|
+
def _owns(self, record: Any) -> bool:
|
|
236
|
+
"""The newest downlink of a page owns its record: this one's, or an
|
|
237
|
+
older downlink's that this one replaced."""
|
|
238
|
+
if self._is_mine(record):
|
|
239
|
+
return True
|
|
240
|
+
opened = record.get("opened") if isinstance(record, dict) else None
|
|
241
|
+
return opened is not None and opened < self._opened
|
|
242
|
+
|
|
229
243
|
def _release(self) -> bool:
|
|
230
244
|
"""End the subscription; False if this downlink was already closed."""
|
|
231
245
|
if self._closed:
|
|
@@ -246,12 +260,39 @@ class Downlink:
|
|
|
246
260
|
if not self._release():
|
|
247
261
|
return
|
|
248
262
|
with contextlib.suppress(Exception):
|
|
249
|
-
if self.
|
|
263
|
+
if self._owns(self.storage.get(self._key)):
|
|
250
264
|
self.storage.set(self._key, self._record(False))
|
|
251
265
|
|
|
252
|
-
async def
|
|
266
|
+
async def _akeep_open(self) -> None:
|
|
267
|
+
# An older downlink of this connection closing late reads the record,
|
|
268
|
+
# then writes it closed: two round trips, between which this one may
|
|
269
|
+
# have opened. Checking well inside the grace repairs that before any
|
|
270
|
+
# pump counts the browser as gone.
|
|
271
|
+
while True:
|
|
272
|
+
await asyncio.sleep(DOWNLINK_GRACE / 2)
|
|
273
|
+
self._refresh = asyncio.ensure_future(self._arepair())
|
|
274
|
+
with contextlib.suppress(Exception):
|
|
275
|
+
await asyncio.shield(self._refresh)
|
|
276
|
+
|
|
277
|
+
async def _arepair(self) -> None:
|
|
278
|
+
record = await self.storage.aget(self._key)
|
|
279
|
+
if isinstance(record, dict) and (record.get("open") or not self._owns(record)):
|
|
280
|
+
# Open, or closed by a newer downlink: this one may be a relay
|
|
281
|
+
# whose client is gone, and must not mark the connection alive.
|
|
282
|
+
return
|
|
283
|
+
await self.aopen()
|
|
284
|
+
|
|
285
|
+
async def _arecord_closed(self, keep_open: Optional[asyncio.Task]) -> None:
|
|
286
|
+
if keep_open is not None:
|
|
287
|
+
keep_open.cancel()
|
|
288
|
+
await asyncio.wait({keep_open})
|
|
289
|
+
if self._refresh is not None:
|
|
290
|
+
# A refresh already sent would otherwise land after the closed
|
|
291
|
+
# record and mark this downlink open again.
|
|
292
|
+
with contextlib.suppress(Exception):
|
|
293
|
+
await self._refresh
|
|
253
294
|
with contextlib.suppress(Exception):
|
|
254
|
-
if self.
|
|
295
|
+
if self._owns(await self.storage.aget(self._key)):
|
|
255
296
|
await self.storage.aset(self._key, self._record(False))
|
|
256
297
|
|
|
257
298
|
def envelopes(self) -> Iterator[Any]:
|
|
@@ -270,8 +311,10 @@ class Downlink:
|
|
|
270
311
|
|
|
271
312
|
async def aenvelopes(self) -> AsyncIterator[Any]:
|
|
272
313
|
"""Async counterpart of :meth:`envelopes` for ASGI backends."""
|
|
314
|
+
keep_open = None
|
|
273
315
|
try:
|
|
274
316
|
await self.aopen()
|
|
317
|
+
keep_open = asyncio.ensure_future(self._akeep_open())
|
|
275
318
|
async for seq, message in self.subscription.aiter_with_seq():
|
|
276
319
|
yield {**message, "seq": seq}
|
|
277
320
|
except SharedStorageGap:
|
|
@@ -285,9 +328,11 @@ class Downlink:
|
|
|
285
328
|
# leaving the record open so the pumps never learn the browser
|
|
286
329
|
# left.
|
|
287
330
|
with contextlib.suppress(RuntimeError): # the loop is gone
|
|
288
|
-
task = asyncio.ensure_future(self._arecord_closed())
|
|
331
|
+
task = asyncio.ensure_future(self._arecord_closed(keep_open))
|
|
289
332
|
_closing_downlinks.add(task)
|
|
290
333
|
task.add_done_callback(_closing_downlinks.discard)
|
|
334
|
+
elif keep_open is not None:
|
|
335
|
+
keep_open.cancel()
|
|
291
336
|
|
|
292
337
|
|
|
293
338
|
def _log_downlink_failure(exc: Exception) -> None:
|
|
@@ -17,8 +17,12 @@ def watch(folders, on_change, pattern=None, sleep_time=0.1):
|
|
|
17
17
|
continue
|
|
18
18
|
path = os.path.join(current, f)
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
try:
|
|
21
|
+
new_time = os.stat(path).st_mtime
|
|
22
|
+
except OSError:
|
|
23
|
+
# Gone since os.walk listed it, or a dangling symlink
|
|
24
|
+
# such as an editor lock file.
|
|
25
|
+
continue
|
|
22
26
|
|
|
23
27
|
if new_time > watched[path] > 0:
|
|
24
28
|
on_change(path, new_time, False)
|