perspective-python 5.7.0__tar.gz → 5.8.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.
- {perspective_python-5.7.0 → perspective_python-5.8.0}/Cargo.toml +4 -4
- {perspective_python-5.7.0 → perspective_python-5.8.0}/LICENSE_THIRDPARTY_cargo.yml +10 -3
- {perspective_python-5.7.0 → perspective_python-5.8.0}/PKG-INFO +1 -1
- {perspective_python-5.7.0 → perspective_python-5.8.0}/package.json +1 -1
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/__init__.py +1 -1
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/core/test_async.py +1 -1
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/server/test_server.py +5 -5
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_ports.py +3 -3
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table.py +1 -1
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_view.py +41 -26
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/virtual_servers/test_duckdb.py +73 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/virtual_servers/test_postgres.py +102 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/virtual_servers/__init__.py +13 -2
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/virtual_servers/clickhouse.py +134 -29
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/virtual_servers/duckdb.py +19 -2
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/virtual_servers/postgres.py +25 -11
- perspective_python-5.8.0/perspective/widget/static/perspective-anywidget.js +32 -0
- {perspective_python-5.7.0/perspective_python-5.7.0.data → perspective_python-5.8.0/perspective_python-5.8.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/package.json +2 -2
- perspective_python-5.8.0/perspective_python-5.8.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.59070e44d5310be92f9b.js +1 -0
- perspective_python-5.7.0/perspective_python-5.7.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/remoteEntry.171f5d608294cd6eca9b.js → perspective_python-5.8.0/perspective_python-5.8.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/remoteEntry.70ed69f824a1003142c9.js +1 -1
- {perspective_python-5.7.0 → perspective_python-5.8.0}/pyproject.toml +1 -1
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/client_async.rs +9 -9
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/server/generic_sql_model.rs +37 -8
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/server/virtual_server_sync.rs +17 -0
- perspective_python-5.7.0/perspective/widget/static/perspective-anywidget.js +0 -32
- perspective_python-5.7.0/perspective_python-5.7.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.fd4526d0920091fac632.js +0 -1
- {perspective_python-5.7.0 → perspective_python-5.8.0}/LICENSE.md +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/README.md +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/build.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/docs/index.html +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/docs/lib.md +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/handlers/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/handlers/aiohttp.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/handlers/starlette.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/handlers/tornado.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/templates/exported_widget.html.template +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/async/test_async_client.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/async/test_websocket_client.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/column_paths.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/conftest.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/core/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/multi_threaded/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/multi_threaded/test_derived_threaded.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/multi_threaded/test_multi_threaded.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/server/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/server/test_session.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/arrow/date32.arrow +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/arrow/date64.arrow +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/arrow/dict.arrow +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/arrow/dict_update.arrow +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/arrow/int_float_str.arrow +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/arrow/int_float_str_file.arrow +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/arrow/int_float_str_update.arrow +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/object_sequence.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_column_paths.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_delete.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_derived.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_exception.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_join.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_leaks.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_on_remove.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_remove.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_arrow.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_arrow_nested.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_datetime.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_infer.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_limit.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_numpy.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_page_to_disk.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_pandas.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_polars.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_table_view_table.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_to_arrow.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_to_arrow_lz4.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_to_arrow_zstd.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_to_format.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_to_polars.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_update.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_update_arrow.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_update_pandas.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/table/test_view_expression.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/test_dependencies.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/test_migrate.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/viewer/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/viewer/test_viewer.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/virtual_servers/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/virtual_servers/test_coerce_types.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/virtual_servers/test_data_slice_lifetime.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/virtual_servers/test_hosted_tables.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/virtual_servers/test_polars.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/virtual_servers/test_session_close.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/widget/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/widget/test_anywidget_smoke.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/widget/test_widget.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/widget/test_widget_html_export.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/widget/test_widget_pandas.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/virtual_servers/polars.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/widget/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/widget/static/perspective-anywidget.css +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/widget/viewer/__init__.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/widget/viewer/viewer.py +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/widget/viewer/viewer_traitlets.py +0 -0
- {perspective_python-5.7.0/perspective_python-5.7.0.data → perspective_python-5.8.0/perspective_python-5.8.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/install.json +0 -0
- {perspective_python-5.7.0/perspective_python-5.7.0.data → perspective_python-5.8.0/perspective_python-5.8.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/523.b91ca71cb7f8d97d5967.js +0 -0
- {perspective_python-5.7.0/perspective_python-5.7.0.data → perspective_python-5.8.0/perspective_python-5.8.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/style.js +0 -0
- {perspective_python-5.7.0/perspective_python-5.7.0.data → perspective_python-5.8.0/perspective_python-5.8.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/third-party-licenses.json +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/client_sync.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/mod.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/pandas.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/polars.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/proxy_session.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/pyarrow.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/table_data.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/client/update_data.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/lib.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/migrate.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/py_async.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/py_err.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/server/mod.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/server/server_async.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/server/server_sync.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/server/session_async.rs +0 -0
- {perspective_python-5.7.0 → perspective_python-5.8.0}/src/server/session_sync.rs +0 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
[package]
|
|
14
14
|
name = "perspective-python"
|
|
15
|
-
version = "5.
|
|
15
|
+
version = "5.8.0"
|
|
16
16
|
edition = "2024"
|
|
17
17
|
description = "Interactive data grid, pivot table and charts for large, real-time and streaming datasets, with a Jupyter widget and WebSocket server."
|
|
18
18
|
repository = "https://github.com/perspective-dev/perspective"
|
|
@@ -57,9 +57,9 @@ crate-type = ["cdylib"]
|
|
|
57
57
|
pyo3-build-config = "0.29.0"
|
|
58
58
|
|
|
59
59
|
[dependencies]
|
|
60
|
-
perspective-client = { version = "5.
|
|
61
|
-
perspective-migrate = { version = "5.
|
|
62
|
-
perspective-server = { version = "5.
|
|
60
|
+
perspective-client = { version = "5.8.0" }
|
|
61
|
+
perspective-migrate = { version = "5.8.0" }
|
|
62
|
+
perspective-server = { version = "5.8.0" }
|
|
63
63
|
bytes = "1.10.1"
|
|
64
64
|
chrono = "0.4"
|
|
65
65
|
macro_rules_attribute = "0.2.2"
|
|
@@ -4980,21 +4980,21 @@ third_party_libraries:
|
|
|
4980
4980
|
|
|
4981
4981
|
END OF TERMS AND CONDITIONS
|
|
4982
4982
|
- package_name: perspective-client
|
|
4983
|
-
package_version: 5.
|
|
4983
|
+
package_version: 5.8.0
|
|
4984
4984
|
repository: https://github.com/perspective-dev/perspective
|
|
4985
4985
|
license: Apache-2.0
|
|
4986
4986
|
licenses:
|
|
4987
4987
|
- license: Apache-2.0
|
|
4988
4988
|
text: "# Apache License\n\n_Version 2.0, January 2004_ \n_<<http://www.apache.org/licenses/>>_\n\n### Terms and Conditions for use, reproduction, and distribution\n\n#### 1. Definitions\n\n“License” shall mean the terms and conditions for use, reproduction, and\ndistribution as defined by Sections 1 through 9 of this document.\n\n“Licensor” shall mean the copyright owner or entity authorized by the copyright\nowner that is granting the License.\n\n“Legal Entity” shall mean the union of the acting entity and all other entities\nthat control, are controlled by, or are under common control with that entity.\nFor the purposes of this definition, “control” means **(i)** the power, direct or\nindirect, to cause the direction or management of such entity, whether by\ncontract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the\noutstanding shares, or **(iii)** beneficial ownership of such entity.\n\n“You” (or “Your”) shall mean an individual or Legal Entity exercising\npermissions granted by this License.\n\n“Source” form shall mean the preferred form for making modifications, including\nbut not limited to software source code, documentation source, and configuration\nfiles.\n\n“Object” form shall mean any form resulting from mechanical transformation or\ntranslation of a Source form, including but not limited to compiled object code,\ngenerated documentation, and conversions to other media types.\n\n“Work” shall mean the work of authorship, whether in Source or Object form, made\navailable under the License, as indicated by a copyright notice that is included\nin or attached to the work (an example is provided in the Appendix below).\n\n“Derivative Works” shall mean any work, whether in Source or Object form, that\nis based on (or derived from) the Work and for which the editorial revisions,\nannotations, elaborations, or other modifications represent, as a whole, an\noriginal work of authorship. For the purposes of this License, Derivative Works\nshall not include works that remain separable from, or merely link (or bind by\nname) to the interfaces of, the Work and Derivative Works thereof.\n\n“Contribution” shall mean any work of authorship, including the original version\nof the Work and any modifications or additions to that Work or Derivative Works\nthereof, that is intentionally submitted to Licensor for inclusion in the Work\nby the copyright owner or by an individual or Legal Entity authorized to submit\non behalf of the copyright owner. For the purposes of this definition,\n“submitted” means any form of electronic, verbal, or written communication sent\nto the Licensor or its representatives, including but not limited to\ncommunication on electronic mailing lists, source code control systems, and\nissue tracking systems that are managed by, or on behalf of, the Licensor for\nthe purpose of discussing and improving the Work, but excluding communication\nthat is conspicuously marked or otherwise designated in writing by the copyright\nowner as “Not a Contribution.”\n\n“Contributor” shall mean Licensor and any individual or Legal Entity on behalf\nof whom a Contribution has been received by Licensor and subsequently\nincorporated within the Work.\n\n#### 2. Grant of Copyright License\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable copyright license to reproduce, prepare Derivative Works of,\npublicly display, publicly perform, sublicense, and distribute the Work and such\nDerivative Works in Source or Object form.\n\n#### 3. Grant of Patent License\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable (except as stated in this section) patent license to make, have\nmade, use, offer to sell, sell, import, and otherwise transfer the Work, where\nsuch license applies only to those patent claims licensable by such Contributor\nthat are necessarily infringed by their Contribution(s) alone or by combination\nof their Contribution(s) with the Work to which such Contribution(s) was\nsubmitted. If You institute patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Work or a\nContribution incorporated within the Work constitutes direct or contributory\npatent infringement, then any patent licenses granted to You under this License\nfor that Work shall terminate as of the date such litigation is filed.\n\n#### 4. Redistribution\n\nYou may reproduce and distribute copies of the Work or Derivative Works thereof\nin any medium, with or without modifications, and in Source or Object form,\nprovided that You meet the following conditions:\n\n- **(a)** You must give any other recipients of the Work or Derivative Works a copy of\n this License; and\n- **(b)** You must cause any modified files to carry prominent notices stating that You\n changed the files; and\n- **(c)** You must retain, in the Source form of any Derivative Works that You distribute,\n all copyright, patent, trademark, and attribution notices from the Source form\n of the Work, excluding those notices that do not pertain to any part of the\n Derivative Works; and\n- **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any\n Derivative Works that You distribute must include a readable copy of the\n attribution notices contained within such NOTICE file, excluding those notices\n that do not pertain to any part of the Derivative Works, in at least one of the\n following places: within a NOTICE text file distributed as part of the\n Derivative Works; within the Source form or documentation, if provided along\n with the Derivative Works; or, within a display generated by the Derivative\n Works, if and wherever such third-party notices normally appear. The contents of\n the NOTICE file are for informational purposes only and do not modify the\n License. You may add Your own attribution notices within Derivative Works that\n You distribute, alongside or as an addendum to the NOTICE text from the Work,\n provided that such additional attribution notices cannot be construed as\n modifying the License.\n\nYou may add Your own copyright statement to Your modifications and may provide\nadditional or different license terms and conditions for use, reproduction, or\ndistribution of Your modifications, or for any such Derivative Works as a whole,\nprovided Your use, reproduction, and distribution of the Work otherwise complies\nwith the conditions stated in this License.\n\n#### 5. Submission of Contributions\n\nUnless You explicitly state otherwise, any Contribution intentionally submitted\nfor inclusion in the Work by You to the Licensor shall be under the terms and\nconditions of this License, without any additional terms or conditions.\nNotwithstanding the above, nothing herein shall supersede or modify the terms of\nany separate license agreement you may have executed with Licensor regarding\nsuch Contributions.\n\n#### 6. Trademarks\n\nThis License does not grant permission to use the trade names, trademarks,\nservice marks, or product names of the Licensor, except as required for\nreasonable and customary use in describing the origin of the Work and\nreproducing the content of the NOTICE file.\n\n#### 7. Disclaimer of Warranty\n\nUnless required by applicable law or agreed to in writing, Licensor provides the\nWork (and each Contributor provides its Contributions) on an “AS IS” BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,\nincluding, without limitation, any warranties or conditions of TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are\nsolely responsible for determining the appropriateness of using or\nredistributing the Work and assume any risks associated with Your exercise of\npermissions under this License.\n\n#### 8. Limitation of Liability\n\nIn no event and under no legal theory, whether in tort (including negligence),\ncontract, or otherwise, unless required by applicable law (such as deliberate\nand grossly negligent acts) or agreed to in writing, shall any Contributor be\nliable to You for damages, including any direct, indirect, special, incidental,\nor consequential damages of any character arising as a result of this License or\nout of the use or inability to use the Work (including but not limited to\ndamages for loss of goodwill, work stoppage, computer failure or malfunction, or\nany and all other commercial damages or losses), even if such Contributor has\nbeen advised of the possibility of such damages.\n\n#### 9. Accepting Warranty or Additional Liability\n\nWhile redistributing the Work or Derivative Works thereof, You may choose to\noffer, and charge a fee for, acceptance of support, warranty, indemnity, or\nother liability obligations and/or rights consistent with this License. However,\nin accepting such obligations, You may act only on Your own behalf and on Your\nsole responsibility, not on behalf of any other Contributor, and only if You\nagree to indemnify, defend, and hold each Contributor harmless for any liability\nincurred by, or claims asserted against, such Contributor by reason of your\naccepting any such warranty or additional liability.\n\n_END OF TERMS AND CONDITIONS_\n\n### APPENDIX: How to apply the Apache License to your work\n\nTo apply the Apache License to your work, attach the following boilerplate\nnotice, with the fields enclosed by brackets `[]` replaced with your own\nidentifying information. (Don't include the brackets!) The text should be\nenclosed in the appropriate comment syntax for the file format. We also\nrecommend that a file or class name and description of purpose be included on\nthe same “printed page” as the copyright notice for easier identification within\nthird-party archives.\n\n Copyright 2019 The Perspective Authors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"
|
|
4989
4989
|
- package_name: perspective-migrate
|
|
4990
|
-
package_version: 5.
|
|
4990
|
+
package_version: 5.8.0
|
|
4991
4991
|
repository: https://github.com/perspective-dev/perspective
|
|
4992
4992
|
license: Apache-2.0
|
|
4993
4993
|
licenses:
|
|
4994
4994
|
- license: Apache-2.0
|
|
4995
4995
|
text: "# Apache License\n\n_Version 2.0, January 2004_ \n_<<http://www.apache.org/licenses/>>_\n\n### Terms and Conditions for use, reproduction, and distribution\n\n#### 1. Definitions\n\n“License” shall mean the terms and conditions for use, reproduction, and\ndistribution as defined by Sections 1 through 9 of this document.\n\n“Licensor” shall mean the copyright owner or entity authorized by the copyright\nowner that is granting the License.\n\n“Legal Entity” shall mean the union of the acting entity and all other entities\nthat control, are controlled by, or are under common control with that entity.\nFor the purposes of this definition, “control” means **(i)** the power, direct or\nindirect, to cause the direction or management of such entity, whether by\ncontract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the\noutstanding shares, or **(iii)** beneficial ownership of such entity.\n\n“You” (or “Your”) shall mean an individual or Legal Entity exercising\npermissions granted by this License.\n\n“Source” form shall mean the preferred form for making modifications, including\nbut not limited to software source code, documentation source, and configuration\nfiles.\n\n“Object” form shall mean any form resulting from mechanical transformation or\ntranslation of a Source form, including but not limited to compiled object code,\ngenerated documentation, and conversions to other media types.\n\n“Work” shall mean the work of authorship, whether in Source or Object form, made\navailable under the License, as indicated by a copyright notice that is included\nin or attached to the work (an example is provided in the Appendix below).\n\n“Derivative Works” shall mean any work, whether in Source or Object form, that\nis based on (or derived from) the Work and for which the editorial revisions,\nannotations, elaborations, or other modifications represent, as a whole, an\noriginal work of authorship. For the purposes of this License, Derivative Works\nshall not include works that remain separable from, or merely link (or bind by\nname) to the interfaces of, the Work and Derivative Works thereof.\n\n“Contribution” shall mean any work of authorship, including the original version\nof the Work and any modifications or additions to that Work or Derivative Works\nthereof, that is intentionally submitted to Licensor for inclusion in the Work\nby the copyright owner or by an individual or Legal Entity authorized to submit\non behalf of the copyright owner. For the purposes of this definition,\n“submitted” means any form of electronic, verbal, or written communication sent\nto the Licensor or its representatives, including but not limited to\ncommunication on electronic mailing lists, source code control systems, and\nissue tracking systems that are managed by, or on behalf of, the Licensor for\nthe purpose of discussing and improving the Work, but excluding communication\nthat is conspicuously marked or otherwise designated in writing by the copyright\nowner as “Not a Contribution.”\n\n“Contributor” shall mean Licensor and any individual or Legal Entity on behalf\nof whom a Contribution has been received by Licensor and subsequently\nincorporated within the Work.\n\n#### 2. Grant of Copyright License\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable copyright license to reproduce, prepare Derivative Works of,\npublicly display, publicly perform, sublicense, and distribute the Work and such\nDerivative Works in Source or Object form.\n\n#### 3. Grant of Patent License\n\nSubject to the terms and conditions of this License, each Contributor hereby\ngrants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,\nirrevocable (except as stated in this section) patent license to make, have\nmade, use, offer to sell, sell, import, and otherwise transfer the Work, where\nsuch license applies only to those patent claims licensable by such Contributor\nthat are necessarily infringed by their Contribution(s) alone or by combination\nof their Contribution(s) with the Work to which such Contribution(s) was\nsubmitted. If You institute patent litigation against any entity (including a\ncross-claim or counterclaim in a lawsuit) alleging that the Work or a\nContribution incorporated within the Work constitutes direct or contributory\npatent infringement, then any patent licenses granted to You under this License\nfor that Work shall terminate as of the date such litigation is filed.\n\n#### 4. Redistribution\n\nYou may reproduce and distribute copies of the Work or Derivative Works thereof\nin any medium, with or without modifications, and in Source or Object form,\nprovided that You meet the following conditions:\n\n- **(a)** You must give any other recipients of the Work or Derivative Works a copy of\n this License; and\n- **(b)** You must cause any modified files to carry prominent notices stating that You\n changed the files; and\n- **(c)** You must retain, in the Source form of any Derivative Works that You distribute,\n all copyright, patent, trademark, and attribution notices from the Source form\n of the Work, excluding those notices that do not pertain to any part of the\n Derivative Works; and\n- **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any\n Derivative Works that You distribute must include a readable copy of the\n attribution notices contained within such NOTICE file, excluding those notices\n that do not pertain to any part of the Derivative Works, in at least one of the\n following places: within a NOTICE text file distributed as part of the\n Derivative Works; within the Source form or documentation, if provided along\n with the Derivative Works; or, within a display generated by the Derivative\n Works, if and wherever such third-party notices normally appear. The contents of\n the NOTICE file are for informational purposes only and do not modify the\n License. You may add Your own attribution notices within Derivative Works that\n You distribute, alongside or as an addendum to the NOTICE text from the Work,\n provided that such additional attribution notices cannot be construed as\n modifying the License.\n\nYou may add Your own copyright statement to Your modifications and may provide\nadditional or different license terms and conditions for use, reproduction, or\ndistribution of Your modifications, or for any such Derivative Works as a whole,\nprovided Your use, reproduction, and distribution of the Work otherwise complies\nwith the conditions stated in this License.\n\n#### 5. Submission of Contributions\n\nUnless You explicitly state otherwise, any Contribution intentionally submitted\nfor inclusion in the Work by You to the Licensor shall be under the terms and\nconditions of this License, without any additional terms or conditions.\nNotwithstanding the above, nothing herein shall supersede or modify the terms of\nany separate license agreement you may have executed with Licensor regarding\nsuch Contributions.\n\n#### 6. Trademarks\n\nThis License does not grant permission to use the trade names, trademarks,\nservice marks, or product names of the Licensor, except as required for\nreasonable and customary use in describing the origin of the Work and\nreproducing the content of the NOTICE file.\n\n#### 7. Disclaimer of Warranty\n\nUnless required by applicable law or agreed to in writing, Licensor provides the\nWork (and each Contributor provides its Contributions) on an “AS IS” BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,\nincluding, without limitation, any warranties or conditions of TITLE,\nNON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are\nsolely responsible for determining the appropriateness of using or\nredistributing the Work and assume any risks associated with Your exercise of\npermissions under this License.\n\n#### 8. Limitation of Liability\n\nIn no event and under no legal theory, whether in tort (including negligence),\ncontract, or otherwise, unless required by applicable law (such as deliberate\nand grossly negligent acts) or agreed to in writing, shall any Contributor be\nliable to You for damages, including any direct, indirect, special, incidental,\nor consequential damages of any character arising as a result of this License or\nout of the use or inability to use the Work (including but not limited to\ndamages for loss of goodwill, work stoppage, computer failure or malfunction, or\nany and all other commercial damages or losses), even if such Contributor has\nbeen advised of the possibility of such damages.\n\n#### 9. Accepting Warranty or Additional Liability\n\nWhile redistributing the Work or Derivative Works thereof, You may choose to\noffer, and charge a fee for, acceptance of support, warranty, indemnity, or\nother liability obligations and/or rights consistent with this License. However,\nin accepting such obligations, You may act only on Your own behalf and on Your\nsole responsibility, not on behalf of any other Contributor, and only if You\nagree to indemnify, defend, and hold each Contributor harmless for any liability\nincurred by, or claims asserted against, such Contributor by reason of your\naccepting any such warranty or additional liability.\n\n_END OF TERMS AND CONDITIONS_\n\n### APPENDIX: How to apply the Apache License to your work\n\nTo apply the Apache License to your work, attach the following boilerplate\nnotice, with the fields enclosed by brackets `[]` replaced with your own\nidentifying information. (Don't include the brackets!) The text should be\nenclosed in the appropriate comment syntax for the file format. We also\nrecommend that a file or class name and description of purpose be included on\nthe same “printed page” as the copyright notice for easier identification within\nthird-party archives.\n\n Copyright 2019 The Perspective Authors\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n"
|
|
4996
4996
|
- package_name: perspective-server
|
|
4997
|
-
package_version: 5.
|
|
4997
|
+
package_version: 5.8.0
|
|
4998
4998
|
repository: https://github.com/perspective-dev/perspective
|
|
4999
4999
|
license: Apache-2.0
|
|
5000
5000
|
licenses:
|
|
@@ -8384,6 +8384,13 @@ third_party_libraries:
|
|
|
8384
8384
|
of your accepting any such warranty or additional liability.
|
|
8385
8385
|
|
|
8386
8386
|
END OF TERMS AND CONDITIONS
|
|
8387
|
+
- package_name: serde-wasm-bindgen
|
|
8388
|
+
package_version: 0.6.5
|
|
8389
|
+
repository: https://github.com/RReverser/serde-wasm-bindgen
|
|
8390
|
+
license: MIT
|
|
8391
|
+
licenses:
|
|
8392
|
+
- license: MIT
|
|
8393
|
+
text: "MIT License\r\n\r\nCopyright (c) 2019 Cloudflare, Inc.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n"
|
|
8387
8394
|
- package_name: serde_bytes
|
|
8388
8395
|
package_version: 0.11.19
|
|
8389
8396
|
repository: https://github.com/serde-rs/bytes
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
# ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
11
11
|
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
12
12
|
|
|
13
|
-
__version__ = "5.
|
|
13
|
+
__version__ = "5.8.0"
|
|
14
14
|
__all__ = [
|
|
15
15
|
"_jupyter_labextension_paths",
|
|
16
16
|
"Server",
|
{perspective_python-5.7.0 → perspective_python-5.8.0}/perspective/tests/server/test_server.py
RENAMED
|
@@ -425,7 +425,7 @@ class TestServer(object):
|
|
|
425
425
|
def test_server_on_update_rows(self, sentinel):
|
|
426
426
|
s = sentinel(0)
|
|
427
427
|
|
|
428
|
-
def update_callback(port_id, delta):
|
|
428
|
+
def update_callback(port_id, delta, reset):
|
|
429
429
|
table = Table(delta)
|
|
430
430
|
assert table.size() == 1
|
|
431
431
|
assert table.schema() == {"a": "integer", "b": "string"}
|
|
@@ -459,7 +459,7 @@ class TestServer(object):
|
|
|
459
459
|
def test_server_on_update_rows_with_port_id(self, sentinel):
|
|
460
460
|
s = sentinel(0)
|
|
461
461
|
|
|
462
|
-
def update_callback(port_id, delta):
|
|
462
|
+
def update_callback(port_id, delta, reset):
|
|
463
463
|
table = Table(delta)
|
|
464
464
|
assert table.size() == 1
|
|
465
465
|
assert table.schema() == {"a": "integer", "b": "string"}
|
|
@@ -525,7 +525,7 @@ class TestServer(object):
|
|
|
525
525
|
def test_server_remove_update(self, sentinel):
|
|
526
526
|
s = sentinel(0)
|
|
527
527
|
|
|
528
|
-
def update_callback(port_id, delta):
|
|
528
|
+
def update_callback(port_id, delta, reset):
|
|
529
529
|
s.set(s.get() + 1)
|
|
530
530
|
|
|
531
531
|
# create a table and view using client
|
|
@@ -706,7 +706,7 @@ class TestServer(object):
|
|
|
706
706
|
def test_server_on_update_rows_with_port_id_through_wire_API(self, sentinel):
|
|
707
707
|
s = sentinel(0)
|
|
708
708
|
|
|
709
|
-
def update_callback(port_id, delta):
|
|
709
|
+
def update_callback(port_id, delta, reset):
|
|
710
710
|
table = Table(delta)
|
|
711
711
|
assert table.size() == 1
|
|
712
712
|
assert table.schema() == {"a": "integer", "b": "string"}
|
|
@@ -808,7 +808,7 @@ class TestServer(object):
|
|
|
808
808
|
def test_server_remove_update_through_wire_API(self, sentinel):
|
|
809
809
|
s = sentinel(0)
|
|
810
810
|
|
|
811
|
-
def update_callback(port_id, delta):
|
|
811
|
+
def update_callback(port_id, delta, reset):
|
|
812
812
|
s.set(s.get() + 1)
|
|
813
813
|
|
|
814
814
|
# create a table and view using client
|
|
@@ -106,7 +106,7 @@ class TestPorts(object):
|
|
|
106
106
|
port: [{"a": port, "b": str(port), "c": True}] for port in ports_to_update
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
def callback(port_id, delta):
|
|
109
|
+
def callback(port_id, delta, reset):
|
|
110
110
|
assert port_id in ports_to_update
|
|
111
111
|
_t = Table(delta)
|
|
112
112
|
_v = _t.view()
|
|
@@ -157,13 +157,13 @@ class TestPorts(object):
|
|
|
157
157
|
|
|
158
158
|
# when the client updates, check whether the port id matches that
|
|
159
159
|
# of the server, and complete the test.
|
|
160
|
-
def client_callback(port_id, delta):
|
|
160
|
+
def client_callback(port_id, delta, reset):
|
|
161
161
|
if port_id == client_port:
|
|
162
162
|
print("UPDATING SERVER")
|
|
163
163
|
server.update(delta, port_id=server_port_for_client)
|
|
164
164
|
|
|
165
165
|
# when the server updates, pass the update back to the client
|
|
166
|
-
def server_callback(port_id, delta):
|
|
166
|
+
def server_callback(port_id, delta, reset):
|
|
167
167
|
print("UPDATING CLIENT")
|
|
168
168
|
assert port_id == server_port_for_client
|
|
169
169
|
assert server.size() == 8
|
|
@@ -876,7 +876,7 @@ class TestView(object):
|
|
|
876
876
|
# 2 here should result in null var because the group size is 1
|
|
877
877
|
update_data = {"a": [15.12, 9.102, 0.99, 12.8], "b": [1, 0, 1, 2]}
|
|
878
878
|
|
|
879
|
-
def cb1(port_id, delta):
|
|
879
|
+
def cb1(port_id, delta, reset):
|
|
880
880
|
table2 = Table(delta)
|
|
881
881
|
view2 = table2.view()
|
|
882
882
|
result = view2.to_columns()
|
|
@@ -1025,7 +1025,7 @@ class TestView(object):
|
|
|
1025
1025
|
"c": [0, 4, 1, 6],
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
|
-
def cb1(port_id, delta):
|
|
1028
|
+
def cb1(port_id, delta, reset):
|
|
1029
1029
|
table2 = Table(delta)
|
|
1030
1030
|
view2 = table2.view()
|
|
1031
1031
|
result = view2.to_columns()
|
|
@@ -1236,7 +1236,7 @@ class TestView(object):
|
|
|
1236
1236
|
# 2 here should result in null stddev because the group size is 1
|
|
1237
1237
|
update_data = {"a": [15.12, 9.102, 0.99, 12.8], "b": [1, 0, 1, 2]}
|
|
1238
1238
|
|
|
1239
|
-
def cb1(port_id, delta):
|
|
1239
|
+
def cb1(port_id, delta, reset):
|
|
1240
1240
|
table2 = Table(delta)
|
|
1241
1241
|
view2 = table2.view()
|
|
1242
1242
|
result = view2.to_columns()
|
|
@@ -1385,7 +1385,7 @@ class TestView(object):
|
|
|
1385
1385
|
"c": [0, 4, 1, 6],
|
|
1386
1386
|
}
|
|
1387
1387
|
|
|
1388
|
-
def cb1(port_id, delta):
|
|
1388
|
+
def cb1(port_id, delta, reset):
|
|
1389
1389
|
table2 = Table(delta)
|
|
1390
1390
|
view2 = table2.view()
|
|
1391
1391
|
result = view2.to_columns()
|
|
@@ -1931,7 +1931,7 @@ class TestView(object):
|
|
|
1931
1931
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
|
|
1932
1932
|
update_data = {"a": [5], "b": [6]}
|
|
1933
1933
|
|
|
1934
|
-
def cb1(port_id, delta):
|
|
1934
|
+
def cb1(port_id, delta, reset):
|
|
1935
1935
|
compare_delta(delta, update_data)
|
|
1936
1936
|
|
|
1937
1937
|
tbl = Table(data)
|
|
@@ -1939,11 +1939,26 @@ class TestView(object):
|
|
|
1939
1939
|
view.on_update(cb1, mode="row")
|
|
1940
1940
|
tbl.update(update_data)
|
|
1941
1941
|
|
|
1942
|
+
def test_view_row_delta_reset_flag(self):
|
|
1943
|
+
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
|
|
1944
|
+
steps = []
|
|
1945
|
+
|
|
1946
|
+
def cb1(port_id, delta, reset):
|
|
1947
|
+
steps.append(reset)
|
|
1948
|
+
|
|
1949
|
+
tbl = Table(data, index="a")
|
|
1950
|
+
view = tbl.view()
|
|
1951
|
+
view.on_update(cb1, mode="row")
|
|
1952
|
+
tbl.update([{"a": 1, "b": 5}])
|
|
1953
|
+
tbl.replace(data)
|
|
1954
|
+
tbl.clear()
|
|
1955
|
+
assert steps == [False, True, True]
|
|
1956
|
+
|
|
1942
1957
|
def test_view_row_delta_zero_column_subset(self, util):
|
|
1943
1958
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
|
|
1944
1959
|
update_data = {"a": [5], "b": [6]}
|
|
1945
1960
|
|
|
1946
|
-
def cb1(port_id, delta):
|
|
1961
|
+
def cb1(port_id, delta, reset):
|
|
1947
1962
|
compare_delta(delta, {"b": [6]})
|
|
1948
1963
|
|
|
1949
1964
|
tbl = Table(data)
|
|
@@ -1954,7 +1969,7 @@ class TestView(object):
|
|
|
1954
1969
|
def test_view_row_delta_zero_from_schema(self, util):
|
|
1955
1970
|
update_data = {"a": [5], "b": [6]}
|
|
1956
1971
|
|
|
1957
|
-
def cb1(port_id, delta):
|
|
1972
|
+
def cb1(port_id, delta, reset):
|
|
1958
1973
|
compare_delta(delta, update_data)
|
|
1959
1974
|
|
|
1960
1975
|
tbl = Table({"a": "integer", "b": "integer"})
|
|
@@ -1965,7 +1980,7 @@ class TestView(object):
|
|
|
1965
1980
|
def test_view_row_delta_zero_from_schema_column_subset(self, util):
|
|
1966
1981
|
update_data = {"a": [5], "b": [6]}
|
|
1967
1982
|
|
|
1968
|
-
def cb1(port_id, delta):
|
|
1983
|
+
def cb1(port_id, delta, reset):
|
|
1969
1984
|
compare_delta(delta, {"b": [6]})
|
|
1970
1985
|
|
|
1971
1986
|
tbl = Table({"a": "integer", "b": "integer"})
|
|
@@ -1977,7 +1992,7 @@ class TestView(object):
|
|
|
1977
1992
|
def test_view_row_delta_zero_from_schema_filtered(self, util):
|
|
1978
1993
|
update_data = {"a": [8, 9, 10, 11], "b": [1, 2, 3, 4]}
|
|
1979
1994
|
|
|
1980
|
-
def cb1(port_id, delta):
|
|
1995
|
+
def cb1(port_id, delta, reset):
|
|
1981
1996
|
compare_delta(delta, {"a": [11], "b": [4]})
|
|
1982
1997
|
|
|
1983
1998
|
tbl = Table({"a": "integer", "b": "integer"})
|
|
@@ -1988,7 +2003,7 @@ class TestView(object):
|
|
|
1988
2003
|
def test_view_row_delta_zero_from_schema_indexed(self, util):
|
|
1989
2004
|
update_data = {"a": ["a", "b", "a"], "b": [1, 2, 3]}
|
|
1990
2005
|
|
|
1991
|
-
def cb1(port_id, delta):
|
|
2006
|
+
def cb1(port_id, delta, reset):
|
|
1992
2007
|
compare_delta(delta, {"a": ["a", "b"], "b": [3, 2]})
|
|
1993
2008
|
|
|
1994
2009
|
tbl = Table({"a": "string", "b": "integer"}, index="a")
|
|
@@ -2001,7 +2016,7 @@ class TestView(object):
|
|
|
2001
2016
|
def test_view_row_delta_zero_from_schema_indexed_filtered(self, util):
|
|
2002
2017
|
update_data = {"a": [8, 9, 10, 11, 11], "b": [1, 2, 3, 4, 5]}
|
|
2003
2018
|
|
|
2004
|
-
def cb1(port_id, delta):
|
|
2019
|
+
def cb1(port_id, delta, reset):
|
|
2005
2020
|
compare_delta(delta, {"a": [11], "b": [5]})
|
|
2006
2021
|
|
|
2007
2022
|
tbl = Table({"a": "integer", "b": "integer"}, index="a")
|
|
@@ -2013,7 +2028,7 @@ class TestView(object):
|
|
|
2013
2028
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
|
|
2014
2029
|
update_data = {"a": [5], "b": [6]}
|
|
2015
2030
|
|
|
2016
|
-
def cb1(port_id, delta):
|
|
2031
|
+
def cb1(port_id, delta, reset):
|
|
2017
2032
|
compare_delta(delta, {"a": [9, 5], "b": [12, 6]})
|
|
2018
2033
|
|
|
2019
2034
|
tbl = Table(data)
|
|
@@ -2029,7 +2044,7 @@ class TestView(object):
|
|
|
2029
2044
|
def test_view_row_delta_one_from_schema(self, util):
|
|
2030
2045
|
update_data = {"a": [1, 2, 3, 4, 5], "b": [6, 7, 8, 9, 10]}
|
|
2031
2046
|
|
|
2032
|
-
def cb1(port_id, delta):
|
|
2047
|
+
def cb1(port_id, delta, reset):
|
|
2033
2048
|
compare_delta(delta, {"a": [15, 1, 2, 3, 4, 5], "b": [40, 6, 7, 8, 9, 10]})
|
|
2034
2049
|
|
|
2035
2050
|
tbl = Table({"a": "integer", "b": "integer"})
|
|
@@ -2040,7 +2055,7 @@ class TestView(object):
|
|
|
2040
2055
|
def test_view_row_delta_one_from_schema_sorted(self, util):
|
|
2041
2056
|
update_data = {"a": [1, 2, 3, 4, 5], "b": [6, 7, 8, 9, 10]}
|
|
2042
2057
|
|
|
2043
|
-
def cb1(port_id, delta):
|
|
2058
|
+
def cb1(port_id, delta, reset):
|
|
2044
2059
|
compare_delta(delta, {"a": [15, 5, 4, 3, 2, 1], "b": [40, 10, 9, 8, 7, 6]})
|
|
2045
2060
|
|
|
2046
2061
|
tbl = Table({"a": "integer", "b": "integer"})
|
|
@@ -2051,7 +2066,7 @@ class TestView(object):
|
|
|
2051
2066
|
def test_view_row_delta_one_from_schema_filtered(self, util):
|
|
2052
2067
|
update_data = {"a": [1, 2, 3, 4, 5], "b": [6, 7, 8, 9, 10]}
|
|
2053
2068
|
|
|
2054
|
-
def cb1(port_id, delta):
|
|
2069
|
+
def cb1(port_id, delta, reset):
|
|
2055
2070
|
compare_delta(delta, {"a": [9, 4, 5], "b": [19, 9, 10]})
|
|
2056
2071
|
|
|
2057
2072
|
tbl = Table({"a": "integer", "b": "integer"})
|
|
@@ -2062,7 +2077,7 @@ class TestView(object):
|
|
|
2062
2077
|
def test_view_row_delta_one_from_schema_sorted_filtered(self, util):
|
|
2063
2078
|
update_data = {"a": [1, 2, 3, 4, 5], "b": [6, 7, 8, 9, 10]}
|
|
2064
2079
|
|
|
2065
|
-
def cb1(port_id, delta):
|
|
2080
|
+
def cb1(port_id, delta, reset):
|
|
2066
2081
|
compare_delta(delta, {"a": [9, 5, 4], "b": [19, 10, 9]})
|
|
2067
2082
|
|
|
2068
2083
|
tbl = Table({"a": "integer", "b": "integer"})
|
|
@@ -2073,7 +2088,7 @@ class TestView(object):
|
|
|
2073
2088
|
def test_view_row_delta_one_from_schema_indexed(self, util):
|
|
2074
2089
|
update_data = {"a": [1, 2, 3, 4, 5, 5, 4], "b": [6, 7, 8, 9, 10, 11, 12]}
|
|
2075
2090
|
|
|
2076
|
-
def cb1(port_id, delta):
|
|
2091
|
+
def cb1(port_id, delta, reset):
|
|
2077
2092
|
compare_delta(delta, {"a": [15, 1, 2, 3, 4, 5], "b": [44, 6, 7, 8, 12, 11]})
|
|
2078
2093
|
|
|
2079
2094
|
tbl = Table({"a": "integer", "b": "integer"}, index="a")
|
|
@@ -2086,7 +2101,7 @@ class TestView(object):
|
|
|
2086
2101
|
def test_view_row_delta_one_from_schema_sorted_indexed(self, util):
|
|
2087
2102
|
update_data = {"a": [1, 2, 3, 4, 5, 5, 4], "b": [6, 7, 8, 9, 10, 11, 12]}
|
|
2088
2103
|
|
|
2089
|
-
def cb1(port_id, delta):
|
|
2104
|
+
def cb1(port_id, delta, reset):
|
|
2090
2105
|
compare_delta(delta, {"a": [15, 4, 5, 3, 2, 1], "b": [44, 12, 11, 8, 7, 6]})
|
|
2091
2106
|
|
|
2092
2107
|
tbl = Table({"a": "integer", "b": "integer"}, index="a")
|
|
@@ -2099,7 +2114,7 @@ class TestView(object):
|
|
|
2099
2114
|
def test_view_row_delta_one_from_schema_filtered_indexed(self, util):
|
|
2100
2115
|
update_data = {"a": [1, 2, 3, 4, 5, 5, 4], "b": [6, 7, 8, 9, 10, 11, 12]}
|
|
2101
2116
|
|
|
2102
|
-
def cb1(port_id, delta):
|
|
2117
|
+
def cb1(port_id, delta, reset):
|
|
2103
2118
|
compare_delta(delta, {"a": [9, 4, 5], "b": [23, 12, 11]})
|
|
2104
2119
|
|
|
2105
2120
|
tbl = Table({"a": "integer", "b": "integer"}, index="a")
|
|
@@ -2113,7 +2128,7 @@ class TestView(object):
|
|
|
2113
2128
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
|
|
2114
2129
|
update_data = {"a": [5], "b": [6]}
|
|
2115
2130
|
|
|
2116
|
-
def cb1(port_id, delta):
|
|
2131
|
+
def cb1(port_id, delta, reset):
|
|
2117
2132
|
compare_delta(
|
|
2118
2133
|
delta,
|
|
2119
2134
|
{
|
|
@@ -2141,7 +2156,7 @@ class TestView(object):
|
|
|
2141
2156
|
def test_view_row_delta_two_from_schema(self, util):
|
|
2142
2157
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
|
|
2143
2158
|
|
|
2144
|
-
def cb1(port_id, delta):
|
|
2159
|
+
def cb1(port_id, delta, reset):
|
|
2145
2160
|
compare_delta(
|
|
2146
2161
|
delta,
|
|
2147
2162
|
{
|
|
@@ -2160,7 +2175,7 @@ class TestView(object):
|
|
|
2160
2175
|
def test_view_row_delta_two_from_schema_indexed(self, util):
|
|
2161
2176
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}, {"a": 3, "b": 5}]
|
|
2162
2177
|
|
|
2163
|
-
def cb1(port_id, delta):
|
|
2178
|
+
def cb1(port_id, delta, reset):
|
|
2164
2179
|
compare_delta(
|
|
2165
2180
|
delta,
|
|
2166
2181
|
{
|
|
@@ -2180,7 +2195,7 @@ class TestView(object):
|
|
|
2180
2195
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
|
|
2181
2196
|
update_data = {"a": [5], "b": [6]}
|
|
2182
2197
|
|
|
2183
|
-
def cb1(port_id, delta):
|
|
2198
|
+
def cb1(port_id, delta, reset):
|
|
2184
2199
|
compare_delta(
|
|
2185
2200
|
delta,
|
|
2186
2201
|
{
|
|
@@ -2208,7 +2223,7 @@ class TestView(object):
|
|
|
2208
2223
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}, {"a": 3, "b": 5}]
|
|
2209
2224
|
update_data = {"a": [5], "b": [6]}
|
|
2210
2225
|
|
|
2211
|
-
def cb1(port_id, delta):
|
|
2226
|
+
def cb1(port_id, delta, reset):
|
|
2212
2227
|
compare_delta(
|
|
2213
2228
|
delta,
|
|
2214
2229
|
{
|
|
@@ -2235,7 +2250,7 @@ class TestView(object):
|
|
|
2235
2250
|
def test_view_row_delta_two_column_only_from_schema(self, util):
|
|
2236
2251
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}]
|
|
2237
2252
|
|
|
2238
|
-
def cb1(port_id, delta):
|
|
2253
|
+
def cb1(port_id, delta, reset):
|
|
2239
2254
|
compare_delta(
|
|
2240
2255
|
delta,
|
|
2241
2256
|
{
|
|
@@ -2254,7 +2269,7 @@ class TestView(object):
|
|
|
2254
2269
|
def test_view_row_delta_two_column_only_from_schema_indexed(self, util):
|
|
2255
2270
|
data = [{"a": 1, "b": 2}, {"a": 3, "b": 4}, {"a": 3, "b": 5}]
|
|
2256
2271
|
|
|
2257
|
-
def cb1(port_id, delta):
|
|
2272
|
+
def cb1(port_id, delta, reset):
|
|
2258
2273
|
compare_delta(
|
|
2259
2274
|
delta,
|
|
2260
2275
|
{
|
|
@@ -1614,3 +1614,76 @@ class TestDuckDBExpandCollapse:
|
|
|
1614
1614
|
assert view.num_columns() == 2
|
|
1615
1615
|
assert sorted(view.to_columns().keys()) == ["Region", "Sales"]
|
|
1616
1616
|
view.delete()
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
class TestDuckDBHostedTableNames:
|
|
1620
|
+
|
|
1621
|
+
@pytest.fixture
|
|
1622
|
+
def multi(self):
|
|
1623
|
+
db = duckdb.connect()
|
|
1624
|
+
db.execute("CREATE TABLE trades AS SELECT 1 AS a")
|
|
1625
|
+
db.execute("CREATE SCHEMA s; CREATE TABLE s.t AS SELECT 2 AS a")
|
|
1626
|
+
db.execute('CREATE SCHEMA "my schema"')
|
|
1627
|
+
db.execute('CREATE TABLE "my schema"."MyT" AS SELECT 3 AS a')
|
|
1628
|
+
db.execute("ATTACH ':memory:' AS other")
|
|
1629
|
+
db.execute("CREATE TABLE other.main.w AS SELECT 4 AS a")
|
|
1630
|
+
server = DuckDBVirtualServer(db)
|
|
1631
|
+
|
|
1632
|
+
def handle_request(msg):
|
|
1633
|
+
session.handle_request(msg)
|
|
1634
|
+
|
|
1635
|
+
def handle_response(msg):
|
|
1636
|
+
c.handle_response(msg)
|
|
1637
|
+
|
|
1638
|
+
session = server.new_session(handle_response)
|
|
1639
|
+
c = Client(handle_request)
|
|
1640
|
+
yield c
|
|
1641
|
+
session.close()
|
|
1642
|
+
|
|
1643
|
+
def test_lists_every_catalog_and_schema(self, multi):
|
|
1644
|
+
assert sorted(multi.get_hosted_table_names()) == [
|
|
1645
|
+
'memory."my schema".MyT',
|
|
1646
|
+
"memory.s.t",
|
|
1647
|
+
"memory.trades",
|
|
1648
|
+
"other.w",
|
|
1649
|
+
]
|
|
1650
|
+
|
|
1651
|
+
def test_opens_every_table(self, multi):
|
|
1652
|
+
expected = {
|
|
1653
|
+
'memory."my schema".MyT': 3,
|
|
1654
|
+
"memory.s.t": 2,
|
|
1655
|
+
"memory.trades": 1,
|
|
1656
|
+
"other.w": 4,
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
for name, value in expected.items():
|
|
1660
|
+
view = multi.open_table(name).view(columns=["a"])
|
|
1661
|
+
assert view.to_columns() == {"a": [value]}
|
|
1662
|
+
view.delete()
|
|
1663
|
+
|
|
1664
|
+
def test_views_are_not_hosted(self, multi):
|
|
1665
|
+
before = sorted(multi.get_hosted_table_names())
|
|
1666
|
+
view = multi.open_table("memory.trades").view(
|
|
1667
|
+
group_by=["a"], columns=["a"], aggregates={"a": "sum"}
|
|
1668
|
+
)
|
|
1669
|
+
|
|
1670
|
+
assert sorted(multi.get_hosted_table_names()) == before
|
|
1671
|
+
view.delete()
|
|
1672
|
+
|
|
1673
|
+
def test_derived_tables_are_hosted_once(self, multi):
|
|
1674
|
+
view = multi.open_table("memory.s.t").view(
|
|
1675
|
+
group_by=["a"],
|
|
1676
|
+
columns=["a"],
|
|
1677
|
+
aggregates={"a": "sum"},
|
|
1678
|
+
group_rollup_mode="flat",
|
|
1679
|
+
)
|
|
1680
|
+
|
|
1681
|
+
derived = multi.table(view, name="s.t GROUP BY a")
|
|
1682
|
+
names = multi.get_hosted_table_names()
|
|
1683
|
+
assert names.count("s.t GROUP BY a") == 1
|
|
1684
|
+
assert multi.open_table("s.t GROUP BY a").view(columns=["a"]).to_columns() == {
|
|
1685
|
+
"a": [2]
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
derived.delete()
|
|
1689
|
+
view.delete()
|
|
@@ -963,3 +963,105 @@ class TestPostgresCoerceTypes:
|
|
|
963
963
|
assert view.num_rows() == 0
|
|
964
964
|
assert view.to_json() == []
|
|
965
965
|
view.delete()
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
class TestPostgresDerivedTable:
|
|
969
|
+
|
|
970
|
+
def _derive(self, client, name):
|
|
971
|
+
source = client.open_table("psp_test.superstore")
|
|
972
|
+
view = source.view(
|
|
973
|
+
group_by=["Region"],
|
|
974
|
+
columns=["Sales"],
|
|
975
|
+
aggregates={"Sales": "sum"},
|
|
976
|
+
group_rollup_mode="flat",
|
|
977
|
+
)
|
|
978
|
+
|
|
979
|
+
return view, client.table(view, name=name)
|
|
980
|
+
|
|
981
|
+
def test_unsorted_view_of_derived_table(self, client):
|
|
982
|
+
source_view, derived = self._derive(client, "psp_test_derived_unsorted")
|
|
983
|
+
view = derived.view(columns=["Region", "Sales"])
|
|
984
|
+
columns = view.to_columns()
|
|
985
|
+
assert list(columns) == ["Region", "Sales"]
|
|
986
|
+
assert sorted(columns["Region"]) == ["Central", "East", "South", "West"]
|
|
987
|
+
view.delete()
|
|
988
|
+
derived.delete()
|
|
989
|
+
source_view.delete()
|
|
990
|
+
|
|
991
|
+
def test_sorted_view_of_derived_table(self, client):
|
|
992
|
+
source_view, derived = self._derive(client, "psp_test_derived_sorted")
|
|
993
|
+
view = derived.view(columns=["Sales"], sort=[["Sales", "desc"]])
|
|
994
|
+
sales = view.to_columns()["Sales"]
|
|
995
|
+
assert len(sales) == 4
|
|
996
|
+
assert sales == sorted(sales, reverse=True)
|
|
997
|
+
view.delete()
|
|
998
|
+
derived.delete()
|
|
999
|
+
source_view.delete()
|
|
1000
|
+
|
|
1001
|
+
def test_unsorted_view_of_twice_derived_table(self, client):
|
|
1002
|
+
source_view, derived = self._derive(client, "psp_test_derived_once")
|
|
1003
|
+
middle = derived.view(columns=["Region", "Sales"])
|
|
1004
|
+
twice = client.table(middle, name="psp_test_derived_twice")
|
|
1005
|
+
view = twice.view(columns=["Region"])
|
|
1006
|
+
assert sorted(view.to_columns()["Region"]) == [
|
|
1007
|
+
"Central",
|
|
1008
|
+
"East",
|
|
1009
|
+
"South",
|
|
1010
|
+
"West",
|
|
1011
|
+
]
|
|
1012
|
+
view.delete()
|
|
1013
|
+
twice.delete()
|
|
1014
|
+
middle.delete()
|
|
1015
|
+
derived.delete()
|
|
1016
|
+
source_view.delete()
|
|
1017
|
+
|
|
1018
|
+
def test_describe_of_derived_table(self, client):
|
|
1019
|
+
source_view, derived = self._derive(client, "psp_test_derived_describe")
|
|
1020
|
+
result = derived.describe(
|
|
1021
|
+
columns=["Region", "Big"],
|
|
1022
|
+
expressions={"Big": '"Sales" > 100000'},
|
|
1023
|
+
)
|
|
1024
|
+
|
|
1025
|
+
assert result == {
|
|
1026
|
+
"expression_schema": {"Big": "boolean"},
|
|
1027
|
+
"view_schema": {"Region": "string", "Big": "boolean"},
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
derived.delete()
|
|
1031
|
+
source_view.delete()
|
|
1032
|
+
|
|
1033
|
+
def test_ctid_is_not_a_column(self, client):
|
|
1034
|
+
source_view, derived = self._derive(client, "psp_test_derived_ctid")
|
|
1035
|
+
assert derived.schema() == {"Region": "string", "Sales": "float"}
|
|
1036
|
+
view = derived.view(columns=["Region", "Sales"])
|
|
1037
|
+
assert view.schema() == {"Region": "string", "Sales": "float"}
|
|
1038
|
+
assert view.to_csv().splitlines()[0] == "Region,Sales"
|
|
1039
|
+
view.delete()
|
|
1040
|
+
derived.delete()
|
|
1041
|
+
source_view.delete()
|
|
1042
|
+
|
|
1043
|
+
def test_delete_drops_table(self, client, pg_db):
|
|
1044
|
+
source_view, derived = self._derive(client, "psp_test_derived_delete")
|
|
1045
|
+
derived.delete()
|
|
1046
|
+
assert "psp_test_derived_delete" not in client.get_hosted_table_names()
|
|
1047
|
+
source_view.delete()
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
class TestPostgresHostedTableNames:
|
|
1051
|
+
|
|
1052
|
+
@pytest.fixture
|
|
1053
|
+
def quoted(self, pg_db):
|
|
1054
|
+
pg_db.execute('DROP SCHEMA IF EXISTS "psp test" CASCADE')
|
|
1055
|
+
pg_db.execute('CREATE SCHEMA "psp test"')
|
|
1056
|
+
pg_db.execute('CREATE TABLE "psp test"."MyTable" (a INTEGER)')
|
|
1057
|
+
pg_db.execute('INSERT INTO "psp test"."MyTable" VALUES (7)')
|
|
1058
|
+
yield
|
|
1059
|
+
pg_db.execute('DROP SCHEMA "psp test" CASCADE')
|
|
1060
|
+
|
|
1061
|
+
def test_lists_quoted_path(self, client, quoted):
|
|
1062
|
+
assert '"psp test"."MyTable"' in client.get_hosted_table_names()
|
|
1063
|
+
|
|
1064
|
+
def test_opens_quoted_path(self, client, quoted):
|
|
1065
|
+
view = client.open_table('"psp test"."MyTable"').view(columns=["a"])
|
|
1066
|
+
assert view.to_columns() == {"a": [7]}
|
|
1067
|
+
view.delete()
|