perspective-python 5.8.0__tar.gz → 5.9.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.
Files changed (125) hide show
  1. {perspective_python-5.8.0 → perspective_python-5.9.0}/Cargo.toml +4 -4
  2. {perspective_python-5.8.0 → perspective_python-5.9.0}/LICENSE_THIRDPARTY_cargo.yml +211 -3
  3. {perspective_python-5.8.0 → perspective_python-5.9.0}/PKG-INFO +1 -1
  4. {perspective_python-5.8.0 → perspective_python-5.9.0}/package.json +1 -1
  5. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/__init__.py +3 -1
  6. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_derived.py +42 -5
  7. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_on_remove.py +113 -0
  8. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table.py +18 -0
  9. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_view_table.py +91 -0
  10. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_view.py +205 -15
  11. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/test_migrate.py +26 -1
  12. perspective_python-5.9.0/perspective/widget/static/perspective-anywidget.js +32 -0
  13. {perspective_python-5.8.0/perspective_python-5.8.0.data → perspective_python-5.9.0/perspective_python-5.9.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/package.json +2 -2
  14. perspective_python-5.9.0/perspective_python-5.9.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.56ae64322e7a56c2c5c4.js +1 -0
  15. perspective_python-5.8.0/perspective_python-5.8.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/remoteEntry.70ed69f824a1003142c9.js → perspective_python-5.9.0/perspective_python-5.9.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/remoteEntry.3b94f958ff7ec26c38b5.js +1 -1
  16. {perspective_python-5.8.0 → perspective_python-5.9.0}/pyproject.toml +1 -1
  17. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/client_async.rs +125 -17
  18. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/client_sync.rs +17 -10
  19. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/lib.rs +1 -0
  20. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/migrate.rs +22 -13
  21. perspective_python-5.8.0/perspective/widget/static/perspective-anywidget.js +0 -32
  22. perspective_python-5.8.0/perspective_python-5.8.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.59070e44d5310be92f9b.js +0 -1
  23. {perspective_python-5.8.0 → perspective_python-5.9.0}/LICENSE.md +0 -0
  24. {perspective_python-5.8.0 → perspective_python-5.9.0}/README.md +0 -0
  25. {perspective_python-5.8.0 → perspective_python-5.9.0}/build.rs +0 -0
  26. {perspective_python-5.8.0 → perspective_python-5.9.0}/docs/index.html +0 -0
  27. {perspective_python-5.8.0 → perspective_python-5.9.0}/docs/lib.md +0 -0
  28. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/handlers/__init__.py +0 -0
  29. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/handlers/aiohttp.py +0 -0
  30. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/handlers/starlette.py +0 -0
  31. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/handlers/tornado.py +0 -0
  32. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/templates/exported_widget.html.template +0 -0
  33. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/__init__.py +0 -0
  34. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/async/test_async_client.py +0 -0
  35. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/async/test_websocket_client.py +0 -0
  36. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/column_paths.py +0 -0
  37. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/conftest.py +0 -0
  38. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/core/__init__.py +0 -0
  39. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/core/test_async.py +0 -0
  40. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/multi_threaded/__init__.py +0 -0
  41. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/multi_threaded/test_derived_threaded.py +0 -0
  42. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/multi_threaded/test_multi_threaded.py +0 -0
  43. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/server/__init__.py +0 -0
  44. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/server/test_server.py +0 -0
  45. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/server/test_session.py +0 -0
  46. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/__init__.py +0 -0
  47. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/arrow/date32.arrow +0 -0
  48. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/arrow/date64.arrow +0 -0
  49. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/arrow/dict.arrow +0 -0
  50. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/arrow/dict_update.arrow +0 -0
  51. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/arrow/int_float_str.arrow +0 -0
  52. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/arrow/int_float_str_file.arrow +0 -0
  53. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/arrow/int_float_str_update.arrow +0 -0
  54. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/object_sequence.py +0 -0
  55. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_column_paths.py +0 -0
  56. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_delete.py +0 -0
  57. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_exception.py +0 -0
  58. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_join.py +0 -0
  59. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_leaks.py +0 -0
  60. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_ports.py +0 -0
  61. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_remove.py +0 -0
  62. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_arrow.py +0 -0
  63. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_arrow_nested.py +0 -0
  64. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_datetime.py +0 -0
  65. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_infer.py +0 -0
  66. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_limit.py +0 -0
  67. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_numpy.py +0 -0
  68. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_page_to_disk.py +0 -0
  69. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_pandas.py +0 -0
  70. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_table_polars.py +0 -0
  71. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_to_arrow.py +0 -0
  72. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_to_arrow_lz4.py +0 -0
  73. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_to_arrow_zstd.py +0 -0
  74. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_to_format.py +0 -0
  75. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_to_polars.py +0 -0
  76. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_update.py +0 -0
  77. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_update_arrow.py +0 -0
  78. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_update_pandas.py +0 -0
  79. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/table/test_view_expression.py +0 -0
  80. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/test_dependencies.py +0 -0
  81. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/viewer/__init__.py +0 -0
  82. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/viewer/test_viewer.py +0 -0
  83. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/virtual_servers/__init__.py +0 -0
  84. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/virtual_servers/test_coerce_types.py +0 -0
  85. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/virtual_servers/test_data_slice_lifetime.py +0 -0
  86. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/virtual_servers/test_duckdb.py +0 -0
  87. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/virtual_servers/test_hosted_tables.py +0 -0
  88. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/virtual_servers/test_polars.py +0 -0
  89. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/virtual_servers/test_postgres.py +0 -0
  90. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/virtual_servers/test_session_close.py +0 -0
  91. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/widget/__init__.py +0 -0
  92. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/widget/test_anywidget_smoke.py +0 -0
  93. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/widget/test_widget.py +0 -0
  94. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/widget/test_widget_html_export.py +0 -0
  95. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/tests/widget/test_widget_pandas.py +0 -0
  96. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/virtual_servers/__init__.py +0 -0
  97. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/virtual_servers/clickhouse.py +0 -0
  98. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/virtual_servers/duckdb.py +0 -0
  99. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/virtual_servers/polars.py +0 -0
  100. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/virtual_servers/postgres.py +0 -0
  101. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/widget/__init__.py +0 -0
  102. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/widget/static/perspective-anywidget.css +0 -0
  103. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/widget/viewer/__init__.py +0 -0
  104. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/widget/viewer/viewer.py +0 -0
  105. {perspective_python-5.8.0 → perspective_python-5.9.0}/perspective/widget/viewer/viewer_traitlets.py +0 -0
  106. {perspective_python-5.8.0/perspective_python-5.8.0.data → perspective_python-5.9.0/perspective_python-5.9.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/install.json +0 -0
  107. {perspective_python-5.8.0/perspective_python-5.8.0.data → perspective_python-5.9.0/perspective_python-5.9.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/523.b91ca71cb7f8d97d5967.js +0 -0
  108. {perspective_python-5.8.0/perspective_python-5.8.0.data → perspective_python-5.9.0/perspective_python-5.9.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/style.js +0 -0
  109. {perspective_python-5.8.0/perspective_python-5.8.0.data → perspective_python-5.9.0/perspective_python-5.9.0.data}/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/third-party-licenses.json +0 -0
  110. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/mod.rs +0 -0
  111. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/pandas.rs +0 -0
  112. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/polars.rs +0 -0
  113. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/proxy_session.rs +0 -0
  114. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/pyarrow.rs +0 -0
  115. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/table_data.rs +0 -0
  116. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/client/update_data.rs +0 -0
  117. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/py_async.rs +0 -0
  118. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/py_err.rs +0 -0
  119. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/server/generic_sql_model.rs +0 -0
  120. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/server/mod.rs +0 -0
  121. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/server/server_async.rs +0 -0
  122. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/server/server_sync.rs +0 -0
  123. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/server/session_async.rs +0 -0
  124. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/server/session_sync.rs +0 -0
  125. {perspective_python-5.8.0 → perspective_python-5.9.0}/src/server/virtual_server_sync.rs +0 -0
@@ -12,7 +12,7 @@
12
12
 
13
13
  [package]
14
14
  name = "perspective-python"
15
- version = "5.8.0"
15
+ version = "5.9.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.8.0" }
61
- perspective-migrate = { version = "5.8.0" }
62
- perspective-server = { version = "5.8.0" }
60
+ perspective-client = { version = "5.9.0" }
61
+ perspective-migrate = { version = "5.9.0" }
62
+ perspective-server = { version = "5.9.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.8.0
4983
+ package_version: 5.9.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_&lt;<http://www.apache.org/licenses/>&gt;_\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.8.0
4990
+ package_version: 5.9.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_&lt;<http://www.apache.org/licenses/>&gt;_\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.8.0
4997
+ package_version: 5.9.0
4998
4998
  repository: https://github.com/perspective-dev/perspective
4999
4999
  license: Apache-2.0
5000
5000
  licenses:
@@ -9222,6 +9222,214 @@ third_party_libraries:
9222
9222
  incurred by, or claims asserted against, such Contributor by reason
9223
9223
  of your accepting any such warranty or additional liability.
9224
9224
 
9225
+ END OF TERMS AND CONDITIONS
9226
+ - package_name: serde_path_to_error
9227
+ package_version: 0.1.20
9228
+ repository: https://github.com/dtolnay/path-to-error
9229
+ license: MIT OR Apache-2.0
9230
+ licenses:
9231
+ - license: MIT
9232
+ text: |
9233
+ Permission is hereby granted, free of charge, to any
9234
+ person obtaining a copy of this software and associated
9235
+ documentation files (the "Software"), to deal in the
9236
+ Software without restriction, including without
9237
+ limitation the rights to use, copy, modify, merge,
9238
+ publish, distribute, sublicense, and/or sell copies of
9239
+ the Software, and to permit persons to whom the Software
9240
+ is furnished to do so, subject to the following
9241
+ conditions:
9242
+
9243
+ The above copyright notice and this permission notice
9244
+ shall be included in all copies or substantial portions
9245
+ of the Software.
9246
+
9247
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
9248
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
9249
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
9250
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
9251
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
9252
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
9253
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
9254
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
9255
+ DEALINGS IN THE SOFTWARE.
9256
+ - license: Apache-2.0
9257
+ text: |2
9258
+ Apache License
9259
+ Version 2.0, January 2004
9260
+ http://www.apache.org/licenses/
9261
+
9262
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9263
+
9264
+ 1. Definitions.
9265
+
9266
+ "License" shall mean the terms and conditions for use, reproduction,
9267
+ and distribution as defined by Sections 1 through 9 of this document.
9268
+
9269
+ "Licensor" shall mean the copyright owner or entity authorized by
9270
+ the copyright owner that is granting the License.
9271
+
9272
+ "Legal Entity" shall mean the union of the acting entity and all
9273
+ other entities that control, are controlled by, or are under common
9274
+ control with that entity. For the purposes of this definition,
9275
+ "control" means (i) the power, direct or indirect, to cause the
9276
+ direction or management of such entity, whether by contract or
9277
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
9278
+ outstanding shares, or (iii) beneficial ownership of such entity.
9279
+
9280
+ "You" (or "Your") shall mean an individual or Legal Entity
9281
+ exercising permissions granted by this License.
9282
+
9283
+ "Source" form shall mean the preferred form for making modifications,
9284
+ including but not limited to software source code, documentation
9285
+ source, and configuration files.
9286
+
9287
+ "Object" form shall mean any form resulting from mechanical
9288
+ transformation or translation of a Source form, including but
9289
+ not limited to compiled object code, generated documentation,
9290
+ and conversions to other media types.
9291
+
9292
+ "Work" shall mean the work of authorship, whether in Source or
9293
+ Object form, made available under the License, as indicated by a
9294
+ copyright notice that is included in or attached to the work
9295
+ (an example is provided in the Appendix below).
9296
+
9297
+ "Derivative Works" shall mean any work, whether in Source or Object
9298
+ form, that is based on (or derived from) the Work and for which the
9299
+ editorial revisions, annotations, elaborations, or other modifications
9300
+ represent, as a whole, an original work of authorship. For the purposes
9301
+ of this License, Derivative Works shall not include works that remain
9302
+ separable from, or merely link (or bind by name) to the interfaces of,
9303
+ the Work and Derivative Works thereof.
9304
+
9305
+ "Contribution" shall mean any work of authorship, including
9306
+ the original version of the Work and any modifications or additions
9307
+ to that Work or Derivative Works thereof, that is intentionally
9308
+ submitted to Licensor for inclusion in the Work by the copyright owner
9309
+ or by an individual or Legal Entity authorized to submit on behalf of
9310
+ the copyright owner. For the purposes of this definition, "submitted"
9311
+ means any form of electronic, verbal, or written communication sent
9312
+ to the Licensor or its representatives, including but not limited to
9313
+ communication on electronic mailing lists, source code control systems,
9314
+ and issue tracking systems that are managed by, or on behalf of, the
9315
+ Licensor for the purpose of discussing and improving the Work, but
9316
+ excluding communication that is conspicuously marked or otherwise
9317
+ designated in writing by the copyright owner as "Not a Contribution."
9318
+
9319
+ "Contributor" shall mean Licensor and any individual or Legal Entity
9320
+ on behalf of whom a Contribution has been received by Licensor and
9321
+ subsequently incorporated within the Work.
9322
+
9323
+ 2. Grant of Copyright License. Subject to the terms and conditions of
9324
+ this License, each Contributor hereby grants to You a perpetual,
9325
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
9326
+ copyright license to reproduce, prepare Derivative Works of,
9327
+ publicly display, publicly perform, sublicense, and distribute the
9328
+ Work and such Derivative Works in Source or Object form.
9329
+
9330
+ 3. Grant of Patent License. Subject to the terms and conditions of
9331
+ this License, each Contributor hereby grants to You a perpetual,
9332
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
9333
+ (except as stated in this section) patent license to make, have made,
9334
+ use, offer to sell, sell, import, and otherwise transfer the Work,
9335
+ where such license applies only to those patent claims licensable
9336
+ by such Contributor that are necessarily infringed by their
9337
+ Contribution(s) alone or by combination of their Contribution(s)
9338
+ with the Work to which such Contribution(s) was submitted. If You
9339
+ institute patent litigation against any entity (including a
9340
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
9341
+ or a Contribution incorporated within the Work constitutes direct
9342
+ or contributory patent infringement, then any patent licenses
9343
+ granted to You under this License for that Work shall terminate
9344
+ as of the date such litigation is filed.
9345
+
9346
+ 4. Redistribution. You may reproduce and distribute copies of the
9347
+ Work or Derivative Works thereof in any medium, with or without
9348
+ modifications, and in Source or Object form, provided that You
9349
+ meet the following conditions:
9350
+
9351
+ (a) You must give any other recipients of the Work or
9352
+ Derivative Works a copy of this License; and
9353
+
9354
+ (b) You must cause any modified files to carry prominent notices
9355
+ stating that You changed the files; and
9356
+
9357
+ (c) You must retain, in the Source form of any Derivative Works
9358
+ that You distribute, all copyright, patent, trademark, and
9359
+ attribution notices from the Source form of the Work,
9360
+ excluding those notices that do not pertain to any part of
9361
+ the Derivative Works; and
9362
+
9363
+ (d) If the Work includes a "NOTICE" text file as part of its
9364
+ distribution, then any Derivative Works that You distribute must
9365
+ include a readable copy of the attribution notices contained
9366
+ within such NOTICE file, excluding those notices that do not
9367
+ pertain to any part of the Derivative Works, in at least one
9368
+ of the following places: within a NOTICE text file distributed
9369
+ as part of the Derivative Works; within the Source form or
9370
+ documentation, if provided along with the Derivative Works; or,
9371
+ within a display generated by the Derivative Works, if and
9372
+ wherever such third-party notices normally appear. The contents
9373
+ of the NOTICE file are for informational purposes only and
9374
+ do not modify the License. You may add Your own attribution
9375
+ notices within Derivative Works that You distribute, alongside
9376
+ or as an addendum to the NOTICE text from the Work, provided
9377
+ that such additional attribution notices cannot be construed
9378
+ as modifying the License.
9379
+
9380
+ You may add Your own copyright statement to Your modifications and
9381
+ may provide additional or different license terms and conditions
9382
+ for use, reproduction, or distribution of Your modifications, or
9383
+ for any such Derivative Works as a whole, provided Your use,
9384
+ reproduction, and distribution of the Work otherwise complies with
9385
+ the conditions stated in this License.
9386
+
9387
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
9388
+ any Contribution intentionally submitted for inclusion in the Work
9389
+ by You to the Licensor shall be under the terms and conditions of
9390
+ this License, without any additional terms or conditions.
9391
+ Notwithstanding the above, nothing herein shall supersede or modify
9392
+ the terms of any separate license agreement you may have executed
9393
+ with Licensor regarding such Contributions.
9394
+
9395
+ 6. Trademarks. This License does not grant permission to use the trade
9396
+ names, trademarks, service marks, or product names of the Licensor,
9397
+ except as required for reasonable and customary use in describing the
9398
+ origin of the Work and reproducing the content of the NOTICE file.
9399
+
9400
+ 7. Disclaimer of Warranty. Unless required by applicable law or
9401
+ agreed to in writing, Licensor provides the Work (and each
9402
+ Contributor provides its Contributions) on an "AS IS" BASIS,
9403
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
9404
+ implied, including, without limitation, any warranties or conditions
9405
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
9406
+ PARTICULAR PURPOSE. You are solely responsible for determining the
9407
+ appropriateness of using or redistributing the Work and assume any
9408
+ risks associated with Your exercise of permissions under this License.
9409
+
9410
+ 8. Limitation of Liability. In no event and under no legal theory,
9411
+ whether in tort (including negligence), contract, or otherwise,
9412
+ unless required by applicable law (such as deliberate and grossly
9413
+ negligent acts) or agreed to in writing, shall any Contributor be
9414
+ liable to You for damages, including any direct, indirect, special,
9415
+ incidental, or consequential damages of any character arising as a
9416
+ result of this License or out of the use or inability to use the
9417
+ Work (including but not limited to damages for loss of goodwill,
9418
+ work stoppage, computer failure or malfunction, or any and all
9419
+ other commercial damages or losses), even if such Contributor
9420
+ has been advised of the possibility of such damages.
9421
+
9422
+ 9. Accepting Warranty or Additional Liability. While redistributing
9423
+ the Work or Derivative Works thereof, You may choose to offer,
9424
+ and charge a fee for, acceptance of support, warranty, indemnity,
9425
+ or other liability obligations and/or rights consistent with this
9426
+ License. However, in accepting such obligations, You may act only
9427
+ on Your own behalf and on Your sole responsibility, not on behalf
9428
+ of any other Contributor, and only if You agree to indemnify,
9429
+ defend, and hold each Contributor harmless for any liability
9430
+ incurred by, or claims asserted against, such Contributor by reason
9431
+ of your accepting any such warranty or additional liability.
9432
+
9225
9433
  END OF TERMS AND CONDITIONS
9226
9434
  - package_name: sharded-slab
9227
9435
  package_version: 0.1.7
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: perspective-python
3
- Version: 5.8.0
3
+ Version: 5.9.0
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: Intended Audience :: Financial and Insurance Industry
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perspective-dev/python",
3
- "version": "5.8.0",
3
+ "version": "5.9.0",
4
4
  "description": "",
5
5
  "private": true,
6
6
  "repository": {
@@ -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.8.0"
13
+ __version__ = "5.9.0"
14
14
  __all__ = [
15
15
  "_jupyter_labextension_paths",
16
16
  "Server",
@@ -27,6 +27,7 @@ __all__ = [
27
27
  "num_cpus",
28
28
  "set_num_cpus",
29
29
  "migrate",
30
+ "validate",
30
31
  "system_info",
31
32
  ]
32
33
 
@@ -365,6 +366,7 @@ from .perspective import (
365
366
  num_cpus,
366
367
  set_num_cpus,
367
368
  migrate,
369
+ validate,
368
370
  )
369
371
 
370
372
 
@@ -34,10 +34,7 @@ def _unrolled(view, group_by):
34
34
  names = list(columns.keys())
35
35
  out = []
36
36
  for i, path in enumerate(paths):
37
- row = {
38
- g: (path[d] if d < len(path) else None)
39
- for d, g in enumerate(group_by)
40
- }
37
+ row = {g: (path[d] if d < len(path) else None) for d, g in enumerate(group_by)}
41
38
 
42
39
  row.update({n: columns[n][i] for n in names})
43
40
  out.append(row)
@@ -57,7 +54,13 @@ class TestDerivedTable(object):
57
54
  def _source(self):
58
55
  client = Server().new_local_client()
59
56
  table = client.table(
60
- {"id": "integer", "g": "string", "s": "string", "x": "float", "y": "integer"},
57
+ {
58
+ "id": "integer",
59
+ "g": "string",
60
+ "s": "string",
61
+ "x": "float",
62
+ "y": "integer",
63
+ },
61
64
  index="id",
62
65
  )
63
66
 
@@ -135,6 +138,40 @@ class TestDerivedTable(object):
135
138
  with pytest.raises(Exception):
136
139
  derived.clear()
137
140
 
141
+ def test_flat_group_by_is_indexed_by_its_key(self):
142
+ client, table = self._source()
143
+ view = table.view(group_by=["g"], columns=["x"], group_rollup_mode="flat")
144
+ derived = client.table(view)
145
+ assert derived.get_index() == "g"
146
+ child = derived.view()
147
+ assert _same(child.to_records(), _unrolled(view, ["g"]))
148
+ table.remove([0, 3, 6, 9, 12, 15, 18, 21])
149
+ assert derived.size() == 2
150
+ assert _same(child.to_records(), _unrolled(view, ["g"]))
151
+
152
+ def test_flat_group_by_is_indexed_by_all_of_its_keys(self):
153
+ client, table = self._source()
154
+ view = table.view(group_by=["g", "s"], columns=["x"], group_rollup_mode="flat")
155
+
156
+ derived = client.table(view)
157
+ assert derived.get_index() == ["g", "s"]
158
+ child = derived.view()
159
+ assert _same(child.to_records(), _unrolled(view, ["g", "s"]))
160
+ table.update([{"id": 100, "g": "a", "s": "Wed", "x": 1.0, "y": 1}])
161
+ assert _same(child.to_records(), _unrolled(view, ["g", "s"]))
162
+
163
+ def test_rollup_group_by_has_no_index(self):
164
+ client, table = self._source()
165
+ view = table.view(group_by=["g"], columns=["x"])
166
+ derived = client.table(view)
167
+ assert derived.get_index() is None
168
+
169
+ def test_flat_group_by_without_key_column_has_no_index(self):
170
+ client, table = self._source()
171
+ view = table.view(group_by=["g"], columns=["x"], group_rollup_mode="flat")
172
+ derived = client.table(view, schema={"x": "float"})
173
+ assert derived.get_index() is None
174
+
138
175
  def test_index_and_limit_rejected(self):
139
176
  client, table = self._source()
140
177
  view = table.view(group_by=["g"], columns=["x"])
@@ -155,3 +155,116 @@ class TestOnRemove(object):
155
155
  view = tbl.view(group_by=["y"])
156
156
  tbl2 = Table(view)
157
157
  assert tbl2.get_index() is None
158
+
159
+ def test_on_remove_cause_is_key(self):
160
+ tbl = Table(data, index="x")
161
+ view = tbl.view()
162
+ calls = []
163
+ cid = view.on_remove(
164
+ lambda port_id, indices, cause: calls.append((cause, indices))
165
+ )
166
+ tbl.remove([2])
167
+ assert [cause for cause, _ in calls] == ["key"]
168
+ assert removed_indices(calls[0][1]) == [{"x": 2}]
169
+ view.remove_remove(cid)
170
+
171
+ def test_on_remove_keyword_only_cause(self):
172
+ tbl = Table(data, index="x")
173
+ view = tbl.view()
174
+ calls = []
175
+
176
+ def cb(port_id, indices, *, cause):
177
+ calls.append(cause)
178
+
179
+ cid = view.on_remove(cb)
180
+ tbl.remove([2])
181
+ assert calls == ["key"]
182
+ view.remove_remove(cid)
183
+
184
+ def test_on_remove_group_by_reports_dissolved_group(self):
185
+ tbl = Table(data, index="x")
186
+ view = tbl.view(group_by=["y"])
187
+ calls = []
188
+ cid = view.on_remove(
189
+ lambda port_id, indices, cause: calls.append((cause, indices))
190
+ )
191
+ tbl.remove([2])
192
+ assert [cause for cause, _ in calls] == ["group"]
193
+ assert removed_indices(calls[0][1]) == [{"y": "b"}]
194
+ view.remove_remove(cid)
195
+
196
+ def test_on_remove_group_by_rekeying_update(self):
197
+ tbl = Table(data, index="x")
198
+ view = tbl.view(group_by=["y"])
199
+ calls = []
200
+ cid = view.on_remove(
201
+ lambda port_id, indices, cause: calls.append((cause, indices))
202
+ )
203
+ tbl.update([{"x": 1, "y": "zz"}])
204
+ tbl.update([{"x": 2, "y": "a"}])
205
+ assert [cause for cause, _ in calls] == ["group", "group"]
206
+ assert removed_indices(calls[0][1]) == [{"y": "a"}]
207
+ assert removed_indices(calls[1][1]) == [{"y": "b"}]
208
+ view.remove_remove(cid)
209
+
210
+ def test_on_remove_group_by_two_levels(self):
211
+ tbl = Table(data, index="x")
212
+ view = tbl.view(group_by=["y", "x"])
213
+ calls = []
214
+ cid = view.on_remove(lambda port_id, indices, cause: calls.append(indices))
215
+ tbl.remove([2])
216
+ assert len(calls) == 1
217
+ rows = sorted(removed_indices(calls[0]), key=lambda row: row["x"] or 0)
218
+ assert rows == [{"y": "b", "x": None}, {"y": "b", "x": 2}]
219
+ view.remove_remove(cid)
220
+
221
+ def test_on_remove_group_by_aggregate_change_does_not_fire(self):
222
+ tbl = Table(data, index="x")
223
+ view = tbl.view(group_by=["y"], aggregates={"x": "sum"})
224
+ calls = []
225
+ cid = view.on_remove(lambda port_id, indices, cause: calls.append(cause))
226
+ tbl.update([{"x": 1, "y": "a"}])
227
+ tbl.update([{"x": 4, "y": "a"}])
228
+ assert calls == []
229
+ view.remove_remove(cid)
230
+
231
+ def test_on_remove_group_by_limit_eviction(self):
232
+ tbl = Table(data, limit=3)
233
+ view = tbl.view(group_by=["y"])
234
+ calls = []
235
+ cid = view.on_remove(
236
+ lambda port_id, indices, cause: calls.append((cause, indices))
237
+ )
238
+ tbl.update([{"x": 4, "y": "d"}])
239
+ assert [cause for cause, _ in calls] == ["group"]
240
+ assert removed_indices(calls[0][1]) == [{"y": "a"}]
241
+ view.remove_remove(cid)
242
+
243
+ def test_on_remove_filter_reports_rows_leaving(self):
244
+ tbl = Table(data, index="x")
245
+ view = tbl.view(filter=[["y", "==", "a"]])
246
+ calls = []
247
+ cid = view.on_remove(
248
+ lambda port_id, indices, cause: calls.append((cause, indices))
249
+ )
250
+ tbl.update([{"x": 1, "y": "b"}])
251
+ assert [cause for cause, _ in calls] == ["filter"]
252
+ assert removed_indices(calls[0][1]) == [{"x": 1}]
253
+ assert view.to_records() == []
254
+ tbl.update([{"x": 1, "y": "a"}])
255
+ assert len(calls) == 1
256
+ view.remove_remove(cid)
257
+
258
+ def test_on_remove_filter_key_and_filter_are_separate_messages(self):
259
+ tbl = Table(data, index="x")
260
+ view = tbl.view(filter=[["y", "==", "a"]])
261
+ calls = []
262
+ cid = view.on_remove(
263
+ lambda port_id, indices, cause: calls.append((cause, indices))
264
+ )
265
+ tbl.remove([2])
266
+ tbl.update([{"x": 1, "y": "b"}])
267
+ assert [cause for cause, _ in calls] == ["key", "filter"]
268
+ assert removed_indices(calls[0][1]) == [{"x": 2}]
269
+ assert removed_indices(calls[1][1]) == [{"x": 1}]
270
+ view.remove_remove(cid)
@@ -141,6 +141,24 @@ class TestTable:
141
141
  assert tbl.size() == 2
142
142
  assert tbl.schema() == {"a": "float", "b": "float"}
143
143
 
144
+ def test_table_int_to_float_promotion_preserves_nulls(self):
145
+ tbl = Table([{"x": 1}, {"x": None}, {"x": 2.5}])
146
+ assert tbl.schema() == {"x": "float"}
147
+ assert tbl.view().to_columns() == {"x": [1, None, 2.5]}
148
+
149
+ def test_table_int_to_float_promotion_preserves_nulls_column_oriented(self):
150
+ leading = Table({"x": [None, 1, 2.5]})
151
+ assert leading.schema() == {"x": "float"}
152
+ assert leading.view().to_columns() == {"x": [None, 1, 2.5]}
153
+ interior = Table({"x": [1, 2, None, 2.5]})
154
+ assert interior.schema() == {"x": "float"}
155
+ assert interior.view().to_columns() == {"x": [1, 2, None, 2.5]}
156
+
157
+ def test_table_int_to_str_promotion_preserves_nulls(self):
158
+ tbl = Table([{"x": 1}, {"x": None}, {"x": "a"}])
159
+ assert tbl.schema() == {"x": "string"}
160
+ assert tbl.view().to_columns() == {"x": ["1", None, "a"]}
161
+
144
162
  def test_table_str(self):
145
163
  str_data = [{"a": "b", "b": "b"}, {"a": "3", "b": "3"}]
146
164
  tbl = Table(str_data)
@@ -128,3 +128,94 @@ class TestView(object):
128
128
  {"2|a": 1, "2|b": 2, "4|a": None, "4|b": None},
129
129
  {"2|a": None, "2|b": None, "4|a": 3, "4|b": 4},
130
130
  ]
131
+
132
+
133
+ def _sorted(records):
134
+ return sorted(sorted((k, str(v)) for k, v in r.items()) for r in records)
135
+
136
+
137
+ class TestFlatDerivedReplica(object):
138
+ def test_flat_derived_group_by_replicates_to_another_client(self):
139
+ server = psp.Server()
140
+ client0 = server.new_local_client()
141
+ client1 = server.new_local_client()
142
+ src = client0.table({"k": "integer", "g": "string", "x": "integer"}, index="k")
143
+
144
+ src.update(
145
+ [
146
+ {"k": 1, "g": "a", "x": 1},
147
+ {"k": 2, "g": "b", "x": 2},
148
+ {"k": 3, "g": "a", "x": 3},
149
+ {"k": 4, "g": None, "x": 4},
150
+ ]
151
+ )
152
+
153
+ view = src.view(group_by=["g"], columns=["x"], group_rollup_mode="flat")
154
+ derived = client0.table(view, name="derived_flat")
155
+ derived_view = derived.view()
156
+ replica = client1.table(client1.open_table("derived_flat").view())
157
+ replica_view = replica.view()
158
+ assert derived.get_index() == "g"
159
+ assert replica.get_index() == "g"
160
+
161
+ def same():
162
+ return _sorted(derived_view.to_records()) == _sorted(
163
+ replica_view.to_records()
164
+ )
165
+
166
+ assert same()
167
+ src.update([{"k": 1, "x": 10}])
168
+ assert same()
169
+ src.update([{"k": 5, "g": "c", "x": 5}])
170
+ assert same()
171
+ src.update([{"k": 2, "g": "a"}])
172
+ assert same()
173
+ assert _sorted(replica_view.to_records()) == _sorted(
174
+ [{"g": None, "x": 4}, {"g": "a", "x": 15}, {"g": "c", "x": 5}]
175
+ )
176
+
177
+ src.remove([5])
178
+ assert same()
179
+ assert replica.size() == 2
180
+ src.clear()
181
+ assert same()
182
+ assert replica.size() == 0
183
+ src.replace([{"k": 7, "g": "z", "x": 7}, {"k": 8, "g": "z", "x": 8}])
184
+ assert same()
185
+ assert replica_view.to_records() == [{"g": "z", "x": 15}]
186
+
187
+ def test_flat_derived_two_keys_replicates_with_a_composite_index(self):
188
+ server = psp.Server()
189
+ client0 = server.new_local_client()
190
+ client1 = server.new_local_client()
191
+ src = client0.table(
192
+ {"k": "integer", "g": "string", "h": "string", "x": "integer"},
193
+ index="k",
194
+ )
195
+
196
+ src.update(
197
+ [
198
+ {"k": 1, "g": "a", "h": "p", "x": 1},
199
+ {"k": 2, "g": "a", "h": "q", "x": 2},
200
+ {"k": 3, "g": "b", "h": "p", "x": 3},
201
+ ]
202
+ )
203
+
204
+ view = src.view(group_by=["g", "h"], columns=["x"], group_rollup_mode="flat")
205
+
206
+ derived = client0.table(view, name="derived_flat_gh")
207
+ derived_view = derived.view()
208
+ replica = client1.table(client1.open_table("derived_flat_gh").view())
209
+ replica_view = replica.view()
210
+ assert derived.get_index() == ["g", "h"]
211
+ assert replica.get_index() == ["g", "h"]
212
+ src.update([{"k": 2, "g": "b"}])
213
+ assert _sorted(derived_view.to_records()) == _sorted(replica_view.to_records())
214
+
215
+ assert _sorted(replica_view.to_records()) == _sorted(
216
+ [
217
+ {"g": "a", "h": "p", "x": 1},
218
+ {"g": "b", "h": "p", "x": 3},
219
+ {"g": "b", "h": "q", "x": 2},
220
+ ]
221
+ )