matrixone-python-sdk 0.1.0__py3-none-any.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.
- matrixone/__init__.py +155 -0
- matrixone/account.py +723 -0
- matrixone/async_client.py +3913 -0
- matrixone/async_metadata_manager.py +311 -0
- matrixone/async_orm.py +123 -0
- matrixone/async_vector_index_manager.py +633 -0
- matrixone/base_client.py +208 -0
- matrixone/client.py +4672 -0
- matrixone/config.py +452 -0
- matrixone/connection_hooks.py +286 -0
- matrixone/exceptions.py +89 -0
- matrixone/logger.py +782 -0
- matrixone/metadata.py +820 -0
- matrixone/moctl.py +219 -0
- matrixone/orm.py +2277 -0
- matrixone/pitr.py +646 -0
- matrixone/pubsub.py +771 -0
- matrixone/restore.py +411 -0
- matrixone/search_vector_index.py +1176 -0
- matrixone/snapshot.py +550 -0
- matrixone/sql_builder.py +844 -0
- matrixone/sqlalchemy_ext/__init__.py +161 -0
- matrixone/sqlalchemy_ext/adapters.py +163 -0
- matrixone/sqlalchemy_ext/dialect.py +534 -0
- matrixone/sqlalchemy_ext/fulltext_index.py +895 -0
- matrixone/sqlalchemy_ext/fulltext_search.py +1686 -0
- matrixone/sqlalchemy_ext/hnsw_config.py +194 -0
- matrixone/sqlalchemy_ext/ivf_config.py +252 -0
- matrixone/sqlalchemy_ext/table_builder.py +351 -0
- matrixone/sqlalchemy_ext/vector_index.py +1721 -0
- matrixone/sqlalchemy_ext/vector_type.py +948 -0
- matrixone/version.py +580 -0
- matrixone_python_sdk-0.1.0.dist-info/METADATA +706 -0
- matrixone_python_sdk-0.1.0.dist-info/RECORD +122 -0
- matrixone_python_sdk-0.1.0.dist-info/WHEEL +5 -0
- matrixone_python_sdk-0.1.0.dist-info/entry_points.txt +5 -0
- matrixone_python_sdk-0.1.0.dist-info/licenses/LICENSE +200 -0
- matrixone_python_sdk-0.1.0.dist-info/top_level.txt +2 -0
- tests/__init__.py +19 -0
- tests/offline/__init__.py +20 -0
- tests/offline/conftest.py +77 -0
- tests/offline/test_account.py +703 -0
- tests/offline/test_async_client_query_comprehensive.py +1218 -0
- tests/offline/test_basic.py +54 -0
- tests/offline/test_case_sensitivity.py +227 -0
- tests/offline/test_connection_hooks_offline.py +287 -0
- tests/offline/test_dialect_schema_handling.py +609 -0
- tests/offline/test_explain_methods.py +346 -0
- tests/offline/test_filter_logical_in.py +237 -0
- tests/offline/test_fulltext_search_comprehensive.py +795 -0
- tests/offline/test_ivf_config.py +249 -0
- tests/offline/test_join_methods.py +281 -0
- tests/offline/test_join_sqlalchemy_compatibility.py +276 -0
- tests/offline/test_logical_in_method.py +237 -0
- tests/offline/test_matrixone_version_parsing.py +264 -0
- tests/offline/test_metadata_offline.py +557 -0
- tests/offline/test_moctl.py +300 -0
- tests/offline/test_moctl_simple.py +251 -0
- tests/offline/test_model_support_offline.py +359 -0
- tests/offline/test_model_support_simple.py +225 -0
- tests/offline/test_pinecone_filter_offline.py +377 -0
- tests/offline/test_pitr.py +585 -0
- tests/offline/test_pubsub.py +712 -0
- tests/offline/test_query_update.py +283 -0
- tests/offline/test_restore.py +445 -0
- tests/offline/test_snapshot_comprehensive.py +384 -0
- tests/offline/test_sql_escaping_edge_cases.py +551 -0
- tests/offline/test_sqlalchemy_integration.py +382 -0
- tests/offline/test_sqlalchemy_vector_integration.py +434 -0
- tests/offline/test_table_builder.py +198 -0
- tests/offline/test_unified_filter.py +398 -0
- tests/offline/test_unified_transaction.py +495 -0
- tests/offline/test_vector_index.py +238 -0
- tests/offline/test_vector_operations.py +688 -0
- tests/offline/test_vector_type.py +174 -0
- tests/offline/test_version_core.py +328 -0
- tests/offline/test_version_management.py +372 -0
- tests/offline/test_version_standalone.py +652 -0
- tests/online/__init__.py +20 -0
- tests/online/conftest.py +216 -0
- tests/online/test_account_management.py +194 -0
- tests/online/test_advanced_features.py +344 -0
- tests/online/test_async_client_interfaces.py +330 -0
- tests/online/test_async_client_online.py +285 -0
- tests/online/test_async_model_insert_online.py +293 -0
- tests/online/test_async_orm_online.py +300 -0
- tests/online/test_async_simple_query_online.py +802 -0
- tests/online/test_async_transaction_simple_query.py +300 -0
- tests/online/test_basic_connection.py +130 -0
- tests/online/test_client_online.py +238 -0
- tests/online/test_config.py +90 -0
- tests/online/test_config_validation.py +123 -0
- tests/online/test_connection_hooks_new_online.py +217 -0
- tests/online/test_dialect_schema_handling_online.py +331 -0
- tests/online/test_filter_logical_in_online.py +374 -0
- tests/online/test_fulltext_comprehensive.py +1773 -0
- tests/online/test_fulltext_label_online.py +433 -0
- tests/online/test_fulltext_search_online.py +842 -0
- tests/online/test_ivf_stats_online.py +506 -0
- tests/online/test_logger_integration.py +311 -0
- tests/online/test_matrixone_query_orm.py +540 -0
- tests/online/test_metadata_online.py +579 -0
- tests/online/test_model_insert_online.py +255 -0
- tests/online/test_mysql_driver_validation.py +213 -0
- tests/online/test_orm_advanced_features.py +2022 -0
- tests/online/test_orm_cte_integration.py +269 -0
- tests/online/test_orm_online.py +270 -0
- tests/online/test_pinecone_filter.py +708 -0
- tests/online/test_pubsub_operations.py +352 -0
- tests/online/test_query_methods.py +225 -0
- tests/online/test_query_update_online.py +433 -0
- tests/online/test_search_vector_index.py +557 -0
- tests/online/test_simple_fulltext_online.py +915 -0
- tests/online/test_snapshot_comprehensive.py +998 -0
- tests/online/test_sqlalchemy_engine_integration.py +336 -0
- tests/online/test_sqlalchemy_integration.py +425 -0
- tests/online/test_transaction_contexts.py +1219 -0
- tests/online/test_transaction_insert_methods.py +356 -0
- tests/online/test_transaction_query_methods.py +288 -0
- tests/online/test_unified_filter_online.py +529 -0
- tests/online/test_vector_comprehensive.py +706 -0
- tests/online/test_version_management.py +291 -0
@@ -0,0 +1,122 @@
|
|
1
|
+
matrixone/__init__.py,sha256=7bePzwzerZTiZIlbUT9zI_u4fp49DvQNcIqyiIvEVVs,3966
|
2
|
+
matrixone/account.py,sha256=0r9xLNTiUfXa3xWZQUhEJ_uUcNp_gja-YulOR5iYDU4,24712
|
3
|
+
matrixone/async_client.py,sha256=HeuUDJbABLi9O-4-2OF8oYW_fSvobcD8z-bKsQl0DO4,150693
|
4
|
+
matrixone/async_metadata_manager.py,sha256=7k5qtQbKO-52IXzhDN0qhvYdp5wars5M6ZjdSLfD8RM,10230
|
5
|
+
matrixone/async_orm.py,sha256=O4Rf85MnZg0_fuLvbHGfOPrHI2OLznYwLk9eam5J5ik,4864
|
6
|
+
matrixone/async_vector_index_manager.py,sha256=i881732IV4shT4NqqLBbEW9_z7XYCNlaJgPitCyIkhM,22953
|
7
|
+
matrixone/base_client.py,sha256=PUhq0c7Si9OIk83B4ZZ73ozwaHDRZ1zi0Q94YixseqY,6952
|
8
|
+
matrixone/client.py,sha256=XkDphVnmoOyhISmOy0zz6ZhX7QVyW3Yq3Xp6qxTqHWU,180877
|
9
|
+
matrixone/config.py,sha256=jrm1rLBhLWrX3dVdPx67sFaZ_9M8Vj4hImVrAmFaYbw,13917
|
10
|
+
matrixone/connection_hooks.py,sha256=kjv0HMCUZkma-9nTndNBV66NVcp4cTWs-8u5b6KCj2E,13530
|
11
|
+
matrixone/exceptions.py,sha256=oUQUY_TD8UTSzZzbwGdUgQ0kFJIYZq5Fx-vFsMaOfvw,1787
|
12
|
+
matrixone/logger.py,sha256=aZmetje_AqtyxFxsqZvp-3R68n8I_ldplRGfV2MHg48,26105
|
13
|
+
matrixone/metadata.py,sha256=wHQNrW4bRYOriujZv-ym9F68XEwJJt8N23xcyNQ9wKY,31706
|
14
|
+
matrixone/moctl.py,sha256=rLt69ZlhIr_pCbyu8cImKgdR_YOGf85XvqCHcW12sc0,6714
|
15
|
+
matrixone/orm.py,sha256=QWNdfJ067KcgWU-eB__vXwJuANBaDUeVVG7thFH5kiU,90473
|
16
|
+
matrixone/pitr.py,sha256=NPsexPsJXIAiJTH3oMyFOwiXWjvfohPzWQyFHhQKh5k,21632
|
17
|
+
matrixone/pubsub.py,sha256=ckaG6Z3IuEtcdwp11qvB88PrCDHYymocSOJ1v4TftzY,26893
|
18
|
+
matrixone/restore.py,sha256=V6NbMcCQb5h2YONVNL_CCXtoqI-Vyl5Hp_lTzYAPVCY,15715
|
19
|
+
matrixone/search_vector_index.py,sha256=NjQpluaPcja66herm-OYq3nNeNAqY_-FGGL4SOBOWNA,46075
|
20
|
+
matrixone/snapshot.py,sha256=cOatk26Z6Jt6aAdasOMejxxiv73S7Z2o2if_va20Ihg,18103
|
21
|
+
matrixone/sql_builder.py,sha256=ZR9TpRkV4cN_RiDJQXMLwSzodpESyxAqV-TTIr--ZbY,29009
|
22
|
+
matrixone/version.py,sha256=jsHOK9_liBu4zT4r2PWUu4RqIEcYmCGERdMdVJZhJ14,19923
|
23
|
+
matrixone/sqlalchemy_ext/__init__.py,sha256=L9f3mizOwnUSBRlaondoePqvnLo9o_CKe42pdkEf0Sk,4003
|
24
|
+
matrixone/sqlalchemy_ext/adapters.py,sha256=-PoQtxN8uveto4Me2BTyTq1FoeSj8qo3TkUKAhoUd4w,5286
|
25
|
+
matrixone/sqlalchemy_ext/dialect.py,sha256=wrAQDjDDpCz6HT2Atrz7QXAzbyxaNTbRXcauh2REa1A,21100
|
26
|
+
matrixone/sqlalchemy_ext/fulltext_index.py,sha256=OceS34yg1kG-1uopG1lDf7GbVyRiUnxzKHDUHYLNLuA,27614
|
27
|
+
matrixone/sqlalchemy_ext/fulltext_search.py,sha256=1pCMxw9GyTjRhjsJ9KbKq_YsMEPuCPqcVanX65QEX_Y,58882
|
28
|
+
matrixone/sqlalchemy_ext/hnsw_config.py,sha256=5NYZXK1jsIKlSTrtqpv8n2V_yhbMsmOhItFrbmS5Vs4,5498
|
29
|
+
matrixone/sqlalchemy_ext/ivf_config.py,sha256=-esAijWMfyF1GUJivpZh-F4lvyKRmY8LYIzVgmMVtVo,6367
|
30
|
+
matrixone/sqlalchemy_ext/table_builder.py,sha256=JVritBPnCXZt0eJUivDrmGdlpaYO-uL7i2n24HiarEE,12870
|
31
|
+
matrixone/sqlalchemy_ext/vector_index.py,sha256=UIWuU30HjWypyfq30UiqUJ078DoD7Q5HtD_7iWwjnb0,54832
|
32
|
+
matrixone/sqlalchemy_ext/vector_type.py,sha256=HaOJ9dRdW_yrecD9qGUucW9bMfM3zCxbDC-0Ca32Kmk,30669
|
33
|
+
matrixone_python_sdk-0.1.0.dist-info/licenses/LICENSE,sha256=-PpUMwDyMyFlH9H7cnzkTh0Uo42tRvz43k7hnxe7G_I,11252
|
34
|
+
tests/__init__.py,sha256=odB22tIaJIHSwRhumhDlQYD6Fug_C0opWa07dSKkeQs,694
|
35
|
+
tests/offline/__init__.py,sha256=M13mz7gtVDS0_dJUW1EFyyiAGhEj282k3ia7eWA3dPs,703
|
36
|
+
tests/offline/conftest.py,sha256=Mz_NT6GBOxqSZsSCR2SXe1pkSpLGKT2-ssWNHhh9xOg,2494
|
37
|
+
tests/offline/test_account.py,sha256=uCHKPOBGiJrpEwXdyF2CoNoS5yqxuyKJgLTPMvKZQbk,26723
|
38
|
+
tests/offline/test_async_client_query_comprehensive.py,sha256=ZS-HcaQmQFlF9_QjVYn4cgAS6Mg3ZDwguFxqDXpc_Ak,45356
|
39
|
+
tests/offline/test_basic.py,sha256=pVyPnidD5jIoC8_40U1iXND29399G-0O5e4itm-2uhc,1710
|
40
|
+
tests/offline/test_case_sensitivity.py,sha256=aYlhA5F8RSlSy6wl3HWIrPylE3Z3eAUf4RWQohwD0eA,8715
|
41
|
+
tests/offline/test_connection_hooks_offline.py,sha256=pMbkjiEdn5ShljuX8QZRVnsMQLbJxI43tfb0saohBRw,11678
|
42
|
+
tests/offline/test_dialect_schema_handling.py,sha256=WK22Cu3cI1uZ2RtmXmkwnWrYXrwMdcXkhqHTwp0Bqqo,24380
|
43
|
+
tests/offline/test_explain_methods.py,sha256=QGSwqGGulZ-8e0pnshQ9A0JwC-CQZ6GcE7mkp_LIYIw,12683
|
44
|
+
tests/offline/test_filter_logical_in.py,sha256=Qb-bJiy5lhQaVlTeVNVZ75v6Xyx4Qd2IS_faaxC4VUg,8967
|
45
|
+
tests/offline/test_fulltext_search_comprehensive.py,sha256=IjwwR3ygDJY6EXyF0CN88_IJLnZnKi2EqJ9hNZtenE8,30918
|
46
|
+
tests/offline/test_ivf_config.py,sha256=1tGaT56KEhHVSXIUpFLb5Cn7i7Lkd9KqKelgmyXd7Hs,8907
|
47
|
+
tests/offline/test_join_methods.py,sha256=rTt2ZFKsuh4l6BDYThAm24eVD4kkxEmiO4_BADHqBA0,11121
|
48
|
+
tests/offline/test_join_sqlalchemy_compatibility.py,sha256=y5rVJNsFoekFxETcqLjMvJLUxSuEN30DY-NZCfqX3FE,11342
|
49
|
+
tests/offline/test_logical_in_method.py,sha256=u7xA4VevWIfoA-DSPvw84Gu-M0nu5oL7QQgabws1uPg,8714
|
50
|
+
tests/offline/test_matrixone_version_parsing.py,sha256=P6XfUjq_ZtmO7Jh_U0yZM5Rt8MnEBKU6lo-uiZnVmbs,10716
|
51
|
+
tests/offline/test_metadata_offline.py,sha256=tJmpJyhVCzLgGbaNDELPQUokBfnKjSLGFEWue6s4Pfo,20865
|
52
|
+
tests/offline/test_moctl.py,sha256=_-1jddq-ku_yMboy-sFt0mEzVzQu0StOFaFUlUSyhBQ,11313
|
53
|
+
tests/offline/test_moctl_simple.py,sha256=X6TF7FBuIgNCg7cB3uLhoP8PxpKSFYntbFeFpo9Bze4,9363
|
54
|
+
tests/offline/test_model_support_offline.py,sha256=mG9pmx9Pkyi--Iui8bPh4PmihDsWKSqtqRPQJBSX6M0,15906
|
55
|
+
tests/offline/test_model_support_simple.py,sha256=o23CDC63pi9ATJ0Huk9_Brvg8Ja8ypGgAxRoDd1rzgc,8084
|
56
|
+
tests/offline/test_pinecone_filter_offline.py,sha256=lq6Npg1DBhKVYClaZGrvjTK54xBRs9JVhVHdh5ObwhA,15894
|
57
|
+
tests/offline/test_pitr.py,sha256=-eRPjOsAZZSnk4Iw2N-GCbCB3tqEr-Rg0l2q6XT290o,25166
|
58
|
+
tests/offline/test_pubsub.py,sha256=ivn87EHQlpnTYCJC48RVAWGqJWfWP4J50iHiOAmm4Oo,26964
|
59
|
+
tests/offline/test_query_update.py,sha256=Tm4mVwlqJMK6GT8TjX3pExUI2soo74XsrQc5uVjuH7U,10658
|
60
|
+
tests/offline/test_restore.py,sha256=bf7iU_2y-0OwqoSSKKTBeqX1rpTrd4wOFuKHk8IYyJU,17024
|
61
|
+
tests/offline/test_snapshot_comprehensive.py,sha256=er8RzIyyA_-A6mEcwz-Kfn1WdwwimEynTjWEwnPUGJU,15361
|
62
|
+
tests/offline/test_sql_escaping_edge_cases.py,sha256=ss20WECSAhKcSuKq5p5v2R9aaMzCNr_5fPoN0UTcrf0,19551
|
63
|
+
tests/offline/test_sqlalchemy_integration.py,sha256=sUemCNubIyxE2zrSpLXgvlTGcxxgLJOXt-8ymN5FwLY,13416
|
64
|
+
tests/offline/test_sqlalchemy_vector_integration.py,sha256=p-Rmh-BOI9XvJg7cOSY9NrelvVptWWlG0m4yQg3kjCw,16248
|
65
|
+
tests/offline/test_table_builder.py,sha256=vbThJUz2whnG_KVwmuxcTPiCXnNa3OGgWmts-2MAN4g,6910
|
66
|
+
tests/offline/test_unified_filter.py,sha256=UHx9DnL5VR82tISLii-g9C9cphQhiIPe3XN91eJJz00,15150
|
67
|
+
tests/offline/test_unified_transaction.py,sha256=DOja8L1jLpDumcN3kAoDtLE3W4xRCozoV7UpZLO9Jn8,19153
|
68
|
+
tests/offline/test_vector_index.py,sha256=OBb8OBNKegCxxf4JVAn-nXMvKb3gPkbCjACmTQlixfo,7809
|
69
|
+
tests/offline/test_vector_operations.py,sha256=7-Ee12gD7HQ-Kf4arvT3s1v5qCjryP5PpJ27TG9MLts,26101
|
70
|
+
tests/offline/test_vector_type.py,sha256=TGjfxhmbr5shmI8YRY3-4QtHsAeiMmXyI4R68jMXMx4,6047
|
71
|
+
tests/offline/test_version_core.py,sha256=w_WFejH_Lto4fP7pH1xtojh_FbAxauvkF0q_f0yCLHU,11774
|
72
|
+
tests/offline/test_version_management.py,sha256=-KJcNg_e0CnCphxgJTyaYFt7VuCT5H0RwHaaXmxWv40,13448
|
73
|
+
tests/offline/test_version_standalone.py,sha256=zCJg4aiezoyOL66bkLoTk0v77jNeh2FaAKVaCnAHqPI,23671
|
74
|
+
tests/online/__init__.py,sha256=91rCeFIUZe6Ld-d4PonsoBc2rSHxPGlt6pYGSNsjyzY,692
|
75
|
+
tests/online/conftest.py,sha256=1xOqAAFYsx9Io0e3m7DUQNX60B3sqvY98l8JhXY1CAA,7504
|
76
|
+
tests/online/test_account_management.py,sha256=mWIF3kPaegcb-JEhHBM9LrSae2xZ3ppjkRefWEzzwH4,6929
|
77
|
+
tests/online/test_advanced_features.py,sha256=f0oOe1bB6dT4bXZqx4LzrWd4ljwwcr9iIZLDHnTdPhU,13641
|
78
|
+
tests/online/test_async_client_interfaces.py,sha256=jWVIoVGpzhziYzdohThtnio5Zv8DeAwrNppPHn5idBo,12262
|
79
|
+
tests/online/test_async_client_online.py,sha256=g_BCdRlLFWF7XNFp0_EE0cTc_LpVAyfiDzA6oi9Z2oI,10873
|
80
|
+
tests/online/test_async_model_insert_online.py,sha256=YPlcNjuaeimvG355JjjgyZUPfa9J0HtC5FVJr9uIp_k,10857
|
81
|
+
tests/online/test_async_orm_online.py,sha256=ed2y3PyvnWURC-O-lNnWXPVSrVZQu9VmZtNVSwlU_UY,10918
|
82
|
+
tests/online/test_async_simple_query_online.py,sha256=nBMsCv-GaEiSRxh1juLNCiXNNsfUwWRApQvStzLeGr4,31021
|
83
|
+
tests/online/test_async_transaction_simple_query.py,sha256=25z0GN2MiAFGEN3Q4xTEUeOgOkDoGswhgqqkE4FVDmU,11792
|
84
|
+
tests/online/test_basic_connection.py,sha256=rDukB2MN3Gy_yLCG9_lHtUCcfFoSdkABCTpLsdwJYWo,5010
|
85
|
+
tests/online/test_client_online.py,sha256=w9ainOy0VnjSFOkGsSzrdB0jE-0wc87Hp4IqQTJS0OM,8716
|
86
|
+
tests/online/test_config.py,sha256=YwghdNuw5VBXP99kxKwxO47-fn5Hv6tXmtRxCCUZQMs,3323
|
87
|
+
tests/online/test_config_validation.py,sha256=0iavqxuonVI5VZDlHIGPqi9RG6_7RkRJmDAf1TywSk0,4770
|
88
|
+
tests/online/test_connection_hooks_new_online.py,sha256=dYKfI9ZPvWZNzwb9vqtycwdgUMj-Yksjg7CLIaRlZNQ,8017
|
89
|
+
tests/online/test_dialect_schema_handling_online.py,sha256=baIVDgH0cxyWYOMau8CXPV1F536VNn5lDtyFEEL5mis,12808
|
90
|
+
tests/online/test_filter_logical_in_online.py,sha256=-OrmHSMyk6nYap5OCICaImt9AQ53_vjxFbiIcstMPj8,14137
|
91
|
+
tests/online/test_fulltext_comprehensive.py,sha256=lJ_XMkZnHe1HPsbXS9O5F9tBBsPKTBNUnx78KgKTv3w,74063
|
92
|
+
tests/online/test_fulltext_label_online.py,sha256=1ExVrGIOA7dfG6UiB7Ul6xeLrLY9u6oAjjT4hYNtr8E,16534
|
93
|
+
tests/online/test_fulltext_search_online.py,sha256=711WdigiDR71nwtqLlVl39_lNocbWlNnJR5W6hBhl50,33660
|
94
|
+
tests/online/test_ivf_stats_online.py,sha256=Fdi_-bleJVXtWzHNfeA6eCgVdlvSvpEfop7GGUZTQ9E,19845
|
95
|
+
tests/online/test_logger_integration.py,sha256=iv0TrKZGRg-oxjbp55fYixbfpdqLFWQDR8mXeaSKArg,11824
|
96
|
+
tests/online/test_matrixone_query_orm.py,sha256=WYH6HxcfnNqtQ05kKHRcmwmWHXtDz8Ts0pUwuSdgo_U,20130
|
97
|
+
tests/online/test_metadata_online.py,sha256=7Wit0ThVEh-rvVX6r_trh6lZulx-OXQe2yVtfrPRyuo,23850
|
98
|
+
tests/online/test_model_insert_online.py,sha256=kImL0FWTKPwZudWrjmkRl3ZQe5nJLZOsx7tgPZ1Suxw,8797
|
99
|
+
tests/online/test_mysql_driver_validation.py,sha256=_gRlUsgHt4sqQnpTP_TEJWOPfxBRBXii3vyN_Ue2n1g,7879
|
100
|
+
tests/online/test_orm_advanced_features.py,sha256=_B0qYvhZUkkekTtKAQjkSy_Ihmv6QjfuBgaUM8nxWRM,85296
|
101
|
+
tests/online/test_orm_cte_integration.py,sha256=qTUGvv7hjeRHRaE4vdT7ZYhBP6Pz2IvuzapyC-srXr4,9923
|
102
|
+
tests/online/test_orm_online.py,sha256=RvXNjRISjBO1tgJVOJDfXhsqN8eQqCj8SnnnV8TysAQ,9483
|
103
|
+
tests/online/test_pinecone_filter.py,sha256=qM4xrK8jiB4hUMEl4JeLM5BZFS3k_4ZKnQRuAl3l-cc,27892
|
104
|
+
tests/online/test_pubsub_operations.py,sha256=RyxbXth_Cr7oL8QR3gK0quk8ajAKq6ce3nOPdBIQmG0,13294
|
105
|
+
tests/online/test_query_methods.py,sha256=EMAb0xJZFxNEjlG-HWmiL8YwHSVxd1On3Vi3UEU2C5k,9154
|
106
|
+
tests/online/test_query_update_online.py,sha256=MjvrD7dUGtIpDzhjZNsNvvq-_hTGcmSBibSS6ivbibg,17261
|
107
|
+
tests/online/test_search_vector_index.py,sha256=niN9WeE4cqx_vge1RoPpveffqAdeKHJ5XwdWi0wj-KQ,24158
|
108
|
+
tests/online/test_simple_fulltext_online.py,sha256=gNHETrSZ9sXZENmI0YkJ1fTJm2cK9rkhEW8XjRXqfZ0,38283
|
109
|
+
tests/online/test_snapshot_comprehensive.py,sha256=A8_Qvzxg5f6hkFF0tkESTyDQJSPsMX7nnBEsyY5Vmcc,40603
|
110
|
+
tests/online/test_sqlalchemy_engine_integration.py,sha256=XmdgvkJc9TOzkCP4O_GBCTRBdjQ5RncYfuKkcuHqick,12096
|
111
|
+
tests/online/test_sqlalchemy_integration.py,sha256=Za2s5Z55SxSAGdwTAfee2I7xoDuH6KLGSBGd-rsF_Wo,15439
|
112
|
+
tests/online/test_transaction_contexts.py,sha256=adliTmahWdGuXgbrqZuH7yPGXaHMzh4txoTCpiCiwus,49663
|
113
|
+
tests/online/test_transaction_insert_methods.py,sha256=lxBcNKTlpc_m_bJFu12bgiju-8Z_tydAufJp7skXSiA,14009
|
114
|
+
tests/online/test_transaction_query_methods.py,sha256=esBk2Ru6CbAbHNcsU3WtpUm41vbsNAvLnaC-MmDt3D8,10909
|
115
|
+
tests/online/test_unified_filter_online.py,sha256=A_rxj3lnY8LrQNy-FXSpmxXFLPle2OznAQxAptFl6cM,21181
|
116
|
+
tests/online/test_vector_comprehensive.py,sha256=vmnwwVXLA7lUI_zSK3fJcf1HKx2AvrVDcUT0_d-gQwg,26980
|
117
|
+
tests/online/test_version_management.py,sha256=BU8Vc1fDKNCwhRliZi6XmEnd0HYdHuki9Xxi09vnriA,11416
|
118
|
+
matrixone_python_sdk-0.1.0.dist-info/METADATA,sha256=hXnXd7Pf1V_VyRVY4VFSSA4hr_0bVJIAJpYm3bPnjvc,20299
|
119
|
+
matrixone_python_sdk-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
120
|
+
matrixone_python_sdk-0.1.0.dist-info/entry_points.txt,sha256=4wUGPC_7_f5ZDR33JRo1LZmmTuyfkYAv41_5H5Qy-Ik,138
|
121
|
+
matrixone_python_sdk-0.1.0.dist-info/top_level.txt,sha256=LQZabpBx_dtQk8JbKeH3MbjmC8HYDLE8UQeEf6NfQJA,16
|
122
|
+
matrixone_python_sdk-0.1.0.dist-info/RECORD,,
|
@@ -0,0 +1,200 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity granting the License.
|
13
|
+
|
14
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
15
|
+
other entities that control, are controlled by, or are under common
|
16
|
+
control with that entity. For the purposes of this definition,
|
17
|
+
"control" means (i) the power, direct or indirect, to cause the
|
18
|
+
direction or management of such entity, whether by contract or
|
19
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
20
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
21
|
+
|
22
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
23
|
+
exercising permissions granted by this License.
|
24
|
+
|
25
|
+
"Source" shall mean the preferred form for making modifications,
|
26
|
+
including but not limited to software source code, documentation
|
27
|
+
source, and configuration files.
|
28
|
+
|
29
|
+
"Object" shall mean any form resulting from mechanical
|
30
|
+
transformation or translation of a Source form, including but
|
31
|
+
not limited to compiled object code, generated documentation,
|
32
|
+
and conversions to other media types.
|
33
|
+
|
34
|
+
"Work" shall mean the work of authorship, whether in Source or
|
35
|
+
Object form, made available under the License, as indicated by a
|
36
|
+
copyright notice that is included in or attached to the work
|
37
|
+
(which shall not include communications that are clearly marked or
|
38
|
+
otherwise designated in writing by the copyright owner as "Not a Work").
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based upon (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and derivative works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control
|
57
|
+
systems, and issue tracking systems that are managed by, or on behalf
|
58
|
+
of, the Licensor for the purpose of discussing and improving the Work,
|
59
|
+
but excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Work".
|
61
|
+
|
62
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
63
|
+
this License, each Contributor hereby grants to You a perpetual,
|
64
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
65
|
+
copyright license to use, reproduce, modify, merge, publish,
|
66
|
+
distribute, sublicense, and/or sell copies of the Work, and to
|
67
|
+
permit persons to whom the Work is furnished to do so, subject to
|
68
|
+
the following conditions:
|
69
|
+
|
70
|
+
The above copyright notice and this permission notice shall be
|
71
|
+
included in all copies or substantial portions of the Work.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright notice to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Support. You may choose to offer, and to
|
166
|
+
charge a fee for, acceptance of support, warranty, indemnity,
|
167
|
+
or other liability obligations and/or rights consistent with this
|
168
|
+
License. However, in accepting such obligations, You may act only
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
173
|
+
of your accepting any such warranty or support.
|
174
|
+
|
175
|
+
END OF TERMS AND CONDITIONS
|
176
|
+
|
177
|
+
APPENDIX: How to apply the Apache License to your work.
|
178
|
+
|
179
|
+
To apply the Apache License to your work, attach the following
|
180
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
181
|
+
replaced with your own identifying information. (Don't include
|
182
|
+
the brackets!) The text should be enclosed in the appropriate
|
183
|
+
comment syntax for the file format. We also recommend that a
|
184
|
+
file or class name and description of purpose be included on the
|
185
|
+
same page as the copyright notice for easier identification within
|
186
|
+
third-party archives.
|
187
|
+
|
188
|
+
Copyright 2024 MatrixOne Team
|
189
|
+
|
190
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
191
|
+
you may not use this file except in compliance with the License.
|
192
|
+
You may obtain a copy of the License at
|
193
|
+
|
194
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
195
|
+
|
196
|
+
Unless required by applicable law or agreed to in writing, software
|
197
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
198
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
199
|
+
See the License for the specific language governing permissions and
|
200
|
+
limitations under the License.
|
tests/__init__.py
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Copyright 2021 - 2022 Matrix Origin
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
"""
|
16
|
+
MatrixOne Python SDK Test Suite
|
17
|
+
|
18
|
+
This package contains all unit tests for the MatrixOne Python SDK.
|
19
|
+
"""
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Copyright 2021 - 2022 Matrix Origin
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
"""
|
16
|
+
Offline tests package
|
17
|
+
|
18
|
+
This package contains mock-based unit tests that don't require
|
19
|
+
a database connection.
|
20
|
+
"""
|
@@ -0,0 +1,77 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
|
3
|
+
# Copyright 2021 - 2022 Matrix Origin
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
"""
|
18
|
+
Pytest configuration for offline tests
|
19
|
+
|
20
|
+
This file manages Mock settings to prevent conflicts between different test files.
|
21
|
+
"""
|
22
|
+
|
23
|
+
import pytest
|
24
|
+
import sys
|
25
|
+
from unittest.mock import Mock
|
26
|
+
|
27
|
+
|
28
|
+
def pytest_configure(config):
|
29
|
+
"""Configure pytest with offline test settings"""
|
30
|
+
config.addinivalue_line("markers", "offline: mark test as offline unit test")
|
31
|
+
config.addinivalue_line("markers", "vector: mark test as vector-related test")
|
32
|
+
|
33
|
+
|
34
|
+
def pytest_runtest_setup(item):
|
35
|
+
"""Setup for each test - restore SQLAlchemy before vector tests"""
|
36
|
+
# Check if this is a vector test by looking at the file path
|
37
|
+
test_path = str(item.fspath)
|
38
|
+
is_vector_test = any(
|
39
|
+
keyword in test_path
|
40
|
+
for keyword in [
|
41
|
+
'test_vector_type.py',
|
42
|
+
'test_table_builder.py',
|
43
|
+
'test_case_sensitivity.py',
|
44
|
+
'test_sqlalchemy_vector_integration.py',
|
45
|
+
]
|
46
|
+
)
|
47
|
+
|
48
|
+
if is_vector_test:
|
49
|
+
# For vector tests, ensure we have real SQLAlchemy
|
50
|
+
_restore_sqlalchemy_for_vector_tests()
|
51
|
+
|
52
|
+
|
53
|
+
def _restore_sqlalchemy_for_vector_tests():
|
54
|
+
"""Restore real SQLAlchemy modules for vector tests"""
|
55
|
+
# List of SQLAlchemy modules that might be mocked
|
56
|
+
sqlalchemy_modules = [
|
57
|
+
'sqlalchemy',
|
58
|
+
'sqlalchemy.engine',
|
59
|
+
'sqlalchemy.orm',
|
60
|
+
'sqlalchemy.ext',
|
61
|
+
'sqlalchemy.ext.asyncio',
|
62
|
+
]
|
63
|
+
|
64
|
+
for module_name in sqlalchemy_modules:
|
65
|
+
# If the module is currently mocked, remove it to allow real import
|
66
|
+
if module_name in sys.modules and isinstance(sys.modules[module_name], Mock):
|
67
|
+
del sys.modules[module_name]
|
68
|
+
|
69
|
+
# Force reload of SQLAlchemy modules
|
70
|
+
try:
|
71
|
+
import sqlalchemy
|
72
|
+
import sqlalchemy.engine
|
73
|
+
import sqlalchemy.orm
|
74
|
+
import sqlalchemy.ext
|
75
|
+
import sqlalchemy.ext.asyncio
|
76
|
+
except ImportError:
|
77
|
+
pass # If import fails, that's ok
|