perspective-python 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.
- {perspective_python-4.5.1 → perspective_python-4.5.2}/Cargo.toml +4 -4
- {perspective_python-4.5.1 → perspective_python-4.5.2}/LICENSE_THIRDPARTY_cargo.yml +2 -2
- {perspective_python-4.5.1 → perspective_python-4.5.2}/PKG-INFO +2 -1
- {perspective_python-4.5.1 → perspective_python-4.5.2}/package.json +1 -1
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/__init__.py +1 -1
- perspective_python-4.5.2/perspective/tests/table/test_table_page_to_disk.py +304 -0
- {perspective_python-4.5.1/perspective_python-4.5.1.data → perspective_python-4.5.2/perspective_python-4.5.2.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/package.json +2 -2
- perspective_python-4.5.2/perspective_python-4.5.2.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.e28d850f0dfae951483e.js +1 -0
- perspective_python-4.5.2/perspective_python-4.5.2.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/523.0360a021ae2c945ac3c7.js +1 -0
- perspective_python-4.5.1/perspective_python-4.5.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/remoteEntry.d1e215b36e17e7750ce0.js → perspective_python-4.5.2/perspective_python-4.5.2.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/remoteEntry.1173126560437ad8acea.js +1 -1
- {perspective_python-4.5.1 → perspective_python-4.5.2}/pyproject.toml +5 -3
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/client_async.rs +5 -1
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/client_sync.rs +4 -2
- perspective_python-4.5.1/perspective_python-4.5.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.975698f04a1f1689c768.js +0 -1
- perspective_python-4.5.1/perspective_python-4.5.1.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/523.7c9adb21c3d619f7de7f.js +0 -1
- {perspective_python-4.5.1 → perspective_python-4.5.2}/LICENSE.md +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/README.md +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/build.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/docs/index.html +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/docs/lib.md +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/extension/finos-perspective-nbextension.json +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/handlers/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/handlers/aiohttp.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/handlers/starlette.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/handlers/tornado.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/templates/exported_widget.html.template +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/async/test_async_client.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/async/test_websocket_client.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/conftest.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/core/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/core/test_async.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/multi_threaded/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/multi_threaded/test_multi_threaded.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/server/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/server/test_server.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/server/test_session.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/arrow/date32.arrow +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/arrow/date64.arrow +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/arrow/dict.arrow +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/arrow/dict_update.arrow +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/arrow/int_float_str.arrow +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/arrow/int_float_str_file.arrow +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/arrow/int_float_str_update.arrow +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/object_sequence.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_column_paths.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_delete.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_exception.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_join.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_leaks.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_ports.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_remove.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table_arrow.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table_datetime.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table_infer.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table_limit.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table_numpy.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table_pandas.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table_polars.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_table_view_table.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_to_arrow.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_to_arrow_lz4.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_to_format.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_to_polars.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_update.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_update_arrow.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_update_pandas.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_view.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/table/test_view_expression.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/test_dependencies.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/viewer/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/viewer/test_viewer.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/virtual_servers/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/virtual_servers/test_coerce_types.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/virtual_servers/test_duckdb.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/virtual_servers/test_polars.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/widget/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/widget/test_widget.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/tests/widget/test_widget_pandas.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/virtual_servers/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/virtual_servers/clickhouse.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/virtual_servers/duckdb.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/virtual_servers/polars.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/widget/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/widget/viewer/__init__.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/widget/viewer/validate.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/widget/viewer/viewer.py +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/perspective/widget/viewer/viewer_traitlets.py +0 -0
- {perspective_python-4.5.1/perspective_python-4.5.1.data → perspective_python-4.5.2/perspective_python-4.5.2.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/install.json +0 -0
- {perspective_python-4.5.1/perspective_python-4.5.1.data → perspective_python-4.5.2/perspective_python-4.5.2.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/style.js +0 -0
- {perspective_python-4.5.1/perspective_python-4.5.1.data → perspective_python-4.5.2/perspective_python-4.5.2.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/third-party-licenses.json +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/mod.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/pandas.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/polars.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/proxy_session.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/pyarrow.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/table_data.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/client/update_data.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/lib.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/py_async.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/py_err.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/server/generic_sql_model.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/server/mod.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/server/server_async.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/server/server_sync.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/server/session_async.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/server/session_sync.rs +0 -0
- {perspective_python-4.5.1 → perspective_python-4.5.2}/src/server/virtual_server_sync.rs +0 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
[package]
|
|
14
14
|
name = "perspective-python"
|
|
15
|
-
version = "4.5.
|
|
15
|
+
version = "4.5.2"
|
|
16
16
|
edition = "2024"
|
|
17
17
|
description = "A data visualization and analytics component, especially well-suited for large and/or streaming datasets."
|
|
18
18
|
repository = "https://github.com/perspective-dev/perspective"
|
|
@@ -51,14 +51,14 @@ protobuf-src = ["perspective-client/protobuf-src"]
|
|
|
51
51
|
crate-type = ["cdylib"]
|
|
52
52
|
|
|
53
53
|
[build-dependencies]
|
|
54
|
-
cmake = "0.1.
|
|
54
|
+
cmake = "0.1.58"
|
|
55
55
|
num_cpus = "^1.16.0"
|
|
56
56
|
pyo3-build-config = "0.25.1"
|
|
57
57
|
python-config-rs = "0.1.2"
|
|
58
58
|
|
|
59
59
|
[dependencies]
|
|
60
|
-
perspective-client = { version = "4.5.
|
|
61
|
-
perspective-server = { version = "4.5.
|
|
60
|
+
perspective-client = { version = "4.5.2" }
|
|
61
|
+
perspective-server = { version = "4.5.2" }
|
|
62
62
|
bytes = "1.10.1"
|
|
63
63
|
chrono = "0.4"
|
|
64
64
|
macro_rules_attribute = "0.2.2"
|
|
@@ -5180,14 +5180,14 @@ third_party_libraries:
|
|
|
5180
5180
|
|
|
5181
5181
|
END OF TERMS AND CONDITIONS
|
|
5182
5182
|
- package_name: perspective-client
|
|
5183
|
-
package_version: 4.5.
|
|
5183
|
+
package_version: 4.5.2
|
|
5184
5184
|
repository: https://github.com/perspective-dev/perspective
|
|
5185
5185
|
license: Apache-2.0
|
|
5186
5186
|
licenses:
|
|
5187
5187
|
- license: Apache-2.0
|
|
5188
5188
|
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"
|
|
5189
5189
|
- package_name: perspective-server
|
|
5190
|
-
package_version: 4.5.
|
|
5190
|
+
package_version: 4.5.2
|
|
5191
5191
|
repository: https://github.com/perspective-dev/perspective
|
|
5192
5192
|
license: Apache-2.0
|
|
5193
5193
|
licenses:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: perspective-python
|
|
3
|
-
Version: 4.5.
|
|
3
|
+
Version: 4.5.2
|
|
4
4
|
Classifier: Development Status :: 5 - Production/Stable
|
|
5
5
|
Classifier: Programming Language :: Rust
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
@@ -9,6 +9,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
13
|
Classifier: Framework :: Jupyter :: JupyterLab
|
|
13
14
|
Classifier: Framework :: Jupyter :: JupyterLab :: 3
|
|
14
15
|
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
|
|
@@ -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__ = "4.5.
|
|
13
|
+
__version__ = "4.5.2"
|
|
14
14
|
__all__ = [
|
|
15
15
|
"_jupyter_labextension_paths",
|
|
16
16
|
"Server",
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
2
|
+
# ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
|
|
3
|
+
# ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
|
|
4
|
+
# ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
|
|
5
|
+
# ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
|
|
6
|
+
# ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
|
|
7
|
+
# ┃ Copyright (c) 2017, the Perspective Authors. ┃
|
|
8
|
+
# ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
|
|
9
|
+
# ┃ This file is part of the Perspective library, distributed under the terms ┃
|
|
10
|
+
# ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
11
|
+
# ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
12
|
+
|
|
13
|
+
import os
|
|
14
|
+
import tempfile
|
|
15
|
+
|
|
16
|
+
import perspective as psp
|
|
17
|
+
from pytest import mark
|
|
18
|
+
|
|
19
|
+
client = psp.Server().new_local_client()
|
|
20
|
+
Table = client.table
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _perspective_temp_dirs():
|
|
24
|
+
"""All `perspective_*` directories currently in the OS temp directory.
|
|
25
|
+
|
|
26
|
+
`BACKING_STORE_DISK` columns are written to a unique
|
|
27
|
+
`<tempdir>/perspective_<uuid>/` directory.
|
|
28
|
+
"""
|
|
29
|
+
tmp = tempfile.gettempdir()
|
|
30
|
+
try:
|
|
31
|
+
entries = os.listdir(tmp)
|
|
32
|
+
except OSError:
|
|
33
|
+
return set()
|
|
34
|
+
|
|
35
|
+
print(tmp)
|
|
36
|
+
return {
|
|
37
|
+
os.path.join(tmp, e)
|
|
38
|
+
for e in entries
|
|
39
|
+
if e.startswith("perspective_") and os.path.isdir(os.path.join(tmp, e))
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class TestTableOnDisk:
|
|
44
|
+
def test_page_to_disk_schema_and_view(self):
|
|
45
|
+
data = {
|
|
46
|
+
"x": [1, 2, 3, 4],
|
|
47
|
+
"y": ["a", "b", "c", "d"],
|
|
48
|
+
"z": [True, False, True, False],
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
mem = Table(data)
|
|
52
|
+
disk = Table(data, page_to_disk=True)
|
|
53
|
+
assert disk.schema() == mem.schema()
|
|
54
|
+
assert disk.view().to_columns() == mem.view().to_columns()
|
|
55
|
+
|
|
56
|
+
def test_page_to_disk_csv(self):
|
|
57
|
+
data = "x,y,z\n1,a,true\n2,b,false\n3,c,true\n4,d,false"
|
|
58
|
+
tbl = Table(data, page_to_disk=True)
|
|
59
|
+
assert tbl.schema() == {"x": "integer", "y": "string", "z": "boolean"}
|
|
60
|
+
assert tbl.view().to_columns() == {
|
|
61
|
+
"x": [1, 2, 3, 4],
|
|
62
|
+
"y": ["a", "b", "c", "d"],
|
|
63
|
+
"z": [True, False, True, False],
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
def test_page_to_disk_update_indexed(self):
|
|
67
|
+
mem = Table({"x": [1, 2, 3], "y": [1.0, 2.0, 3.0]}, index="x")
|
|
68
|
+
disk = Table(
|
|
69
|
+
{"x": [1, 2, 3], "y": [1.0, 2.0, 3.0]}, index="x", page_to_disk=True
|
|
70
|
+
)
|
|
71
|
+
update = {"x": [2, 4], "y": [20.0, 40.0]}
|
|
72
|
+
mem.update(update)
|
|
73
|
+
disk.update(update)
|
|
74
|
+
assert disk.view().to_columns() == mem.view().to_columns()
|
|
75
|
+
assert disk.size() == mem.size()
|
|
76
|
+
|
|
77
|
+
def test_page_to_disk_group_by_aggregation(self):
|
|
78
|
+
data = {"g": ["a", "b", "a", "b", "a"], "v": [1, 2, 3, 4, 5]}
|
|
79
|
+
mem = Table(data)
|
|
80
|
+
disk = Table(data, page_to_disk=True)
|
|
81
|
+
config = {"group_by": ["g"], "columns": ["v"], "aggregates": {"v": "sum"}}
|
|
82
|
+
assert disk.view(**config).to_columns() == mem.view(**config).to_columns()
|
|
83
|
+
|
|
84
|
+
def test_page_to_disk_arrow_roundtrip(self):
|
|
85
|
+
data = {"x": list(range(100)), "y": [float(i) / 2 for i in range(100)]}
|
|
86
|
+
mem = Table(data)
|
|
87
|
+
disk = Table(data, page_to_disk=True)
|
|
88
|
+
assert disk.view().to_arrow() == mem.view().to_arrow()
|
|
89
|
+
|
|
90
|
+
def test_page_to_disk_creates_backing_files(self):
|
|
91
|
+
before = _perspective_temp_dirs()
|
|
92
|
+
tbl = Table({"x": [1, 2, 3], "y": ["a", "b", "c"]}, page_to_disk=True)
|
|
93
|
+
|
|
94
|
+
# Touch the table so it is not optimized away before we inspect the FS.
|
|
95
|
+
assert tbl.size() == 3
|
|
96
|
+
after = _perspective_temp_dirs()
|
|
97
|
+
new_dirs = after - before
|
|
98
|
+
assert new_dirs, "expected a new perspective_<uuid> directory on disk"
|
|
99
|
+
assert any(os.listdir(d) for d in new_dirs), "expected column files on disk"
|
|
100
|
+
|
|
101
|
+
def test_memory_table_creates_no_backing_files(self):
|
|
102
|
+
before = _perspective_temp_dirs()
|
|
103
|
+
tbl = Table({"x": [1, 2, 3]})
|
|
104
|
+
assert tbl.size() == 3
|
|
105
|
+
after = _perspective_temp_dirs()
|
|
106
|
+
assert after == before, "in-memory table must not write to disk"
|
|
107
|
+
|
|
108
|
+
def test_page_to_disk_growth_forces_resize(self):
|
|
109
|
+
tbl = Table({"x": [0], "y": [0.0]}, index="x", page_to_disk=True)
|
|
110
|
+
n = 50000
|
|
111
|
+
tbl.update({"x": list(range(n)), "y": [float(i) for i in range(n)]})
|
|
112
|
+
assert tbl.size() == n
|
|
113
|
+
cols = tbl.view().to_columns()
|
|
114
|
+
assert cols["x"][0] == 0
|
|
115
|
+
assert cols["x"][-1] == n - 1
|
|
116
|
+
assert cols["y"][-1] == float(n - 1)
|
|
117
|
+
|
|
118
|
+
def test_page_to_disk_clone_keeps_master_files(self):
|
|
119
|
+
# Cloning a disk-backed column (e.g. the masked clone that serializing a
|
|
120
|
+
# table with removed rows performs) must give the clone its OWN backing
|
|
121
|
+
# file. Otherwise the clone aliases — and on teardown `rmfile`s — the
|
|
122
|
+
# master's file, silently unlinking the master's named backing store.
|
|
123
|
+
before = _perspective_temp_dirs()
|
|
124
|
+
tbl = Table(
|
|
125
|
+
{"x": [1, 2, 3, 4], "y": [10.0, 20.0, 30.0, 40.0]},
|
|
126
|
+
index="x",
|
|
127
|
+
page_to_disk=True,
|
|
128
|
+
)
|
|
129
|
+
view = tbl.view()
|
|
130
|
+
new_dirs = _perspective_temp_dirs() - before
|
|
131
|
+
master_dirs = [
|
|
132
|
+
d
|
|
133
|
+
for d in new_dirs
|
|
134
|
+
if not os.path.basename(d).startswith("perspective_expr_")
|
|
135
|
+
]
|
|
136
|
+
assert len(master_dirs) == 1
|
|
137
|
+
master_dir = master_dirs[0]
|
|
138
|
+
master_files = set(os.listdir(master_dir))
|
|
139
|
+
assert master_files, "expected master backing files on disk"
|
|
140
|
+
|
|
141
|
+
# Removing rows triggers a masked clone of the disk master columns.
|
|
142
|
+
tbl.remove([2, 3])
|
|
143
|
+
assert view.to_columns()["x"] == [1, 4]
|
|
144
|
+
# The master's own backing files must survive the clone's teardown.
|
|
145
|
+
survived = set(os.listdir(master_dir))
|
|
146
|
+
assert master_files <= survived, (
|
|
147
|
+
"clone teardown unlinked master backing files: {}".format(
|
|
148
|
+
master_files - survived
|
|
149
|
+
)
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
# And the master must remain usable for subsequent updates.
|
|
153
|
+
tbl.update({"x": [5, 6], "y": [50.0, 60.0]})
|
|
154
|
+
assert sorted(view.to_columns()["x"]) == [1, 4, 5, 6]
|
|
155
|
+
|
|
156
|
+
def test_page_to_disk_larger_dataset_matches_memory(self):
|
|
157
|
+
n = 20000
|
|
158
|
+
data = {
|
|
159
|
+
"i": list(range(n)),
|
|
160
|
+
"f": [float(i) * 1.5 for i in range(n)],
|
|
161
|
+
"s": ["row_{}".format(i % 97) for i in range(n)],
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
mem = Table(data)
|
|
165
|
+
disk = Table(data, page_to_disk=True)
|
|
166
|
+
assert disk.view().to_arrow() == mem.view().to_arrow()
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
def _perspective_expr_dirs():
|
|
170
|
+
"""`perspective_expr_*` directories — the on-disk expression `m_master`."""
|
|
171
|
+
tmp = tempfile.gettempdir()
|
|
172
|
+
try:
|
|
173
|
+
entries = os.listdir(tmp)
|
|
174
|
+
except OSError:
|
|
175
|
+
return set()
|
|
176
|
+
|
|
177
|
+
return {
|
|
178
|
+
os.path.join(tmp, e)
|
|
179
|
+
for e in entries
|
|
180
|
+
if e.startswith("perspective_expr_") and os.path.isdir(os.path.join(tmp, e))
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
class TestTableOnDiskExpressions:
|
|
185
|
+
def test_expression_numeric_equivalence(self):
|
|
186
|
+
data = {"x": [1, 2, 3, 4], "y": [10.0, 20.0, 30.0, 40.0]}
|
|
187
|
+
mem = Table(data)
|
|
188
|
+
disk = Table(data, page_to_disk=True)
|
|
189
|
+
exprs = {"sum": '"x" + "y"', "prod": '"x" * "y"'}
|
|
190
|
+
assert (
|
|
191
|
+
disk.view(expressions=exprs).to_columns()
|
|
192
|
+
== mem.view(expressions=exprs).to_columns()
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
def test_expression_string_equivalence(self):
|
|
196
|
+
data = {"a": ["foo", "bar", "baz"], "b": ["AA", "BB", "CC"]}
|
|
197
|
+
mem = Table(data)
|
|
198
|
+
disk = Table(data, page_to_disk=True)
|
|
199
|
+
exprs = {"up": 'upper("a")', "lo": 'lower("b")'}
|
|
200
|
+
assert (
|
|
201
|
+
disk.view(expressions=exprs).to_columns()
|
|
202
|
+
== mem.view(expressions=exprs).to_columns()
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
def test_expression_with_group_by_equivalence(self):
|
|
206
|
+
data = {"g": ["a", "b", "a", "b"], "v": [1, 2, 3, 4]}
|
|
207
|
+
mem = Table(data)
|
|
208
|
+
disk = Table(data, page_to_disk=True)
|
|
209
|
+
config = {
|
|
210
|
+
"expressions": {"v2": '"v" * 2'},
|
|
211
|
+
"group_by": ["g"],
|
|
212
|
+
"columns": ["v2"],
|
|
213
|
+
"aggregates": {"v2": "sum"},
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
assert disk.view(**config).to_columns() == mem.view(**config).to_columns()
|
|
217
|
+
|
|
218
|
+
def test_expression_master_is_page_to_disk(self):
|
|
219
|
+
before = _perspective_expr_dirs()
|
|
220
|
+
tbl = Table({"x": [1, 2, 3], "y": [10.0, 20.0, 30.0]}, page_to_disk=True)
|
|
221
|
+
view = tbl.view(expressions={"e": '"x" + "y"'})
|
|
222
|
+
assert view.to_columns()["e"] == [11.0, 22.0, 33.0]
|
|
223
|
+
new_dirs = _perspective_expr_dirs() - before
|
|
224
|
+
assert new_dirs, (
|
|
225
|
+
"expected a perspective_expr_<uuid> dir for the expression master"
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
assert any(os.listdir(d) for d in new_dirs), (
|
|
229
|
+
"expected expression backing files on disk"
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
def test_memory_expression_creates_no_expr_dir(self):
|
|
233
|
+
before = _perspective_expr_dirs()
|
|
234
|
+
tbl = Table({"x": [1, 2, 3], "y": [10.0, 20.0, 30.0]})
|
|
235
|
+
view = tbl.view(expressions={"e": '"x" + "y"'})
|
|
236
|
+
assert view.to_columns()["e"] == [11.0, 22.0, 33.0]
|
|
237
|
+
assert _perspective_expr_dirs() == before, (
|
|
238
|
+
"in-memory table must not write expression data to disk"
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
def test_expression_page_to_disk_update_and_larger(self):
|
|
242
|
+
n = 10000
|
|
243
|
+
tbl = Table({"x": [0], "y": [0.0]}, index="x", page_to_disk=True)
|
|
244
|
+
tbl.update({"x": list(range(n)), "y": [float(i) for i in range(n)]})
|
|
245
|
+
cols = tbl.view(expressions={"e": '"x" + "y"'}).to_columns()
|
|
246
|
+
assert cols["e"][0] == 0.0
|
|
247
|
+
assert cols["e"][-1] == float((n - 1) + (n - 1))
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
class TestResidency:
|
|
251
|
+
# The residency manager evicts disk-backed column buffers to their files
|
|
252
|
+
# when over the `PSP_MEMORY_BUDGET` and restores them transparently on
|
|
253
|
+
# access. Under a tiny budget, eviction fires aggressively and data must
|
|
254
|
+
# still round-trip identically to an in-memory table.
|
|
255
|
+
|
|
256
|
+
@mark.skip(reason="No secret hooks in the engine")
|
|
257
|
+
def test_residency_evicts_and_data_is_correct(self):
|
|
258
|
+
stats_fd, stats_path = tempfile.mkstemp(prefix="psp_residency_")
|
|
259
|
+
os.close(stats_fd)
|
|
260
|
+
os.environ["PSP_MEMORY_BUDGET"] = "1024"
|
|
261
|
+
os.environ["PSP_RESIDENCY_STATS_FILE"] = stats_path
|
|
262
|
+
try:
|
|
263
|
+
n = 5000
|
|
264
|
+
data = {
|
|
265
|
+
"x": list(range(n)),
|
|
266
|
+
"y": [float(i) * 1.5 for i in range(n)],
|
|
267
|
+
"s": ["row_{}".format(i % 50) for i in range(n)],
|
|
268
|
+
}
|
|
269
|
+
mem = Table(data)
|
|
270
|
+
disk = Table(data, page_to_disk=True)
|
|
271
|
+
|
|
272
|
+
# Each request is a safepoint that trims to budget; data read back
|
|
273
|
+
# must be correct (round-tripped through evict -> restore).
|
|
274
|
+
assert disk.view().to_columns() == mem.view().to_columns()
|
|
275
|
+
assert disk.view().to_arrow() == mem.view().to_arrow()
|
|
276
|
+
|
|
277
|
+
upd = {
|
|
278
|
+
"x": list(range(n, n + 200)),
|
|
279
|
+
"y": [float(i) for i in range(n, n + 200)],
|
|
280
|
+
"s": ["upd_{}".format(i) for i in range(200)],
|
|
281
|
+
}
|
|
282
|
+
mem.update(upd)
|
|
283
|
+
disk.update(upd)
|
|
284
|
+
assert disk.view().to_columns() == mem.view().to_columns()
|
|
285
|
+
|
|
286
|
+
# An expression view on an evicted disk table must still compute.
|
|
287
|
+
exprs = {"e": '"x" + "y"'}
|
|
288
|
+
assert (
|
|
289
|
+
disk.view(expressions=exprs).to_columns()
|
|
290
|
+
== mem.view(expressions=exprs).to_columns()
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
# Confirm eviction actually occurred (otherwise the test is vacuous).
|
|
294
|
+
with open(stats_path) as f:
|
|
295
|
+
stats = f.read()
|
|
296
|
+
evictions = int(stats.split("evictions=")[1].split()[0])
|
|
297
|
+
assert evictions > 0, "expected evictions under a tiny budget: " + stats
|
|
298
|
+
finally:
|
|
299
|
+
os.environ.pop("PSP_MEMORY_BUDGET", None)
|
|
300
|
+
os.environ.pop("PSP_RESIDENCY_STATS_FILE", None)
|
|
301
|
+
os.remove(stats_path)
|
|
302
|
+
# Drain a safepoint with residency disabled so any evicted stores
|
|
303
|
+
# from other live tables are restored before subsequent tests.
|
|
304
|
+
Table({"_": [0]}).view().to_columns()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perspective-dev/jupyterlab",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "A Jupyterlab extension for the Perspective library, designed to be used with perspective-python.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"_build": {
|
|
65
|
-
"load": "static/remoteEntry.
|
|
65
|
+
"load": "static/remoteEntry.1173126560437ad8acea.js",
|
|
66
66
|
"extension": "./extension",
|
|
67
67
|
"style": "./style"
|
|
68
68
|
}
|