perspective-python 3.8.0__tar.gz → 4.0.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 (101) hide show
  1. {perspective_python-3.8.0 → perspective_python-4.0.0}/Cargo.toml +5 -5
  2. {perspective_python-3.8.0 → perspective_python-4.0.0}/LICENSE_THIRDPARTY_cargo.yml +4 -4
  3. {perspective_python-3.8.0 → perspective_python-4.0.0}/PKG-INFO +3 -3
  4. {perspective_python-3.8.0 → perspective_python-4.0.0}/docs/lib.md +28 -27
  5. {perspective_python-3.8.0 → perspective_python-4.0.0}/package.json +10 -11
  6. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/__init__.py +9 -9
  7. perspective_python-4.0.0/perspective/extension/finos-perspective-nbextension.json +5 -0
  8. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/multi_threaded/test_multi_threaded.py +46 -3
  9. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/widget/__init__.py +4 -4
  10. {perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab → perspective_python-4.0.0/perspective_python-4.0.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab}/package.json +16 -26
  11. perspective_python-4.0.0/perspective_python-4.0.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.631df6a8ca3309cdf66a.js +16 -0
  12. perspective_python-4.0.0/perspective_python-4.0.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/253.631df6a8ca3309cdf66a.js.LICENSE.txt +25 -0
  13. perspective_python-4.0.0/perspective_python-4.0.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/523.3bed59a0a88940832f98.js +1 -0
  14. perspective_python-4.0.0/perspective_python-4.0.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab/static/remoteEntry.577310d2fae37026b7a4.js +1 -0
  15. {perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab → perspective_python-4.0.0/perspective_python-4.0.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab}/static/style.js +1 -1
  16. {perspective_python-3.8.0 → perspective_python-4.0.0}/pyproject.toml +1 -1
  17. perspective_python-3.8.0/perspective/extension/finos-perspective-nbextension.json +0 -5
  18. perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/static/253.e30b6884e47a9553ecfc.js +0 -16
  19. perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/static/253.e30b6884e47a9553ecfc.js.LICENSE.txt +0 -63
  20. perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/static/815.de1b4b53d57212354a6c.js +0 -1
  21. perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab/static/remoteEntry.0c4df9cdbab87a425a95.js +0 -1
  22. {perspective_python-3.8.0 → perspective_python-4.0.0}/LICENSE.md +0 -0
  23. {perspective_python-3.8.0 → perspective_python-4.0.0}/README.md +0 -0
  24. {perspective_python-3.8.0 → perspective_python-4.0.0}/build.rs +0 -0
  25. {perspective_python-3.8.0 → perspective_python-4.0.0}/docs/index.html +0 -0
  26. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/handlers/__init__.py +0 -0
  27. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/handlers/aiohttp.py +0 -0
  28. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/handlers/starlette.py +0 -0
  29. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/handlers/tornado.py +0 -0
  30. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/templates/exported_widget.html.template +0 -0
  31. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/__init__.py +0 -0
  32. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/async/test_async_client.py +0 -0
  33. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/async/test_websocket_client.py +0 -0
  34. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/conftest.py +0 -0
  35. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/core/__init__.py +0 -0
  36. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/core/test_async.py +0 -0
  37. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/multi_threaded/__init__.py +0 -0
  38. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/server/__init__.py +0 -0
  39. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/server/test_server.py +0 -0
  40. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/server/test_session.py +0 -0
  41. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/__init__.py +0 -0
  42. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/arrow/date32.arrow +0 -0
  43. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/arrow/date64.arrow +0 -0
  44. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/arrow/dict.arrow +0 -0
  45. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/arrow/dict_update.arrow +0 -0
  46. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/arrow/int_float_str.arrow +0 -0
  47. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/arrow/int_float_str_file.arrow +0 -0
  48. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/arrow/int_float_str_update.arrow +0 -0
  49. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/object_sequence.py +0 -0
  50. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_column_paths.py +0 -0
  51. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_delete.py +0 -0
  52. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_exception.py +0 -0
  53. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_leaks.py +0 -0
  54. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_ports.py +0 -0
  55. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_remove.py +0 -0
  56. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_table.py +0 -0
  57. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_table_arrow.py +0 -0
  58. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_table_datetime.py +0 -0
  59. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_table_infer.py +0 -0
  60. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_table_limit.py +0 -0
  61. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_table_numpy.py +0 -0
  62. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_table_pandas.py +0 -0
  63. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_table_polars.py +0 -0
  64. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_to_arrow.py +0 -0
  65. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_to_arrow_lz4.py +0 -0
  66. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_to_format.py +0 -0
  67. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_to_polars.py +0 -0
  68. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_update.py +0 -0
  69. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_update_arrow.py +0 -0
  70. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_update_pandas.py +0 -0
  71. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_view.py +0 -0
  72. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/table/test_view_expression.py +0 -0
  73. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/test_dependencies.py +0 -0
  74. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/viewer/__init__.py +0 -0
  75. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/viewer/test_viewer.py +0 -0
  76. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/widget/__init__.py +0 -0
  77. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/widget/test_widget.py +0 -0
  78. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/tests/widget/test_widget_pandas.py +0 -0
  79. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/widget/viewer/__init__.py +0 -0
  80. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/widget/viewer/validate.py +0 -0
  81. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/widget/viewer/viewer.py +0 -0
  82. {perspective_python-3.8.0 → perspective_python-4.0.0}/perspective/widget/viewer/viewer_traitlets.py +0 -0
  83. {perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab → perspective_python-4.0.0/perspective_python-4.0.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab}/install.json +0 -0
  84. {perspective_python-3.8.0/perspective_python-3.8.0.data/data/share/jupyter/labextensions/@finos/perspective-jupyterlab → perspective_python-4.0.0/perspective_python-4.0.0.data/data/share/jupyter/labextensions/@perspective-dev/jupyterlab}/static/third-party-licenses.json +0 -0
  85. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/client_async.rs +0 -0
  86. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/client_sync.rs +0 -0
  87. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/mod.rs +0 -0
  88. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/pandas.rs +0 -0
  89. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/polars.rs +0 -0
  90. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/proxy_session.rs +0 -0
  91. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/pyarrow.rs +0 -0
  92. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/table_data.rs +0 -0
  93. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/client/update_data.rs +0 -0
  94. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/lib.rs +0 -0
  95. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/py_async.rs +0 -0
  96. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/py_err.rs +0 -0
  97. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/server/mod.rs +0 -0
  98. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/server/server_async.rs +0 -0
  99. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/server/server_sync.rs +0 -0
  100. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/server/session_async.rs +0 -0
  101. {perspective_python-3.8.0 → perspective_python-4.0.0}/src/server/session_sync.rs +0 -0
@@ -12,12 +12,12 @@
12
12
 
13
13
  [package]
14
14
  name = "perspective-python"
15
- version = "3.8.0"
15
+ version = "4.0.0"
16
16
  edition = "2024"
17
17
  description = "A data visualization and analytics component, especially well-suited for large and/or streaming datasets."
18
- repository = "https://github.com/finos/perspective"
18
+ repository = "https://github.com/perspective-dev/perspective"
19
19
  license = "Apache-2.0"
20
- homepage = "https://perspective.finos.org"
20
+ homepage = "https://perspective-dev.github.io"
21
21
  authors = ["Andrew Stein <steinlink@gmail.com>"]
22
22
  keywords = []
23
23
  build = "build.rs"
@@ -57,8 +57,8 @@ pyo3-build-config = "0.22.6"
57
57
  python-config-rs = "0.1.2"
58
58
 
59
59
  [dependencies]
60
- perspective-client = { version = "3.8.0" }
61
- perspective-server = { version = "3.8.0" }
60
+ perspective-client = { version = "4.0.0" }
61
+ perspective-server = { version = "4.0.0" }
62
62
  macro_rules_attribute = "0.2.0"
63
63
  async-lock = "2.5.0"
64
64
  pollster = "0.3.0"
@@ -2911,15 +2911,15 @@ third_party_libraries:
2911
2911
 
2912
2912
  END OF TERMS AND CONDITIONS
2913
2913
  - package_name: perspective-client
2914
- package_version: 3.8.0
2915
- repository: https://github.com/finos/perspective
2914
+ package_version: 4.0.0
2915
+ repository: https://github.com/perspective-dev/perspective
2916
2916
  license: Apache-2.0
2917
2917
  licenses:
2918
2918
  - license: Apache-2.0
2919
2919
  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"
2920
2920
  - package_name: perspective-server
2921
- package_version: 3.8.0
2922
- repository: https://github.com/finos/perspective
2921
+ package_version: 4.0.0
2922
+ repository: https://github.com/perspective-dev/perspective
2923
2923
  license: Apache-2.0
2924
2924
  licenses:
2925
2925
  - license: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: perspective-python
3
- Version: 3.8.0
3
+ Version: 4.0.0
4
4
  Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -22,13 +22,13 @@ Provides-Extra: tornado
22
22
  Provides-Extra: aiohttp
23
23
  Provides-Extra: starlette
24
24
  Summary: A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
25
- Home-page: https://perspective.finos.org
25
+ Home-page: https://perspective-dev.github.io
26
26
  Author: Andrew Stein <steinlink@gmail.com>
27
27
  Author-email: Andrew Stein <steinlink@gmail.com>
28
28
  License: Apache-2.0
29
29
  Requires-Python: >=3.9
30
30
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
31
- Project-URL: Source Code, https://github.com/finos/perspective
31
+ Project-URL: Source Code, https://github.com/perspective-dev/perspective
32
32
 
33
33
  # `perspective-python`
34
34
 
@@ -1,5 +1,6 @@
1
- The Python language bindings for [Perspective](https://perspective.finos.org), a
2
- high performance data-visualization and analytics component for the web browser.
1
+ The Python language bindings for
2
+ [Perspective](https://perspective-dev.github.io), a high performance
3
+ data-visualization and analytics component for the web browser.
3
4
 
4
5
  <div class="warning">
5
6
  The examples in this module are in Python. See <a href="https://docs.rs/crate/perspective/latest"><code>perspective</code></a> docs for the Rust API.
@@ -47,25 +48,25 @@ makes it simple to extend a Tornado server with virtual Perspective support.
47
48
 
48
49
  The `perspective` module exports several tools:
49
50
 
50
- - `Server` the constructor for a new isntance of the Perspective data engine.
51
- - The `perspective.widget` module exports `PerspectiveWidget`, the JupyterLab
52
- widget for interactive visualization in a notebook cell.
53
- - The `perspective.handlers` modules exports web frameworks handlers that
54
- interface with a `perspective-client` in JavaScript.
55
- - `perspective.handlers.tornado.PerspectiveTornadoHandler` for
56
- [Tornado](https://www.tornadoweb.org/)
57
- - `perspective.handlers.starlette.PerspectiveStarletteHandler` for
58
- [Starlette](https://www.starlette.io/) and
59
- [FastAPI](https://fastapi.tiangolo.com)
60
- - `perspective.handlers.aiohttp.PerspectiveAIOHTTPHandler` for
61
- [AIOHTTP](https://docs.aiohttp.org),
51
+ - `Server` the constructor for a new isntance of the Perspective data engine.
52
+ - The `perspective.widget` module exports `PerspectiveWidget`, the JupyterLab
53
+ widget for interactive visualization in a notebook cell.
54
+ - The `perspective.handlers` modules exports web frameworks handlers that
55
+ interface with a `perspective-client` in JavaScript.
56
+ - `perspective.handlers.tornado.PerspectiveTornadoHandler` for
57
+ [Tornado](https://www.tornadoweb.org/)
58
+ - `perspective.handlers.starlette.PerspectiveStarletteHandler` for
59
+ [Starlette](https://www.starlette.io/) and
60
+ [FastAPI](https://fastapi.tiangolo.com)
61
+ - `perspective.handlers.aiohttp.PerspectiveAIOHTTPHandler` for
62
+ [AIOHTTP](https://docs.aiohttp.org),
62
63
 
63
64
  This user's guide provides an overview of the most common ways to use
64
65
  Perspective in Python: the `Table` API, the JupyterLab widget, and the Tornado
65
66
  handler.
66
67
 
67
- [More Examples](https://github.com/finos/perspective/tree/master/examples) are
68
- available on GitHub.
68
+ [More Examples](https://github.com/perspective-dev/perspective/tree/master/examples)
69
+ are available on GitHub.
69
70
 
70
71
  ## Installation
71
72
 
@@ -98,11 +99,11 @@ A `Table` can be created from a dataset or a schema, the specifics of which are
98
99
  guide. In Python, however, Perspective supports additional data types that are
99
100
  commonly used when processing data:
100
101
 
101
- - `pandas.DataFrame`
102
- - `polars.DataFrame`
103
- - `bytes` (encoding an Apache Arrow)
104
- - `objects` (either extracting a repr or via reference)
105
- - `str` (encoding as a CSV)
102
+ - `pandas.DataFrame`
103
+ - `polars.DataFrame`
104
+ - `bytes` (encoding an Apache Arrow)
105
+ - `objects` (either extracting a repr or via reference)
106
+ - `str` (encoding as a CSV)
106
107
 
107
108
  A `Table` is created in a similar fashion to its JavaScript equivalent:
108
109
 
@@ -159,7 +160,7 @@ _local time_ according to the Python runtime.
159
160
 
160
161
  This behavior is consistent with Perspective's behavior in JavaScript. For more
161
162
  details, see this in-depth
162
- [explanation](https://github.com/finos/perspective/pull/867) of
163
+ [explanation](https://github.com/perspective-dev/perspective/pull/867) of
163
164
  `perspective-python` semantics around time zone handling.
164
165
 
165
166
  ### Callbacks and Events
@@ -231,7 +232,7 @@ Using Tornado and
231
232
  `Perspective`'s JavaScript library, we can set up "distributed" Perspective
232
233
  instances that allows multiple browser `perspective-viewer` clients to read from
233
234
  a common `perspective-python` server, as in the
234
- [Tornado Example Project](https://github.com/finos/perspective/tree/master/examples/python-tornado).
235
+ [Tornado Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-tornado).
235
236
 
236
237
  This architecture works by maintaining two `Tables`—one on the server, and one
237
238
  on the client that mirrors the server's `Table` automatically using `on_update`.
@@ -278,7 +279,7 @@ _*index.html*_
278
279
  // Create a client that expects a Perspective server
279
280
  // to accept connections at the specified URL.
280
281
  const websocket = await perspective.websocket(
281
- "ws://localhost:8888/websocket"
282
+ "ws://localhost:8888/websocket",
282
283
  );
283
284
 
284
285
  // Get a handle to the Table on the server
@@ -298,12 +299,12 @@ _*index.html*_
298
299
 
299
300
  For a more complex example that offers distributed editing of the server
300
301
  dataset, see
301
- [client_server_editing.html](https://github.com/finos/perspective/blob/master/examples/python-tornado/client_server_editing.html).
302
+ [client_server_editing.html](https://github.com/perspective-dev/perspective/blob/master/examples/python-tornado/client_server_editing.html).
302
303
 
303
304
  We also provide examples for Starlette/FastAPI and AIOHTTP:
304
305
 
305
- - [Starlette Example Project](https://github.com/finos/perspective/tree/master/examples/python-starlette).
306
- - [AIOHTTP Example Project](https://github.com/finos/perspective/tree/master/examples/python-aiohttp).
306
+ - [Starlette Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-starlette).
307
+ - [AIOHTTP Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-aiohttp).
307
308
 
308
309
  ### Server-only Mode
309
310
 
@@ -1,28 +1,27 @@
1
1
  {
2
- "name": "@finos/perspective-python",
3
- "version": "3.8.0",
2
+ "name": "@perspective-dev/python",
3
+ "version": "4.0.0",
4
4
  "description": "",
5
5
  "private": true,
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/finos/perspective"
8
+ "url": "https://github.com/perspective-dev/perspective"
9
9
  },
10
10
  "type": "module",
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
- "build": "node build.mjs",
14
- "clean": "rimraf *.data && rimraf dist && rimraf build",
13
+ "build": "node ./build.mjs",
14
+ "clean": "node ./clean.mjs",
15
15
  "test": "node test.mjs",
16
16
  "docs": "pdoc perspective/__init__.py perspective/handlers/aiohttp.py, perspective/handlers/starlette.py perspective/handlers/tornado.py perspective/widget/__init__.py -o ../../docs/static/python && node docs.mjs"
17
17
  },
18
18
  "devDependencies": {
19
- "@finos/perspective-scripts": "workspace:*",
20
- "smol-toml": "^1.3.1",
21
- "glob": "^11",
22
- "cpy": "^9.0.1",
23
- "tar": "^7.4.3"
19
+ "@perspective-dev/scripts": "workspace:*",
20
+ "@iarna/toml": "catalog:",
21
+ "tar": "catalog:",
22
+ "zx": "catalog:"
24
23
  },
25
24
  "dependencies": {
26
- "@finos/perspective-jupyterlab": "workspace:*"
25
+ "@perspective-dev/jupyterlab": "workspace:*"
27
26
  }
28
27
  }
@@ -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__ = "3.8.0"
13
+ __version__ = "4.0.0"
14
14
  __all__ = [
15
15
  "_jupyter_labextension_paths",
16
16
  "Server",
@@ -27,7 +27,7 @@ __all__ = [
27
27
  ]
28
28
 
29
29
  __doc__ = """
30
- The Python language bindings for [Perspective](https://perspective.finos.org), a
30
+ The Python language bindings for [Perspective](https://perspective-dev.github.io), a
31
31
  high performance data-visualization and analytics component for the web browser.
32
32
 
33
33
  A simple example which loads an [Apache Arrow](https://arrow.apache.org/) and
@@ -89,7 +89,7 @@ This user's guide provides an overview of the most common ways to use
89
89
  Perspective in Python: the `Table` API, the JupyterLab widget, and the Tornado
90
90
  handler.
91
91
 
92
- [More Examples](https://github.com/finos/perspective/tree/master/examples) are
92
+ [More Examples](https://github.com/perspective-dev/perspective/tree/master/examples) are
93
93
  available on GitHub.
94
94
 
95
95
  ## Installation
@@ -172,7 +172,7 @@ _local time_ according to the Python runtime.
172
172
 
173
173
  This behavior is consistent with Perspective's behavior in JavaScript. For more
174
174
  details, see this in-depth
175
- [explanation](https://github.com/finos/perspective/pull/867) of
175
+ [explanation](https://github.com/perspective-dev/perspective/pull/867) of
176
176
  `perspective-python` semantics around time zone handling.
177
177
 
178
178
  #### Callbacks and Events
@@ -244,7 +244,7 @@ Using Tornado and
244
244
  `Perspective`'s JavaScript library, we can set up "distributed" Perspective
245
245
  instances that allows multiple browser `perspective-viewer` clients to read from
246
246
  a common `perspective-python` server, as in the
247
- [Tornado Example Project](https://github.com/finos/perspective/tree/master/examples/python-tornado).
247
+ [Tornado Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-tornado).
248
248
 
249
249
  This architecture works by maintaining two `Tables`—one on the server, and one
250
250
  on the client that mirrors the server's `Table` automatically using `on_update`.
@@ -311,12 +311,12 @@ _*index.html*_
311
311
 
312
312
  For a more complex example that offers distributed editing of the server
313
313
  dataset, see
314
- [client_server_editing.html](https://github.com/finos/perspective/blob/master/examples/python-tornado/client_server_editing.html).
314
+ [client_server_editing.html](https://github.com/perspective-dev/perspective/blob/master/examples/python-tornado/client_server_editing.html).
315
315
 
316
316
  We also provide examples for Starlette/FastAPI and AIOHTTP:
317
317
 
318
- - [Starlette Example Project](https://github.com/finos/perspective/tree/master/examples/python-starlette).
319
- - [AIOHTTP Example Project](https://github.com/finos/perspective/tree/master/examples/python-aiohttp).
318
+ - [Starlette Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-starlette).
319
+ - [AIOHTTP Example Project](https://github.com/perspective-dev/perspective/tree/master/examples/python-aiohttp).
320
320
 
321
321
  ### Server-only Mode
322
322
 
@@ -389,4 +389,4 @@ def _jupyter_labextension_paths():
389
389
  Read by `jupyter labextension develop`
390
390
  @private
391
391
  """
392
- return [{"src": "labextension", "dest": "@finos/perspective-jupyterlab"}]
392
+ return [{"src": "labextension", "dest": "@perspective-dev/jupyterlab"}]
@@ -0,0 +1,5 @@
1
+ {
2
+ "load_extensions": {
3
+ "@perspective-dev/jupyterlab/extension": true
4
+ }
5
+ }
@@ -16,6 +16,10 @@ import asyncio
16
16
  import random
17
17
  import threading
18
18
 
19
+ from random import sample
20
+ from string import ascii_letters
21
+ from threading import Thread
22
+ from time import sleep
19
23
 
20
24
  class TestServer(object):
21
25
  def test_sync_updates_with_loop_callback_are_sync(self):
@@ -86,9 +90,7 @@ class TestServer(object):
86
90
  loop.close()
87
91
 
88
92
  def test_concurrent_updates_with_limit_tables_are_threadsafe(self):
89
- # This is a tricky tune - at time of writing, 1000 is has a >50%
90
- # chance of triggering this o my dev machine
91
- TEST_ITERATIONS = 1000
93
+ TEST_ITERATIONS = 100
92
94
  global running
93
95
  perspective_server = Server()
94
96
  client = perspective_server.new_local_client()
@@ -156,3 +158,44 @@ class TestServer(object):
156
158
  thread2.start()
157
159
  thread1.join()
158
160
  thread2.join()
161
+
162
+ def test_concurrent_view_creation_with_updates_are_threadsafe(self):
163
+ global running
164
+ s = Server()
165
+ schema = {
166
+ "a": "string",
167
+ "b": "string",
168
+ "c": "string",
169
+ }
170
+
171
+ group_bys = ["a", "b", "c"]
172
+ c = s.new_local_client()
173
+ t = c.table(schema, limit=10000)
174
+ running = True
175
+
176
+ def gen_views():
177
+ global running
178
+ for _ in range(100):
179
+ t.view(columns=list(schema.keys()), group_by=group_bys)
180
+ sleep(0.01)
181
+ running = False
182
+
183
+ def run_psp():
184
+ global running
185
+ while running:
186
+ t.update(
187
+ [
188
+ {
189
+ "a": "".join(sample(ascii_letters, 4)),
190
+ "b": "".join(sample(ascii_letters, 4)),
191
+ "c": "".join(sample(ascii_letters, 4)),
192
+ }
193
+ ]
194
+ )
195
+
196
+ thread1 = Thread(target=run_psp, daemon=True)
197
+ thread2 = Thread(target=gen_views, daemon=True)
198
+ thread1.start()
199
+ thread2.start()
200
+ thread1.join()
201
+ thread2.join()
@@ -125,10 +125,10 @@ class PerspectiveWidget(DOMWidget, PerspectiveViewer):
125
125
 
126
126
  # Required by ipywidgets for proper registration of the backend
127
127
  _model_name = Unicode("PerspectiveModel").tag(sync=True)
128
- _model_module = Unicode("@finos/perspective-jupyterlab").tag(sync=True)
128
+ _model_module = Unicode("@perspective-dev/jupyterlab").tag(sync=True)
129
129
  _model_module_version = Unicode("~{}".format(__version__)).tag(sync=True)
130
130
  _view_name = Unicode("PerspectiveView").tag(sync=True)
131
- _view_module = Unicode("@finos/perspective-jupyterlab").tag(sync=True)
131
+ _view_module = Unicode("@perspective-dev/jupyterlab").tag(sync=True)
132
132
  _view_module_version = Unicode("~{}".format(__version__)).tag(sync=True)
133
133
 
134
134
  def __init__(
@@ -316,8 +316,8 @@ class PerspectiveWidget(DOMWidget, PerspectiveViewer):
316
316
  path = f"cdn/{module}.js"
317
317
 
318
318
  # perspective developer affordance: works with your local `pnpm run start blocks`
319
- # return f"http://localhost:8080/node_modules/@finos/{module}/dist/{path}"
320
- return f"https://cdn.jsdelivr.net/npm/@finos/{module}@{__version__}/dist/{path}"
319
+ # return f"http://localhost:8080/node_modules/@perspective-dev/{module}/dist/{path}"
320
+ return f"https://cdn.jsdelivr.net/npm/@perspective-dev/{module}@{__version__}/dist/{path}"
321
321
 
322
322
  return super(DOMWidget, self)._repr_mimebundle_(**kwargs) | {
323
323
  "text/html": template.substitute(
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "@finos/perspective-jupyterlab",
3
- "version": "3.8.0",
2
+ "name": "@perspective-dev/jupyterlab",
3
+ "version": "4.0.0",
4
4
  "description": "A Jupyterlab extension for the Perspective library, designed to be used with perspective-python.",
5
5
  "files": [
6
6
  "dist/**/*",
@@ -17,39 +17,29 @@
17
17
  "access": "public"
18
18
  },
19
19
  "scripts": {
20
- "bench": "npm-run-all bench:build bench:run",
21
- "bench:build": "echo \"No Benchmarks\"",
22
- "bench:run": "echo \"No Benchmarks\"",
23
- "build": "node build.mjs",
24
- "clean": "npm-run-all clean:*",
25
- "clean:dist": "rimraf dist",
26
- "clean:lib": "rimraf lib",
27
- "clean:labextension": "rimraf ../../rust/perspective-python/perspective/labextension",
28
- "clean:nbextension": "rimraf ../../rust/perspective-python/perspective/nbextension/static",
29
- "test:build": "node build.mjs --test",
30
- "test:jupyter:build": "cpy \"test/arrow/*\" dist/esm",
31
- "test:jupyter": "__JUPYTERLAB_PORT__=6538 npx playwright test --config ../../tools/perspective-test/playwright.config.ts -- --jupyter",
32
- "test": "npm-run-all test:build",
33
- "version": "yarn build"
20
+ "build": "node ./build.mjs",
21
+ "clean": "node ./clean.mjs",
22
+ "test:jupyter": "__JUPYTERLAB_PORT__=6538 npx playwright test --config ../../tools/test/playwright.config.ts -- --jupyter",
23
+ "test:jupyter:build": "node ./build.mjs --test"
34
24
  },
35
25
  "dependencies": {
36
- "@finos/perspective": "workspace:^",
37
- "@finos/perspective-viewer": "workspace:^",
38
- "@finos/perspective-viewer-d3fc": "workspace:^",
39
- "@finos/perspective-viewer-datagrid": "workspace:^",
40
- "@finos/perspective-viewer-openlayers": "workspace:^",
26
+ "@perspective-dev/viewer-d3fc": "workspace:",
27
+ "@perspective-dev/viewer-datagrid": "workspace:",
28
+ "@perspective-dev/viewer-openlayers": "workspace:",
29
+ "@perspective-dev/viewer": "workspace:",
30
+ "@perspective-dev/client": "workspace:",
31
+ "@perspective-dev/server": "workspace:",
41
32
  "@jupyter-widgets/base": ">2 <5",
42
33
  "@jupyterlab/application": ">2 <5",
43
34
  "@lumino/application": "<3",
44
35
  "@lumino/widgets": "<3"
45
36
  },
46
37
  "devDependencies": {
47
- "@finos/perspective-esbuild-plugin": "workspace:^",
48
- "@finos/perspective-test": "workspace:^",
38
+ "@perspective-dev/esbuild-plugin": "workspace:",
39
+ "@perspective-dev/test": "workspace:",
49
40
  "@jupyterlab/builder": "^4",
50
- "copy-webpack-plugin": "~12",
51
41
  "@prospective.co/procss": "^0.1.16",
52
- "cpy": "^9.0.1",
42
+ "copy-webpack-plugin": "~12",
53
43
  "zx": "^8.1.8"
54
44
  },
55
45
  "jupyterlab": {
@@ -73,7 +63,7 @@
73
63
  }
74
64
  },
75
65
  "_build": {
76
- "load": "static/remoteEntry.0c4df9cdbab87a425a95.js",
66
+ "load": "static/remoteEntry.577310d2fae37026b7a4.js",
77
67
  "extension": "./extension",
78
68
  "style": "./style"
79
69
  }