real-ladybug 0.0.1.dev1__cp311-cp311-win_amd64.whl

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.

Potentially problematic release.


This version of real-ladybug might be problematic. Click here for more details.

Files changed (114) hide show
  1. real_ladybug/__init__.py +83 -0
  2. real_ladybug/_lbug.cp311-win_amd64.pyd +0 -0
  3. real_ladybug/_lbug.exp +0 -0
  4. real_ladybug/_lbug.lib +0 -0
  5. real_ladybug/async_connection.py +226 -0
  6. real_ladybug/connection.py +323 -0
  7. real_ladybug/constants.py +7 -0
  8. real_ladybug/database.py +307 -0
  9. real_ladybug/prepared_statement.py +51 -0
  10. real_ladybug/py.typed +0 -0
  11. real_ladybug/query_result.py +511 -0
  12. real_ladybug/torch_geometric_feature_store.py +185 -0
  13. real_ladybug/torch_geometric_graph_store.py +131 -0
  14. real_ladybug/torch_geometric_result_converter.py +282 -0
  15. real_ladybug/types.py +39 -0
  16. real_ladybug-0.0.1.dev1.dist-info/METADATA +88 -0
  17. real_ladybug-0.0.1.dev1.dist-info/RECORD +114 -0
  18. real_ladybug-0.0.1.dev1.dist-info/WHEEL +5 -0
  19. real_ladybug-0.0.1.dev1.dist-info/licenses/LICENSE +21 -0
  20. real_ladybug-0.0.1.dev1.dist-info/top_level.txt +3 -0
  21. real_ladybug-0.0.1.dev1.dist-info/zip-safe +1 -0
  22. real_ladybug-source/scripts/antlr4/hash.py +2 -0
  23. real_ladybug-source/scripts/antlr4/keywordhandler.py +47 -0
  24. real_ladybug-source/scripts/collect-extensions.py +68 -0
  25. real_ladybug-source/scripts/collect-single-file-header.py +126 -0
  26. real_ladybug-source/scripts/export-dbs.py +101 -0
  27. real_ladybug-source/scripts/export-import-test.py +345 -0
  28. real_ladybug-source/scripts/extension/purge-beta.py +34 -0
  29. real_ladybug-source/scripts/generate-cpp-docs/collect_files.py +122 -0
  30. real_ladybug-source/scripts/generate-tinysnb.py +34 -0
  31. real_ladybug-source/scripts/get-clangd-diagnostics.py +233 -0
  32. real_ladybug-source/scripts/migrate-lbug-db.py +308 -0
  33. real_ladybug-source/scripts/multiplatform-test-helper/collect-results.py +71 -0
  34. real_ladybug-source/scripts/multiplatform-test-helper/notify-discord.py +68 -0
  35. real_ladybug-source/scripts/pip-package/package_tar.py +90 -0
  36. real_ladybug-source/scripts/pip-package/setup.py +130 -0
  37. real_ladybug-source/scripts/run-clang-format.py +408 -0
  38. real_ladybug-source/scripts/setup-extension-repo.py +67 -0
  39. real_ladybug-source/scripts/test-simsimd-dispatch.py +45 -0
  40. real_ladybug-source/scripts/update-nightly-build-version.py +81 -0
  41. real_ladybug-source/third_party/brotli/scripts/dictionary/step-01-download-rfc.py +16 -0
  42. real_ladybug-source/third_party/brotli/scripts/dictionary/step-02-rfc-to-bin.py +34 -0
  43. real_ladybug-source/third_party/brotli/scripts/dictionary/step-03-validate-bin.py +35 -0
  44. real_ladybug-source/third_party/brotli/scripts/dictionary/step-04-generate-java-literals.py +85 -0
  45. real_ladybug-source/third_party/pybind11/tools/codespell_ignore_lines_from_errors.py +35 -0
  46. real_ladybug-source/third_party/pybind11/tools/libsize.py +36 -0
  47. real_ladybug-source/third_party/pybind11/tools/make_changelog.py +63 -0
  48. real_ladybug-source/tools/python_api/build/real_ladybug/__init__.py +83 -0
  49. real_ladybug-source/tools/python_api/build/real_ladybug/async_connection.py +226 -0
  50. real_ladybug-source/tools/python_api/build/real_ladybug/connection.py +323 -0
  51. real_ladybug-source/tools/python_api/build/real_ladybug/constants.py +7 -0
  52. real_ladybug-source/tools/python_api/build/real_ladybug/database.py +307 -0
  53. real_ladybug-source/tools/python_api/build/real_ladybug/prepared_statement.py +51 -0
  54. real_ladybug-source/tools/python_api/build/real_ladybug/py.typed +0 -0
  55. real_ladybug-source/tools/python_api/build/real_ladybug/query_result.py +511 -0
  56. real_ladybug-source/tools/python_api/build/real_ladybug/torch_geometric_feature_store.py +185 -0
  57. real_ladybug-source/tools/python_api/build/real_ladybug/torch_geometric_graph_store.py +131 -0
  58. real_ladybug-source/tools/python_api/build/real_ladybug/torch_geometric_result_converter.py +282 -0
  59. real_ladybug-source/tools/python_api/build/real_ladybug/types.py +39 -0
  60. real_ladybug-source/tools/python_api/src_py/__init__.py +83 -0
  61. real_ladybug-source/tools/python_api/src_py/async_connection.py +226 -0
  62. real_ladybug-source/tools/python_api/src_py/connection.py +323 -0
  63. real_ladybug-source/tools/python_api/src_py/constants.py +7 -0
  64. real_ladybug-source/tools/python_api/src_py/database.py +307 -0
  65. real_ladybug-source/tools/python_api/src_py/prepared_statement.py +51 -0
  66. real_ladybug-source/tools/python_api/src_py/py.typed +0 -0
  67. real_ladybug-source/tools/python_api/src_py/query_result.py +511 -0
  68. real_ladybug-source/tools/python_api/src_py/torch_geometric_feature_store.py +185 -0
  69. real_ladybug-source/tools/python_api/src_py/torch_geometric_graph_store.py +131 -0
  70. real_ladybug-source/tools/python_api/src_py/torch_geometric_result_converter.py +282 -0
  71. real_ladybug-source/tools/python_api/src_py/types.py +39 -0
  72. real_ladybug-source/tools/python_api/test/conftest.py +230 -0
  73. real_ladybug-source/tools/python_api/test/disabled_test_extension.py +73 -0
  74. real_ladybug-source/tools/python_api/test/ground_truth.py +430 -0
  75. real_ladybug-source/tools/python_api/test/test_arrow.py +694 -0
  76. real_ladybug-source/tools/python_api/test/test_async_connection.py +159 -0
  77. real_ladybug-source/tools/python_api/test/test_blob_parameter.py +145 -0
  78. real_ladybug-source/tools/python_api/test/test_connection.py +49 -0
  79. real_ladybug-source/tools/python_api/test/test_database.py +234 -0
  80. real_ladybug-source/tools/python_api/test/test_datatype.py +372 -0
  81. real_ladybug-source/tools/python_api/test/test_df.py +564 -0
  82. real_ladybug-source/tools/python_api/test/test_dict.py +112 -0
  83. real_ladybug-source/tools/python_api/test/test_exception.py +54 -0
  84. real_ladybug-source/tools/python_api/test/test_fsm.py +227 -0
  85. real_ladybug-source/tools/python_api/test/test_get_header.py +49 -0
  86. real_ladybug-source/tools/python_api/test/test_helper.py +8 -0
  87. real_ladybug-source/tools/python_api/test/test_issue.py +147 -0
  88. real_ladybug-source/tools/python_api/test/test_iteration.py +96 -0
  89. real_ladybug-source/tools/python_api/test/test_networkx.py +437 -0
  90. real_ladybug-source/tools/python_api/test/test_parameter.py +340 -0
  91. real_ladybug-source/tools/python_api/test/test_prepared_statement.py +117 -0
  92. real_ladybug-source/tools/python_api/test/test_query_result.py +54 -0
  93. real_ladybug-source/tools/python_api/test/test_query_result_close.py +44 -0
  94. real_ladybug-source/tools/python_api/test/test_scan_pandas.py +676 -0
  95. real_ladybug-source/tools/python_api/test/test_scan_pandas_pyarrow.py +714 -0
  96. real_ladybug-source/tools/python_api/test/test_scan_polars.py +165 -0
  97. real_ladybug-source/tools/python_api/test/test_scan_pyarrow.py +167 -0
  98. real_ladybug-source/tools/python_api/test/test_timeout.py +11 -0
  99. real_ladybug-source/tools/python_api/test/test_torch_geometric.py +640 -0
  100. real_ladybug-source/tools/python_api/test/test_torch_geometric_remote_backend.py +111 -0
  101. real_ladybug-source/tools/python_api/test/test_udf.py +207 -0
  102. real_ladybug-source/tools/python_api/test/test_version.py +6 -0
  103. real_ladybug-source/tools/python_api/test/test_wal.py +80 -0
  104. real_ladybug-source/tools/python_api/test/type_aliases.py +10 -0
  105. real_ladybug-source/tools/rust_api/update_version.py +47 -0
  106. real_ladybug-source/tools/shell/test/conftest.py +218 -0
  107. real_ladybug-source/tools/shell/test/test_helper.py +60 -0
  108. real_ladybug-source/tools/shell/test/test_shell_basics.py +325 -0
  109. real_ladybug-source/tools/shell/test/test_shell_commands.py +656 -0
  110. real_ladybug-source/tools/shell/test/test_shell_control_edit.py +438 -0
  111. real_ladybug-source/tools/shell/test/test_shell_control_search.py +468 -0
  112. real_ladybug-source/tools/shell/test/test_shell_esc_edit.py +232 -0
  113. real_ladybug-source/tools/shell/test/test_shell_esc_search.py +162 -0
  114. real_ladybug-source/tools/shell/test/test_shell_flags.py +645 -0
@@ -0,0 +1,162 @@
1
+ import pexpect
2
+ import pytest
3
+
4
+ from test_helper import KEY_ACTION
5
+
6
+
7
+ def set_up_search(test) -> None:
8
+ test.send_finished_statement('RETURN "databases rule" AS a;\r')
9
+ assert (
10
+ test.shell_process.expect_exact(["\u2502 databases rule \u2502", pexpect.EOF])
11
+ == 0
12
+ )
13
+ test.send_finished_statement('RETURN "lbug is cool" AS b;\r')
14
+ assert (
15
+ test.shell_process.expect_exact(["\u2502 lbug is cool \u2502", pexpect.EOF])
16
+ == 0
17
+ )
18
+ test.send_finished_statement('RETURN "the shell is fun" AS c;\r')
19
+ assert (
20
+ test.shell_process.expect_exact(["\u2502 the shell is fun \u2502", pexpect.EOF])
21
+ == 0
22
+ )
23
+ test.send_control_statement(KEY_ACTION.CTRL_R.value)
24
+
25
+
26
+ @pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)
27
+ def test_accept_search(test) -> None:
28
+ test.send_finished_statement('RETURN "databases" AS a;\r')
29
+ assert (
30
+ test.shell_process.expect_exact(["\u2502 databases \u2502", pexpect.EOF]) == 0
31
+ )
32
+ test.send_control_statement(KEY_ACTION.CTRL_R.value)
33
+ test.send_statement("databases")
34
+ test.send_statement("\x1b\x1b")
35
+ test.send_finished_statement(" rule\x1b[F\r")
36
+ assert (
37
+ test.shell_process.expect_exact(["\u2502 databases rule \u2502", pexpect.EOF])
38
+ == 0
39
+ )
40
+
41
+
42
+ @pytest.mark.parametrize(
43
+ "esc",
44
+ [
45
+ "\x1b[H",
46
+ "\x1b[1~",
47
+ "\x1bOH",
48
+ ],
49
+ )
50
+ @pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)
51
+ def test_accept_move_home(test, esc) -> None:
52
+ test.send_finished_statement('"databases rule" AS a;\r')
53
+ assert (
54
+ test.shell_process.expect_exact(
55
+ [
56
+ "Error: Parser exception: extraneous input '\"databases rule\"'",
57
+ pexpect.EOF,
58
+ ],
59
+ )
60
+ == 0
61
+ )
62
+ test.send_control_statement(KEY_ACTION.CTRL_R.value)
63
+ test.send_statement("databases")
64
+ test.send_statement(esc)
65
+ test.send_statement("RETURN \x1b[F")
66
+ test.send_finished_statement(KEY_ACTION.ENTER.value)
67
+ assert (
68
+ test.shell_process.expect_exact(["\u2502 databases rule \u2502", pexpect.EOF])
69
+ == 0
70
+ )
71
+
72
+
73
+ @pytest.mark.parametrize(
74
+ "esc",
75
+ [
76
+ "\x1b[4~",
77
+ "\x1b[8~",
78
+ "\x1b[F",
79
+ "\x1bOF",
80
+ ],
81
+ )
82
+ @pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)
83
+ def test_accept_move_end(test, esc) -> None:
84
+ test.send_finished_statement("RETURN ;\r")
85
+ assert (
86
+ test.shell_process.expect_exact(
87
+ [
88
+ "Error: Parser exception: Invalid input <RETURN ;>: expected rule oC_RegularQuery (line: 1, offset: 7)",
89
+ pexpect.EOF,
90
+ ],
91
+ )
92
+ == 0
93
+ )
94
+ test.send_control_statement(KEY_ACTION.CTRL_R.value)
95
+ test.send_statement("return")
96
+ test.send_statement(esc)
97
+ test.send_statement(KEY_ACTION.BACKSPACE.value) # remove semicolon
98
+ test.send_finished_statement('"databases rule" AS a;\r')
99
+ assert (
100
+ test.shell_process.expect_exact(["\u2502 databases rule \u2502", pexpect.EOF])
101
+ == 0
102
+ )
103
+
104
+
105
+ @pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)
106
+ def test_next_history(test) -> None:
107
+ set_up_search(test)
108
+ test.send_control_statement(KEY_ACTION.CTRL_R.value)
109
+ test.send_statement("the shell is fun")
110
+ test.send_statement("\x1b[A" * 2)
111
+ test.send_finished_statement(KEY_ACTION.ENTER.value)
112
+ assert (
113
+ test.shell_process.expect_exact(["\u2502 databases rule \u2502", pexpect.EOF])
114
+ == 0
115
+ )
116
+
117
+
118
+ @pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)
119
+ def test_prev_history(test) -> None:
120
+ set_up_search(test)
121
+ test.send_control_statement(KEY_ACTION.CTRL_R.value)
122
+ test.send_statement("databases")
123
+ test.send_statement("\x1b[B" * 2)
124
+ test.send_finished_statement(KEY_ACTION.ENTER.value)
125
+ assert (
126
+ test.shell_process.expect_exact(["\u2502 the shell is fun \u2502", pexpect.EOF])
127
+ == 0
128
+ )
129
+
130
+
131
+ @pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)
132
+ def test_move_left(test) -> None:
133
+ test.send_finished_statement('RETURN "databasesrule" AS a;\r')
134
+ assert (
135
+ test.shell_process.expect_exact(["\u2502 databasesrule \u2502", pexpect.EOF])
136
+ == 0
137
+ )
138
+ test.send_control_statement(KEY_ACTION.CTRL_R.value)
139
+ test.send_statement("databasesr")
140
+ test.send_statement("\x1b[D")
141
+ test.send_finished_statement(" \x1b[F\r")
142
+ assert (
143
+ test.shell_process.expect_exact(["\u2502 databases rule \u2502", pexpect.EOF])
144
+ == 0
145
+ )
146
+
147
+
148
+ @pytest.mark.parametrize("test", ["multiline", "singleline"], indirect=True)
149
+ def test_move_right(test) -> None:
150
+ test.send_finished_statement('RETURN "databasesrule" AS a;\r')
151
+ assert (
152
+ test.shell_process.expect_exact(["\u2502 databasesrule \u2502", pexpect.EOF])
153
+ == 0
154
+ )
155
+ test.send_control_statement(KEY_ACTION.CTRL_R.value)
156
+ test.send_statement("database")
157
+ test.send_statement("\x1b[C")
158
+ test.send_finished_statement(" \x1b[F\r")
159
+ assert (
160
+ test.shell_process.expect_exact(["\u2502 databases rule \u2502", pexpect.EOF])
161
+ == 0
162
+ )