timeplus 2.0.0b4__tar.gz → 2.1.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 (369) hide show
  1. timeplus-2.1.0/LICENSE +201 -0
  2. {timeplus-2.0.0b4/timeplus.egg-info → timeplus-2.1.0}/PKG-INFO +143 -37
  3. timeplus-2.0.0b4/PKG-INFO → timeplus-2.1.0/README.md +126 -49
  4. timeplus-2.1.0/pyproject.toml +64 -0
  5. timeplus-2.1.0/setup.cfg +4 -0
  6. timeplus-2.1.0/src/swagger_client/__init__.py +203 -0
  7. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/api_client.py +26 -24
  8. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/configuration.py +46 -37
  9. timeplus-2.1.0/src/swagger_client/models/__init__.py +174 -0
  10. timeplus-2.1.0/src/swagger_client/models/agent_chat_config.py +525 -0
  11. timeplus-2.1.0/src/swagger_client/models/agent_chat_request.py +150 -0
  12. timeplus-2.0.0b4/swagger_client/models/udf_auth_context.py → timeplus-2.1.0/src/swagger_client/models/agent_completion_message.py +52 -37
  13. timeplus-2.1.0/src/swagger_client/models/agent_completion_request.py +209 -0
  14. timeplus-2.1.0/src/swagger_client/models/agent_config_test_result.py +149 -0
  15. timeplus-2.1.0/src/swagger_client/models/agent_config_test_result_checks.py +235 -0
  16. timeplus-2.1.0/src/swagger_client/models/agent_conversation.py +255 -0
  17. timeplus-2.1.0/src/swagger_client/models/agent_conversation_detail.py +305 -0
  18. timeplus-2.1.0/src/swagger_client/models/agent_conversation_window.py +227 -0
  19. timeplus-2.1.0/src/swagger_client/models/agent_mcp_discovery.py +203 -0
  20. timeplus-2.1.0/src/swagger_client/models/agent_mcp_server.py +411 -0
  21. timeplus-2.1.0/src/swagger_client/models/agent_mcp_server_view.py +489 -0
  22. timeplus-2.1.0/src/swagger_client/models/agent_mcp_test_result.py +149 -0
  23. timeplus-2.1.0/src/swagger_client/models/agent_mcp_test_tool.py +227 -0
  24. timeplus-2.1.0/src/swagger_client/models/agent_memory.py +305 -0
  25. timeplus-2.1.0/src/swagger_client/models/agent_message.py +411 -0
  26. timeplus-2.1.0/src/swagger_client/models/agent_redacted_chat_config.py +579 -0
  27. timeplus-2.1.0/src/swagger_client/models/agent_rename_conversation_request.py +124 -0
  28. timeplus-2.1.0/src/swagger_client/models/agent_skill.py +493 -0
  29. timeplus-2.1.0/src/swagger_client/models/agent_skill_detail.py +601 -0
  30. timeplus-2.1.0/src/swagger_client/models/agent_skill_input.py +201 -0
  31. timeplus-2.1.0/src/swagger_client/models/agent_skill_install_input.py +253 -0
  32. timeplus-2.1.0/src/swagger_client/models/agent_skill_install_result.py +409 -0
  33. timeplus-2.1.0/src/swagger_client/models/agent_skill_source.py +95 -0
  34. timeplus-2.1.0/src/swagger_client/models/agent_skill_update.py +231 -0
  35. timeplus-2.0.0b4/swagger_client/models/alert_timeline.py → timeplus-2.1.0/src/swagger_client/models/agent_skill_upgrade_input.py +52 -41
  36. timeplus-2.1.0/src/swagger_client/models/agent_skill_version.py +255 -0
  37. timeplus-2.1.0/src/swagger_client/models/agent_skill_version_source.py +95 -0
  38. timeplus-2.1.0/src/swagger_client/models/agent_status.py +287 -0
  39. timeplus-2.0.0b4/swagger_client/models/workspace_settings.py → timeplus-2.1.0/src/swagger_client/models/agent_stop_conversation_response.py +36 -23
  40. timeplus-2.1.0/src/swagger_client/models/agent_task.py +435 -0
  41. timeplus-2.1.0/src/swagger_client/models/agent_task_input.py +319 -0
  42. timeplus-2.1.0/src/swagger_client/models/agent_task_run.py +331 -0
  43. timeplus-2.0.0b4/swagger_client/models/execute_query_request.py → timeplus-2.1.0/src/swagger_client/models/agent_task_run_started.py +36 -24
  44. timeplus-2.1.0/src/swagger_client/models/agent_task_update.py +333 -0
  45. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/analyze_sql_request.py +18 -5
  46. timeplus-2.1.0/src/swagger_client/models/api_key.py +340 -0
  47. timeplus-2.1.0/src/swagger_client/models/apikey_scope.py +102 -0
  48. timeplus-2.1.0/src/swagger_client/models/app.py +487 -0
  49. timeplus-2.1.0/src/swagger_client/models/app_config_entry.py +201 -0
  50. timeplus-2.1.0/src/swagger_client/models/app_event.py +279 -0
  51. timeplus-2.1.0/src/swagger_client/models/app_instance.py +489 -0
  52. timeplus-2.1.0/src/swagger_client/models/app_ui.py +255 -0
  53. timeplus-2.1.0/src/swagger_client/models/artifact_artifact.py +305 -0
  54. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/batching_policy.py +18 -5
  55. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/build.py +50 -8
  56. timeplus-2.1.0/src/swagger_client/models/catalog_entry.py +487 -0
  57. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/column.py +20 -7
  58. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/column_def.py +46 -7
  59. timeplus-2.0.0b4/swagger_client/models/customer.py → timeplus-2.1.0/src/swagger_client/models/column_family.py +44 -31
  60. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/columns_resp.py +46 -7
  61. timeplus-2.1.0/src/swagger_client/models/common_computed_status.py +105 -0
  62. timeplus-2.1.0/src/swagger_client/models/common_expected_status.py +101 -0
  63. timeplus-2.1.0/src/swagger_client/models/create_api_key_request.py +205 -0
  64. timeplus-2.1.0/src/swagger_client/models/create_api_key_response.py +368 -0
  65. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/create_dashboard_request.py +19 -6
  66. timeplus-2.0.0b4/swagger_client/models/external_stream_def.py → timeplus-2.1.0/src/swagger_client/models/create_pipeline_request.py +51 -64
  67. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/create_query_request_v1_beta2.py +57 -11
  68. timeplus-2.1.0/src/swagger_client/models/create_query_request_v1_beta2_batching_policy.py +95 -0
  69. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/create_saved_query_request.py +20 -7
  70. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/create_sink_request.py +23 -10
  71. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/create_source_request.py +49 -10
  72. timeplus-2.1.0/src/swagger_client/models/create_user_request.py +177 -0
  73. timeplus-2.1.0/src/swagger_client/models/create_user_request_role.py +95 -0
  74. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/dashboard_dashboard.py +22 -9
  75. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/dashboard_panel.py +20 -7
  76. timeplus-2.1.0/src/swagger_client/models/database.py +185 -0
  77. timeplus-2.1.0/src/swagger_client/models/ddl_infer_request.py +239 -0
  78. timeplus-2.1.0/src/swagger_client/models/ddl_infer_request_event.py +95 -0
  79. timeplus-2.1.0/src/swagger_client/models/ddl_infer_response.py +95 -0
  80. timeplus-2.1.0/src/swagger_client/models/ddl_parse_result.py +201 -0
  81. timeplus-2.1.0/src/swagger_client/models/dictionary.py +279 -0
  82. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/edge.py +18 -5
  83. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/error_response.py +24 -10
  84. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/event.py +17 -11
  85. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/event_infer_request.py +22 -9
  86. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/event_infer_response.py +20 -7
  87. timeplus-2.1.0/src/swagger_client/models/exec_request.py +188 -0
  88. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/external_stream.py +102 -9
  89. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/external_table.py +102 -9
  90. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/format_query_request.py +18 -5
  91. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/format_query_response.py +18 -5
  92. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/graph.py +48 -5
  93. timeplus-2.1.0/src/swagger_client/models/historical_query_response.py +149 -0
  94. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/info.py +50 -10
  95. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/ingest_data.py +20 -7
  96. timeplus-2.1.0/src/swagger_client/models/installer_config_param_def.py +279 -0
  97. timeplus-2.1.0/src/swagger_client/models/installer_dashboard_def.py +175 -0
  98. timeplus-2.1.0/src/swagger_client/models/installer_installed_ui.py +279 -0
  99. timeplus-2.0.0b4/swagger_client/models/v1beta2_update_schema_request.py → timeplus-2.1.0/src/swagger_client/models/installer_resource_def.py +48 -44
  100. timeplus-2.1.0/src/swagger_client/models/installer_ui_def.py +175 -0
  101. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/kafka_common.py +18 -85
  102. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/kafka_common_tls.py +45 -6
  103. timeplus-2.1.0/src/swagger_client/models/license.py +240 -0
  104. timeplus-2.1.0/src/swagger_client/models/license_entitlement.py +204 -0
  105. timeplus-2.1.0/src/swagger_client/models/license_usage_data_point.py +185 -0
  106. timeplus-2.1.0/src/swagger_client/models/materialized_view.py +708 -0
  107. timeplus-2.1.0/src/swagger_client/models/materialized_view_node.py +428 -0
  108. timeplus-2.1.0/src/swagger_client/models/materialized_view_stats.py +482 -0
  109. timeplus-2.1.0/src/swagger_client/models/mcpclient_server_info.py +149 -0
  110. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/node.py +44 -5
  111. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/owner.py +18 -5
  112. timeplus-2.0.0b4/swagger_client/models/external_table_def.py → timeplus-2.1.0/src/swagger_client/models/patch_sink_request.py +48 -37
  113. timeplus-2.1.0/src/swagger_client/models/patch_source_request.py +201 -0
  114. timeplus-2.1.0/src/swagger_client/models/pipeline.py +308 -0
  115. timeplus-2.0.0b4/swagger_client/models/v1beta2_licenses_body.py → timeplus-2.1.0/src/swagger_client/models/pipeline_node.py +52 -45
  116. timeplus-2.1.0/src/swagger_client/models/preview_external_stream_request.py +215 -0
  117. timeplus-2.1.0/src/swagger_client/models/proton_mv_lagging.py +203 -0
  118. timeplus-2.1.0/src/swagger_client/models/proton_stream_lagging.py +175 -0
  119. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/query.py +34 -27
  120. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/query_pipeline.py +18 -5
  121. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/query_pipeline_edge.py +18 -5
  122. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/query_pipeline_node.py +18 -5
  123. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/query_pipeline_node_metric.py +18 -5
  124. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/query_result.py +20 -8
  125. timeplus-2.1.0/src/swagger_client/models/query_status.py +95 -0
  126. timeplus-2.1.0/src/swagger_client/models/query_status_type.py +103 -0
  127. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/saved_query.py +23 -10
  128. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/schema_resp.py +18 -5
  129. timeplus-2.1.0/src/swagger_client/models/secondary_index.py +203 -0
  130. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/sink.py +35 -13
  131. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/sink_stat.py +18 -5
  132. timeplus-2.1.0/src/swagger_client/models/sink_stats.py +623 -0
  133. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/source.py +30 -17
  134. timeplus-2.1.0/src/swagger_client/models/source_batch.py +175 -0
  135. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/source_preview_request.py +19 -6
  136. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/sql_analyze_column.py +18 -5
  137. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/sql_analyze_result.py +18 -5
  138. timeplus-2.1.0/src/swagger_client/models/start_trial_request.py +175 -0
  139. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/stats.py +57 -15
  140. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/stats_error.py +20 -7
  141. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/stats_throughput.py +20 -7
  142. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/stream.py +248 -20
  143. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/stream_match_request.py +19 -6
  144. timeplus-2.1.0/src/swagger_client/models/stream_node.py +228 -0
  145. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/stream_setting.py +18 -5
  146. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/stream_stats.py +44 -5
  147. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/time_columns.py +21 -8
  148. timeplus-2.1.0/src/swagger_client/models/transfer_leader_request.py +178 -0
  149. timeplus-2.0.0b4/swagger_client/models/invitation_request.py → timeplus-2.1.0/src/swagger_client/models/types_date.py +36 -24
  150. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/udf.py +88 -19
  151. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/udf_argument.py +20 -7
  152. timeplus-2.1.0/src/swagger_client/models/udf_auth_context.py +95 -0
  153. timeplus-2.1.0/src/swagger_client/models/udf_auth_context_res.py +149 -0
  154. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/update_dashboard_request.py +19 -6
  155. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/update_source_request.py +18 -5
  156. timeplus-2.1.0/src/swagger_client/models/update_user_request.py +149 -0
  157. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/update_workspace_request.py +18 -5
  158. timeplus-2.1.0/src/swagger_client/models/user.py +151 -0
  159. timeplus-2.1.0/src/swagger_client/models/user_role.py +101 -0
  160. timeplus-2.1.0/src/swagger_client/models/v1beta2_agent_decide_approval_request.py +126 -0
  161. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/v1beta2_list_kafka_topic_request.py +18 -5
  162. timeplus-2.1.0/src/swagger_client/models/validation.py +227 -0
  163. timeplus-2.0.0b4/swagger_client/models/payment.py → timeplus-2.1.0/src/swagger_client/models/validation_result.py +51 -64
  164. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/models/view.py +86 -17
  165. timeplus-2.1.0/src/swagger_client/models/workspace.py +152 -0
  166. timeplus-2.0.0b4/swagger_client/models/license_license.py → timeplus-2.1.0/src/swagger_client/models/workspace_settings.py +66 -107
  167. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/rest.py +10 -4
  168. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/__init__.py +7 -5
  169. timeplus-2.1.0/src/swagger_client/timeplus/agent_v1beta2_api.py +3716 -0
  170. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/api_keys_v1beta2_api.py +50 -45
  171. timeplus-2.1.0/src/swagger_client/timeplus/apps_v1beta2_api.py +1222 -0
  172. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/dashboards_v1beta2_api.py +52 -43
  173. timeplus-2.0.0b4/swagger_client/timeplus/metrics_v1beta2_api.py → timeplus-2.1.0/src/swagger_client/timeplus/databases_v1beta2_api.py +24 -19
  174. timeplus-2.1.0/src/swagger_client/timeplus/dictionaries_v1beta2_api.py +335 -0
  175. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/external_streams_v1beta2_api.py +66 -37
  176. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/external_tables_v1beta2_api.py +35 -109
  177. timeplus-2.0.0b4/swagger_client/timeplus/schemas_v1beta2_api.py → timeplus-2.1.0/src/swagger_client/timeplus/license_v1beta2_api.py +121 -116
  178. timeplus-2.0.0b4/swagger_client/timeplus/alerts_v1beta2_api.py → timeplus-2.1.0/src/swagger_client/timeplus/materialized_views_v1beta2_api.py +267 -194
  179. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/misc_api.py +6 -5
  180. timeplus-2.1.0/src/swagger_client/timeplus/pipelines_v1beta2_api.py +628 -0
  181. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/queries_v1beta2_api.py +126 -105
  182. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/saved_queries_v1beta2_api.py +44 -43
  183. timeplus-2.0.0b4/swagger_client/timeplus/invitations_v1beta2_api.py → timeplus-2.1.0/src/swagger_client/timeplus/schemas_v1beta2_api.py +76 -67
  184. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/sinks_v1beta2_api.py +304 -65
  185. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/sources_v1beta2_api.py +479 -129
  186. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/streams_v1beta2_api.py +75 -240
  187. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/topology_v1beta2_api.py +20 -6
  188. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/udfs_v1beta2_api.py +19 -204
  189. timeplus-2.0.0b4/swagger_client/timeplus/views_v1beta2_api.py → timeplus-2.1.0/src/swagger_client/timeplus/users_v1beta2_api.py +151 -142
  190. timeplus-2.1.0/src/swagger_client/timeplus/views_v1beta2_api.py +339 -0
  191. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/swagger_client/timeplus/workspace_v1beta2_api.py +22 -25
  192. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/alert.py +13 -8
  193. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/dbapi.py +62 -16
  194. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/env.py +16 -8
  195. timeplus-2.1.0/src/timeplus/error.py +94 -0
  196. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/external_stream.py +10 -2
  197. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/query.py +11 -6
  198. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/schema.py +7 -6
  199. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/sqlalchemy.py +4 -3
  200. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/stream.py +45 -14
  201. timeplus-2.1.0/src/timeplus/unlisted.py +41 -0
  202. timeplus-2.1.0/src/timeplus/version.py +1 -0
  203. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/view.py +7 -5
  204. timeplus-2.0.0b4/README.md → timeplus-2.1.0/src/timeplus.egg-info/PKG-INFO +155 -29
  205. timeplus-2.1.0/src/timeplus.egg-info/SOURCES.txt +214 -0
  206. timeplus-2.1.0/src/timeplus.egg-info/entry_points.txt +2 -0
  207. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus.egg-info/requires.txt +9 -1
  208. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus.egg-info/top_level.txt +0 -1
  209. timeplus-2.0.0b4/setup.cfg +0 -29
  210. timeplus-2.0.0b4/setup.py +0 -45
  211. timeplus-2.0.0b4/swagger_client/__init__.py +0 -129
  212. timeplus-2.0.0b4/swagger_client/models/__init__.py +0 -103
  213. timeplus-2.0.0b4/swagger_client/models/alert.py +0 -538
  214. timeplus-2.0.0b4/swagger_client/models/alert_incident.py +0 -165
  215. timeplus-2.0.0b4/swagger_client/models/api_key.py +0 -224
  216. timeplus-2.0.0b4/swagger_client/models/create_alert_request.py +0 -276
  217. timeplus-2.0.0b4/swagger_client/models/create_api_key_request.py +0 -168
  218. timeplus-2.0.0b4/swagger_client/models/create_api_key_response.py +0 -252
  219. timeplus-2.0.0b4/swagger_client/models/create_view_request.py +0 -302
  220. timeplus-2.0.0b4/swagger_client/models/global_metrics_result.py +0 -165
  221. timeplus-2.0.0b4/swagger_client/models/invitation.py +0 -306
  222. timeplus-2.0.0b4/swagger_client/models/keygen_license.py +0 -318
  223. timeplus-2.0.0b4/swagger_client/models/sink_stats.py +0 -326
  224. timeplus-2.0.0b4/swagger_client/models/stream_def.py +0 -495
  225. timeplus-2.0.0b4/swagger_client/models/subscription.py +0 -226
  226. timeplus-2.0.0b4/swagger_client/models/update_stream_request.py +0 -192
  227. timeplus-2.0.0b4/swagger_client/models/update_view_request.py +0 -218
  228. timeplus-2.0.0b4/swagger_client/models/v1beta2_create_schema_request.py +0 -171
  229. timeplus-2.0.0b4/swagger_client/models/workspace.py +0 -357
  230. timeplus-2.0.0b4/swagger_client/timeplus/license_v1beta2_api.py +0 -409
  231. timeplus-2.0.0b4/swagger_client/timeplus/subscription_v1beta2_api.py +0 -120
  232. timeplus-2.0.0b4/swagger_client/timeplus/workspaces_v1beta2_api.py +0 -120
  233. timeplus-2.0.0b4/swagger_test/__init__.py +0 -0
  234. timeplus-2.0.0b4/swagger_test/test_alert.py +0 -39
  235. timeplus-2.0.0b4/swagger_test/test_alert_incident.py +0 -39
  236. timeplus-2.0.0b4/swagger_test/test_alert_timeline.py +0 -39
  237. timeplus-2.0.0b4/swagger_test/test_alerts_v1beta2_api.py +0 -89
  238. timeplus-2.0.0b4/swagger_test/test_analyze_sql_request.py +0 -39
  239. timeplus-2.0.0b4/swagger_test/test_api_key.py +0 -39
  240. timeplus-2.0.0b4/swagger_test/test_api_keys_v1beta2_api.py +0 -54
  241. timeplus-2.0.0b4/swagger_test/test_batching_policy.py +0 -39
  242. timeplus-2.0.0b4/swagger_test/test_build.py +0 -39
  243. timeplus-2.0.0b4/swagger_test/test_column.py +0 -39
  244. timeplus-2.0.0b4/swagger_test/test_column_def.py +0 -39
  245. timeplus-2.0.0b4/swagger_test/test_columns_resp.py +0 -39
  246. timeplus-2.0.0b4/swagger_test/test_create_alert_request.py +0 -39
  247. timeplus-2.0.0b4/swagger_test/test_create_api_key_request.py +0 -39
  248. timeplus-2.0.0b4/swagger_test/test_create_api_key_response.py +0 -39
  249. timeplus-2.0.0b4/swagger_test/test_create_dashboard_request.py +0 -39
  250. timeplus-2.0.0b4/swagger_test/test_create_query_request_v1_beta2.py +0 -39
  251. timeplus-2.0.0b4/swagger_test/test_create_saved_query_request.py +0 -39
  252. timeplus-2.0.0b4/swagger_test/test_create_sink_request.py +0 -39
  253. timeplus-2.0.0b4/swagger_test/test_create_source_request.py +0 -39
  254. timeplus-2.0.0b4/swagger_test/test_create_view_request.py +0 -39
  255. timeplus-2.0.0b4/swagger_test/test_customer.py +0 -39
  256. timeplus-2.0.0b4/swagger_test/test_dashboard_dashboard.py +0 -39
  257. timeplus-2.0.0b4/swagger_test/test_dashboard_panel.py +0 -39
  258. timeplus-2.0.0b4/swagger_test/test_dashboards_v1beta2_api.py +0 -68
  259. timeplus-2.0.0b4/swagger_test/test_edge.py +0 -39
  260. timeplus-2.0.0b4/swagger_test/test_error_response.py +0 -39
  261. timeplus-2.0.0b4/swagger_test/test_event.py +0 -39
  262. timeplus-2.0.0b4/swagger_test/test_event_infer_request.py +0 -39
  263. timeplus-2.0.0b4/swagger_test/test_event_infer_response.py +0 -39
  264. timeplus-2.0.0b4/swagger_test/test_execute_query_request.py +0 -39
  265. timeplus-2.0.0b4/swagger_test/test_external_stream.py +0 -39
  266. timeplus-2.0.0b4/swagger_test/test_external_stream_def.py +0 -39
  267. timeplus-2.0.0b4/swagger_test/test_external_streams_v1beta2_api.py +0 -61
  268. timeplus-2.0.0b4/swagger_test/test_external_table.py +0 -39
  269. timeplus-2.0.0b4/swagger_test/test_external_table_def.py +0 -39
  270. timeplus-2.0.0b4/swagger_test/test_external_tables_v1beta2_api.py +0 -61
  271. timeplus-2.0.0b4/swagger_test/test_format_query_request.py +0 -39
  272. timeplus-2.0.0b4/swagger_test/test_format_query_response.py +0 -39
  273. timeplus-2.0.0b4/swagger_test/test_global_metrics_result.py +0 -39
  274. timeplus-2.0.0b4/swagger_test/test_graph.py +0 -39
  275. timeplus-2.0.0b4/swagger_test/test_info.py +0 -39
  276. timeplus-2.0.0b4/swagger_test/test_ingest_data.py +0 -39
  277. timeplus-2.0.0b4/swagger_test/test_invitation.py +0 -39
  278. timeplus-2.0.0b4/swagger_test/test_invitation_request.py +0 -39
  279. timeplus-2.0.0b4/swagger_test/test_invitations_v1beta2_api.py +0 -54
  280. timeplus-2.0.0b4/swagger_test/test_kafka_common.py +0 -39
  281. timeplus-2.0.0b4/swagger_test/test_kafka_common_tls.py +0 -39
  282. timeplus-2.0.0b4/swagger_test/test_keygen_license.py +0 -39
  283. timeplus-2.0.0b4/swagger_test/test_license_license.py +0 -39
  284. timeplus-2.0.0b4/swagger_test/test_license_v1beta2_api.py +0 -61
  285. timeplus-2.0.0b4/swagger_test/test_metrics_v1beta2_api.py +0 -40
  286. timeplus-2.0.0b4/swagger_test/test_misc_api.py +0 -40
  287. timeplus-2.0.0b4/swagger_test/test_node.py +0 -39
  288. timeplus-2.0.0b4/swagger_test/test_owner.py +0 -39
  289. timeplus-2.0.0b4/swagger_test/test_payment.py +0 -39
  290. timeplus-2.0.0b4/swagger_test/test_queries_v1beta2_api.py +0 -96
  291. timeplus-2.0.0b4/swagger_test/test_query.py +0 -39
  292. timeplus-2.0.0b4/swagger_test/test_query_pipeline.py +0 -39
  293. timeplus-2.0.0b4/swagger_test/test_query_pipeline_edge.py +0 -39
  294. timeplus-2.0.0b4/swagger_test/test_query_pipeline_node.py +0 -39
  295. timeplus-2.0.0b4/swagger_test/test_query_pipeline_node_metric.py +0 -39
  296. timeplus-2.0.0b4/swagger_test/test_query_result.py +0 -39
  297. timeplus-2.0.0b4/swagger_test/test_saved_queries_v1beta2_api.py +0 -68
  298. timeplus-2.0.0b4/swagger_test/test_saved_query.py +0 -39
  299. timeplus-2.0.0b4/swagger_test/test_schema_resp.py +0 -39
  300. timeplus-2.0.0b4/swagger_test/test_schemas_v1beta2_api.py +0 -68
  301. timeplus-2.0.0b4/swagger_test/test_sink.py +0 -39
  302. timeplus-2.0.0b4/swagger_test/test_sink_stat.py +0 -39
  303. timeplus-2.0.0b4/swagger_test/test_sink_stats.py +0 -39
  304. timeplus-2.0.0b4/swagger_test/test_sinks_v1beta2_api.py +0 -89
  305. timeplus-2.0.0b4/swagger_test/test_source.py +0 -39
  306. timeplus-2.0.0b4/swagger_test/test_source_preview_request.py +0 -39
  307. timeplus-2.0.0b4/swagger_test/test_sources_v1beta2_api.py +0 -117
  308. timeplus-2.0.0b4/swagger_test/test_sql_analyze_column.py +0 -39
  309. timeplus-2.0.0b4/swagger_test/test_sql_analyze_result.py +0 -39
  310. timeplus-2.0.0b4/swagger_test/test_stats.py +0 -39
  311. timeplus-2.0.0b4/swagger_test/test_stats_error.py +0 -39
  312. timeplus-2.0.0b4/swagger_test/test_stats_throughput.py +0 -39
  313. timeplus-2.0.0b4/swagger_test/test_stream.py +0 -39
  314. timeplus-2.0.0b4/swagger_test/test_stream_def.py +0 -39
  315. timeplus-2.0.0b4/swagger_test/test_stream_match_request.py +0 -39
  316. timeplus-2.0.0b4/swagger_test/test_stream_setting.py +0 -39
  317. timeplus-2.0.0b4/swagger_test/test_stream_stats.py +0 -39
  318. timeplus-2.0.0b4/swagger_test/test_streams_v1beta2_api.py +0 -82
  319. timeplus-2.0.0b4/swagger_test/test_subscription.py +0 -39
  320. timeplus-2.0.0b4/swagger_test/test_subscription_v1beta2_api.py +0 -40
  321. timeplus-2.0.0b4/swagger_test/test_time_columns.py +0 -39
  322. timeplus-2.0.0b4/swagger_test/test_topology_v1beta2_api.py +0 -40
  323. timeplus-2.0.0b4/swagger_test/test_udf.py +0 -39
  324. timeplus-2.0.0b4/swagger_test/test_udf_argument.py +0 -39
  325. timeplus-2.0.0b4/swagger_test/test_udf_auth_context.py +0 -39
  326. timeplus-2.0.0b4/swagger_test/test_udfs_v1beta2_api.py +0 -68
  327. timeplus-2.0.0b4/swagger_test/test_update_dashboard_request.py +0 -39
  328. timeplus-2.0.0b4/swagger_test/test_update_source_request.py +0 -39
  329. timeplus-2.0.0b4/swagger_test/test_update_stream_request.py +0 -39
  330. timeplus-2.0.0b4/swagger_test/test_update_view_request.py +0 -39
  331. timeplus-2.0.0b4/swagger_test/test_update_workspace_request.py +0 -39
  332. timeplus-2.0.0b4/swagger_test/test_v1beta2_create_schema_request.py +0 -39
  333. timeplus-2.0.0b4/swagger_test/test_v1beta2_licenses_body.py +0 -39
  334. timeplus-2.0.0b4/swagger_test/test_v1beta2_list_kafka_topic_request.py +0 -39
  335. timeplus-2.0.0b4/swagger_test/test_v1beta2_update_schema_request.py +0 -39
  336. timeplus-2.0.0b4/swagger_test/test_view.py +0 -39
  337. timeplus-2.0.0b4/swagger_test/test_views_v1beta2_api.py +0 -75
  338. timeplus-2.0.0b4/swagger_test/test_workspace.py +0 -39
  339. timeplus-2.0.0b4/swagger_test/test_workspace_settings.py +0 -39
  340. timeplus-2.0.0b4/swagger_test/test_workspace_v1beta2_api.py +0 -47
  341. timeplus-2.0.0b4/swagger_test/test_workspaces_v1beta2_api.py +0 -40
  342. timeplus-2.0.0b4/test/test_alert.py +0 -6
  343. timeplus-2.0.0b4/test/test_analyze.py +0 -11
  344. timeplus-2.0.0b4/test/test_dashboard.py +0 -5
  345. timeplus-2.0.0b4/test/test_dbapi.py +0 -31
  346. timeplus-2.0.0b4/test/test_env.py +0 -25
  347. timeplus-2.0.0b4/test/test_external_stream.py +0 -50
  348. timeplus-2.0.0b4/test/test_ingest_stream.py +0 -140
  349. timeplus-2.0.0b4/test/test_query.py +0 -61
  350. timeplus-2.0.0b4/test/test_schema.py +0 -62
  351. timeplus-2.0.0b4/test/test_sink.py +0 -40
  352. timeplus-2.0.0b4/test/test_source.py +0 -118
  353. timeplus-2.0.0b4/test/test_sqlalchemy_query.py +0 -160
  354. timeplus-2.0.0b4/test/test_sqlalchemy_types.py +0 -46
  355. timeplus-2.0.0b4/test/test_stream.py +0 -78
  356. timeplus-2.0.0b4/test/test_topology.py +0 -7
  357. timeplus-2.0.0b4/test/test_udf.py +0 -5
  358. timeplus-2.0.0b4/test/test_view.py +0 -90
  359. timeplus-2.0.0b4/timeplus/error.py +0 -59
  360. timeplus-2.0.0b4/timeplus/version.py +0 -1
  361. timeplus-2.0.0b4/timeplus.egg-info/SOURCES.txt +0 -507
  362. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/__init__.py +0 -0
  363. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/dashboard.py +0 -0
  364. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/sink.py +0 -0
  365. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/source.py +0 -0
  366. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/topology.py +0 -0
  367. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/type.py +0 -0
  368. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus/udf.py +0 -0
  369. {timeplus-2.0.0b4 → timeplus-2.1.0/src}/timeplus.egg-info/dependency_links.txt +0 -0
timeplus-2.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
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 authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (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 systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
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 statement 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 Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,27 +1,42 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: timeplus
3
- Version: 2.0.0b4
3
+ Version: 2.1.0
4
4
  Summary: Timeplus python SDK
5
- Home-page: https://github.com/timeplus-io/gluon/tree/develop/python
6
- Author: Gang Tao
7
- Author-email: gang@timeplus.io
5
+ Author-email: Gang Tao <gang@timeplus.io>
6
+ Project-URL: Homepage, https://github.com/timeplus-io/gluon
8
7
  Project-URL: Bug Tracker, https://github.com/timeplus-io/gluon/issues
9
8
  Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Programming Language :: Python :: 3.9
11
- Requires-Python: >=3
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Requires-Python: >=3.8
12
12
  Description-Content-Type: text/markdown
13
+ License-File: LICENSE
13
14
  Requires-Dist: urllib3>=1.15
14
15
  Requires-Dist: six>=1.10
15
16
  Requires-Dist: certifi
17
+ Requires-Dist: python-dateutil
16
18
  Requires-Dist: sseclient-py>=1.7.2
17
19
  Requires-Dist: loguru>=0.6.0
18
20
  Requires-Dist: sqlalchemy>=1.4.36
19
- Requires-Dist: python-dateutil
21
+ Provides-Extra: dev
22
+ Requires-Dist: flake8==7.1.0; extra == "dev"
23
+ Requires-Dist: black==22.1.0; extra == "dev"
24
+ Requires-Dist: click==8.0.2; extra == "dev"
25
+ Requires-Dist: pytest>=7.0.1; extra == "dev"
26
+ Requires-Dist: build; extra == "dev"
27
+ Requires-Dist: twine; extra == "dev"
28
+ Dynamic: license-file
20
29
 
21
- # Timeplus Python Client
30
+ # Timeplus Python Client (gluon)
22
31
 
23
32
  [Timeplus](https://www.timeplus.com/) is a real-time streaming data analytic platform. Timeplus python client provides basic functionalities to interact with Timeplus cloud, to manage the streaming analytic work loads.
24
33
 
34
+ ![Timeplus SDK](https://raw.githubusercontent.com/timeplus-io/gluon/develop/sdk.png)
35
+
36
+ A `gluon` (/ˈɡluːɒn/) is an elementary particle that acts as the exchange particle (or gauge boson) for the strong force between quarks. It is analogous to the exchange of photons in the electromagnetic force between two charged particles.
37
+
38
+ In Timepluse architecture, `gluon` is the API sdk acting as the connection to Timeplus's ecosystems.
39
+
25
40
 
26
41
  ## Installation
27
42
 
@@ -35,6 +50,72 @@ We recommend creating a virtual environment when installing Python dependencies.
35
50
  pip install timeplus
36
51
  ```
37
52
 
53
+ ## Authentication
54
+
55
+ The SDK connects to a self-hosted [Timeplus Enterprise](https://docs.timeplus.com/) server. Its API is served on
56
+ port 8000, in a workspace named `default`. There are two ways to authenticate.
57
+
58
+ **Username and password** work for everything in the SDK.
59
+
60
+ ```python
61
+ from timeplus import Environment
62
+ from timeplus.dbapi import connect
63
+
64
+ env = Environment().address("http://localhost:8000").username("your_user").password("your_password")
65
+ conn = connect(host="localhost", port=8000, scheme="http", path="default", user="your_user", password="your_password")
66
+ ```
67
+
68
+ **API key** (Timeplus Enterprise 3.5 and later). A key runs as the user who created it, limited to the scopes
69
+ chosen when it was created:
70
+
71
+ | Scope | Allows | In the SDK |
72
+ |-------|--------|------------|
73
+ | `query` | one read-only SQL statement (SELECT, WITH, SHOW, DESCRIBE, EXPLAIN) | `Query`, DB API, SQLAlchemy |
74
+ | `sql` | any SQL, including DDL and INSERT | `Query`, DB API, SQLAlchemy |
75
+ | `ingest` | sending rows into streams, optionally only the listed streams | `Stream.ingest` |
76
+
77
+ ```python
78
+ env = Environment().address("http://localhost:8000").apikey("tpk_your_api_key")
79
+ conn = connect(host="localhost", port=8000, scheme="http", path="default", password="tpk_your_api_key")
80
+ ```
81
+
82
+ Create a key in the web console, or from Python with your username and password:
83
+
84
+ ```python
85
+ import swagger_client
86
+
87
+ keys = swagger_client.APIKeysV1beta2Api(swagger_client.ApiClient(env._conf())) # env uses username and password
88
+ created = keys.v1beta2_api_keys_post(
89
+ swagger_client.CreateAPIKeyRequest(name="my-program", scopes=["sql", "ingest"])
90
+ )
91
+ print(created.key) # tpk_...
92
+ ```
93
+
94
+ The key is shown once, in the `key` field of the response. It stops working when the user's password changes.
95
+
96
+ An API key is accepted only by these endpoints, on Timeplus Enterprise 3.5 and later:
97
+
98
+ | Endpoint | In the SDK |
99
+ |----------|------------|
100
+ | `POST /v1beta2/queries` | `Query.create`, DB API and SQLAlchemy `execute` |
101
+ | `GET /v1beta2/queries/{id}` | `Query.get` |
102
+ | `POST /v1beta2/queries/{id}/cancel` | `Query.cancel`, closing a cursor |
103
+ | `DELETE /v1beta2/queries/{id}` | `Query.delete` |
104
+ | `POST /v1beta2/exec` | |
105
+ | `POST /v1beta2/streams/{name}/ingest` | `Stream.ingest` |
106
+
107
+ Everything else (`Stream.create`, `Stream.list`, `View`, `Source`, `Sink`, `Query.list`, `Query.analyze`,
108
+ managing API keys, SQLAlchemy table reflection, ...) is answered with `403` when called with a key. Use a username
109
+ and password for those, or do the same thing in SQL, for example `create stream ...` or `show streams` through
110
+ `Query` or the DB API. Servers older than 3.5 do not have API keys.
111
+
112
+ With SQLAlchemy the URL is `timeplus://{user}:{password}@{host}:{port}/{workspace}`, or
113
+ `timeplus://:{api_key}@{host}:{port}/{workspace}` for an API key. The connection uses https unless the URL ends
114
+ with `?scheme=http`. If the password has special characters such as `@`, build the URL with
115
+ `sqlalchemy.engine.URL.create`, which escapes them.
116
+
117
+ Timeplus Cloud (`us.timeplus.cloud`) has been retired; its API keys and workspace ids no longer apply.
118
+
38
119
  ## 3 API
39
120
  The `timeplus` python libary supports 3 API:
40
121
 
@@ -50,12 +131,10 @@ Timeplus python client support DB API defined in [Python Database API Specificat
50
131
  ```python
51
132
  from timeplus.dbapi import connect
52
133
 
53
- api_key = "your_timeplus_apikey"
54
- api_address = "us.timeplus.cloud"
55
- workspace = "your_timeplus_workspace_id"
56
-
57
- # create a connection using host/password/workspace
58
- conn = connect(host=api_address, password=api_key, path=workspace)
134
+ # connect with a username and password ...
135
+ conn = connect(host="localhost", port=8000, scheme="http", path="default", user="your_user", password="your_password")
136
+ # ... or with an API key (Timeplus Enterprise 3.5+)
137
+ # conn = connect(host="localhost", port=8000, scheme="http", path="default", password="tpk_your_api_key")
59
138
 
60
139
  # run a streaming query
61
140
  cursor = conn.execute("select * from car_live_data")
@@ -80,19 +159,27 @@ Timeplus python client has implemeted a [SQLAlchemy](https://www.sqlalchemy.org/
80
159
  ```python
81
160
  import os
82
161
  from sqlalchemy import create_engine, text, select, MetaData, Table
83
- from sqlalchemy.dialects import registry
84
-
85
- # register timeplus dialect
86
- registry.register("timeplus", "timeplus.sqlalchemy", "TimeplusDialect")
87
-
88
- api_key = os.environ.get("TIMEPLUS_API_KEY")
89
- api_address = "dev.timeplus.cloud"
90
- port = 443
91
- workspace = os.environ.get("TIMEPLUS_WORKSPACE") or "tp-demo"
162
+ from sqlalchemy.engine import URL
92
163
 
93
- # create a new engine
164
+ # The timeplus dialect is registered when the package is installed.
165
+ # Create an engine with a username and password ...
94
166
  engine = create_engine(
95
- f"timeplus://:{api_key}@{api_address}:{port}/{workspace}")
167
+ URL.create(
168
+ "timeplus",
169
+ username=os.environ.get("TIMEPLUS_USERNAME"),
170
+ password=os.environ.get("TIMEPLUS_PASSWORD"),
171
+ host="localhost",
172
+ port=8000,
173
+ database="default",
174
+ query={"scheme": "http"},
175
+ )
176
+ )
177
+ # ... or with an API key (Timeplus Enterprise 3.5+). Table reflection, used
178
+ # further down, is not available with a key.
179
+ # engine = create_engine(
180
+ # URL.create("timeplus", password=os.environ.get("TIMEPLUS_API_KEY"), host="localhost", port=8000,
181
+ # database="default", query={"scheme": "http"})
182
+ # )
96
183
 
97
184
  # execute streaming sql
98
185
  with engine.connect() as connection:
@@ -140,6 +227,10 @@ here is a list of all supported resources
140
227
  | [Alert](https://docs.timeplus.com/alert)| list |
141
228
  | [Dashboard](https://docs.timeplus.com/viz#dashboard) | list |
142
229
 
230
+ Not every Timeplus server serves every REST endpoint. For example, a self-hosted Timeplus Enterprise server
231
+ may not serve the alert endpoints or schema creation. In that case the call raises
232
+ `timeplus.error.EndpointNotFoundError` (a subclass of `swagger_client.rest.ApiException`).
233
+
143
234
 
144
235
  #### query
145
236
 
@@ -153,12 +244,17 @@ from pprint import pprint
153
244
 
154
245
  from timeplus import Query, Environment
155
246
 
156
- api_key = os.environ.get("TIMEPLUS_API_KEY")
157
- api_address = os.environ.get("TIMEPLUS_HOST")
158
- workspace = os.environ.get("TIMEPLUS_WORKSPACE")
247
+ address = os.environ.get("TIMEPLUS_HOST", "http://localhost:8000")
159
248
 
160
- # Configure API key and address
161
- env = Environment().address(api_address).workspace(workspace).apikey(api_key)
249
+ # authenticate with a username and password ...
250
+ env = (
251
+ Environment()
252
+ .address(address)
253
+ .username(os.environ.get("TIMEPLUS_USERNAME"))
254
+ .password(os.environ.get("TIMEPLUS_PASSWORD"))
255
+ )
256
+ # ... or with an API key (Timeplus Enterprise 3.5+)
257
+ # env = Environment().address(address).apikey(os.environ.get("TIMEPLUS_API_KEY"))
162
258
 
163
259
  try:
164
260
  # list all qeuries
@@ -226,12 +322,18 @@ from pprint import pprint
226
322
 
227
323
  from timeplus import Stream, Environment
228
324
 
229
- api_key = os.environ.get("TIMEPLUS_API_KEY")
230
- api_address = os.environ.get("TIMEPLUS_HOST")
231
- worksapce = os.environ.get("TIMEPLUS_WORKSAPCE")
325
+ address = os.environ.get("TIMEPLUS_HOST", "http://localhost:8000")
232
326
 
233
- # Configure API key and address
234
- env = Environment().address(api_address).apikey(api_key).workspace(worksapce)
327
+ # authenticate with a username and password ...
328
+ env = (
329
+ Environment()
330
+ .address(address)
331
+ .username(os.environ.get("TIMEPLUS_USERNAME"))
332
+ .password(os.environ.get("TIMEPLUS_PASSWORD"))
333
+ )
334
+ # ... or with an API key (Timeplus Enterprise 3.5+). A key can ingest, but creating,
335
+ # listing and deleting streams through this wrapper need a username and password.
336
+ # env = Environment().address(address).apikey(os.environ.get("TIMEPLUS_API_KEY"))
235
337
 
236
338
  try:
237
339
  # list all streams
@@ -328,4 +430,8 @@ stream.ingest(payload=payload, format="lines")
328
430
 
329
431
  ## Examples
330
432
 
331
- More sample code can be found [here](../examples/helloworld/)
433
+ More sample code can be found in [examples](https://github.com/timeplus-io/gluon/tree/develop/examples).
434
+
435
+ ## Development
436
+
437
+ See [CONTRIBUTING.md](https://github.com/timeplus-io/gluon/blob/develop/CONTRIBUTING.md) for the project layout, how to run the tests, and how to update the generated REST client.
@@ -1,27 +1,13 @@
1
- Metadata-Version: 2.1
2
- Name: timeplus
3
- Version: 2.0.0b4
4
- Summary: Timeplus python SDK
5
- Home-page: https://github.com/timeplus-io/gluon/tree/develop/python
6
- Author: Gang Tao
7
- Author-email: gang@timeplus.io
8
- Project-URL: Bug Tracker, https://github.com/timeplus-io/gluon/issues
9
- Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Programming Language :: Python :: 3.9
11
- Requires-Python: >=3
12
- Description-Content-Type: text/markdown
13
- Requires-Dist: urllib3>=1.15
14
- Requires-Dist: six>=1.10
15
- Requires-Dist: certifi
16
- Requires-Dist: sseclient-py>=1.7.2
17
- Requires-Dist: loguru>=0.6.0
18
- Requires-Dist: sqlalchemy>=1.4.36
19
- Requires-Dist: python-dateutil
20
-
21
- # Timeplus Python Client
1
+ # Timeplus Python Client (gluon)
22
2
 
23
3
  [Timeplus](https://www.timeplus.com/) is a real-time streaming data analytic platform. Timeplus python client provides basic functionalities to interact with Timeplus cloud, to manage the streaming analytic work loads.
24
4
 
5
+ ![Timeplus SDK](https://raw.githubusercontent.com/timeplus-io/gluon/develop/sdk.png)
6
+
7
+ A `gluon` (/ˈɡluːɒn/) is an elementary particle that acts as the exchange particle (or gauge boson) for the strong force between quarks. It is analogous to the exchange of photons in the electromagnetic force between two charged particles.
8
+
9
+ In Timepluse architecture, `gluon` is the API sdk acting as the connection to Timeplus's ecosystems.
10
+
25
11
 
26
12
  ## Installation
27
13
 
@@ -35,6 +21,72 @@ We recommend creating a virtual environment when installing Python dependencies.
35
21
  pip install timeplus
36
22
  ```
37
23
 
24
+ ## Authentication
25
+
26
+ The SDK connects to a self-hosted [Timeplus Enterprise](https://docs.timeplus.com/) server. Its API is served on
27
+ port 8000, in a workspace named `default`. There are two ways to authenticate.
28
+
29
+ **Username and password** work for everything in the SDK.
30
+
31
+ ```python
32
+ from timeplus import Environment
33
+ from timeplus.dbapi import connect
34
+
35
+ env = Environment().address("http://localhost:8000").username("your_user").password("your_password")
36
+ conn = connect(host="localhost", port=8000, scheme="http", path="default", user="your_user", password="your_password")
37
+ ```
38
+
39
+ **API key** (Timeplus Enterprise 3.5 and later). A key runs as the user who created it, limited to the scopes
40
+ chosen when it was created:
41
+
42
+ | Scope | Allows | In the SDK |
43
+ |-------|--------|------------|
44
+ | `query` | one read-only SQL statement (SELECT, WITH, SHOW, DESCRIBE, EXPLAIN) | `Query`, DB API, SQLAlchemy |
45
+ | `sql` | any SQL, including DDL and INSERT | `Query`, DB API, SQLAlchemy |
46
+ | `ingest` | sending rows into streams, optionally only the listed streams | `Stream.ingest` |
47
+
48
+ ```python
49
+ env = Environment().address("http://localhost:8000").apikey("tpk_your_api_key")
50
+ conn = connect(host="localhost", port=8000, scheme="http", path="default", password="tpk_your_api_key")
51
+ ```
52
+
53
+ Create a key in the web console, or from Python with your username and password:
54
+
55
+ ```python
56
+ import swagger_client
57
+
58
+ keys = swagger_client.APIKeysV1beta2Api(swagger_client.ApiClient(env._conf())) # env uses username and password
59
+ created = keys.v1beta2_api_keys_post(
60
+ swagger_client.CreateAPIKeyRequest(name="my-program", scopes=["sql", "ingest"])
61
+ )
62
+ print(created.key) # tpk_...
63
+ ```
64
+
65
+ The key is shown once, in the `key` field of the response. It stops working when the user's password changes.
66
+
67
+ An API key is accepted only by these endpoints, on Timeplus Enterprise 3.5 and later:
68
+
69
+ | Endpoint | In the SDK |
70
+ |----------|------------|
71
+ | `POST /v1beta2/queries` | `Query.create`, DB API and SQLAlchemy `execute` |
72
+ | `GET /v1beta2/queries/{id}` | `Query.get` |
73
+ | `POST /v1beta2/queries/{id}/cancel` | `Query.cancel`, closing a cursor |
74
+ | `DELETE /v1beta2/queries/{id}` | `Query.delete` |
75
+ | `POST /v1beta2/exec` | |
76
+ | `POST /v1beta2/streams/{name}/ingest` | `Stream.ingest` |
77
+
78
+ Everything else (`Stream.create`, `Stream.list`, `View`, `Source`, `Sink`, `Query.list`, `Query.analyze`,
79
+ managing API keys, SQLAlchemy table reflection, ...) is answered with `403` when called with a key. Use a username
80
+ and password for those, or do the same thing in SQL, for example `create stream ...` or `show streams` through
81
+ `Query` or the DB API. Servers older than 3.5 do not have API keys.
82
+
83
+ With SQLAlchemy the URL is `timeplus://{user}:{password}@{host}:{port}/{workspace}`, or
84
+ `timeplus://:{api_key}@{host}:{port}/{workspace}` for an API key. The connection uses https unless the URL ends
85
+ with `?scheme=http`. If the password has special characters such as `@`, build the URL with
86
+ `sqlalchemy.engine.URL.create`, which escapes them.
87
+
88
+ Timeplus Cloud (`us.timeplus.cloud`) has been retired; its API keys and workspace ids no longer apply.
89
+
38
90
  ## 3 API
39
91
  The `timeplus` python libary supports 3 API:
40
92
 
@@ -50,12 +102,10 @@ Timeplus python client support DB API defined in [Python Database API Specificat
50
102
  ```python
51
103
  from timeplus.dbapi import connect
52
104
 
53
- api_key = "your_timeplus_apikey"
54
- api_address = "us.timeplus.cloud"
55
- workspace = "your_timeplus_workspace_id"
56
-
57
- # create a connection using host/password/workspace
58
- conn = connect(host=api_address, password=api_key, path=workspace)
105
+ # connect with a username and password ...
106
+ conn = connect(host="localhost", port=8000, scheme="http", path="default", user="your_user", password="your_password")
107
+ # ... or with an API key (Timeplus Enterprise 3.5+)
108
+ # conn = connect(host="localhost", port=8000, scheme="http", path="default", password="tpk_your_api_key")
59
109
 
60
110
  # run a streaming query
61
111
  cursor = conn.execute("select * from car_live_data")
@@ -80,19 +130,27 @@ Timeplus python client has implemeted a [SQLAlchemy](https://www.sqlalchemy.org/
80
130
  ```python
81
131
  import os
82
132
  from sqlalchemy import create_engine, text, select, MetaData, Table
83
- from sqlalchemy.dialects import registry
84
-
85
- # register timeplus dialect
86
- registry.register("timeplus", "timeplus.sqlalchemy", "TimeplusDialect")
87
-
88
- api_key = os.environ.get("TIMEPLUS_API_KEY")
89
- api_address = "dev.timeplus.cloud"
90
- port = 443
91
- workspace = os.environ.get("TIMEPLUS_WORKSPACE") or "tp-demo"
133
+ from sqlalchemy.engine import URL
92
134
 
93
- # create a new engine
135
+ # The timeplus dialect is registered when the package is installed.
136
+ # Create an engine with a username and password ...
94
137
  engine = create_engine(
95
- f"timeplus://:{api_key}@{api_address}:{port}/{workspace}")
138
+ URL.create(
139
+ "timeplus",
140
+ username=os.environ.get("TIMEPLUS_USERNAME"),
141
+ password=os.environ.get("TIMEPLUS_PASSWORD"),
142
+ host="localhost",
143
+ port=8000,
144
+ database="default",
145
+ query={"scheme": "http"},
146
+ )
147
+ )
148
+ # ... or with an API key (Timeplus Enterprise 3.5+). Table reflection, used
149
+ # further down, is not available with a key.
150
+ # engine = create_engine(
151
+ # URL.create("timeplus", password=os.environ.get("TIMEPLUS_API_KEY"), host="localhost", port=8000,
152
+ # database="default", query={"scheme": "http"})
153
+ # )
96
154
 
97
155
  # execute streaming sql
98
156
  with engine.connect() as connection:
@@ -140,6 +198,10 @@ here is a list of all supported resources
140
198
  | [Alert](https://docs.timeplus.com/alert)| list |
141
199
  | [Dashboard](https://docs.timeplus.com/viz#dashboard) | list |
142
200
 
201
+ Not every Timeplus server serves every REST endpoint. For example, a self-hosted Timeplus Enterprise server
202
+ may not serve the alert endpoints or schema creation. In that case the call raises
203
+ `timeplus.error.EndpointNotFoundError` (a subclass of `swagger_client.rest.ApiException`).
204
+
143
205
 
144
206
  #### query
145
207
 
@@ -153,12 +215,17 @@ from pprint import pprint
153
215
 
154
216
  from timeplus import Query, Environment
155
217
 
156
- api_key = os.environ.get("TIMEPLUS_API_KEY")
157
- api_address = os.environ.get("TIMEPLUS_HOST")
158
- workspace = os.environ.get("TIMEPLUS_WORKSPACE")
218
+ address = os.environ.get("TIMEPLUS_HOST", "http://localhost:8000")
159
219
 
160
- # Configure API key and address
161
- env = Environment().address(api_address).workspace(workspace).apikey(api_key)
220
+ # authenticate with a username and password ...
221
+ env = (
222
+ Environment()
223
+ .address(address)
224
+ .username(os.environ.get("TIMEPLUS_USERNAME"))
225
+ .password(os.environ.get("TIMEPLUS_PASSWORD"))
226
+ )
227
+ # ... or with an API key (Timeplus Enterprise 3.5+)
228
+ # env = Environment().address(address).apikey(os.environ.get("TIMEPLUS_API_KEY"))
162
229
 
163
230
  try:
164
231
  # list all qeuries
@@ -226,12 +293,18 @@ from pprint import pprint
226
293
 
227
294
  from timeplus import Stream, Environment
228
295
 
229
- api_key = os.environ.get("TIMEPLUS_API_KEY")
230
- api_address = os.environ.get("TIMEPLUS_HOST")
231
- worksapce = os.environ.get("TIMEPLUS_WORKSAPCE")
296
+ address = os.environ.get("TIMEPLUS_HOST", "http://localhost:8000")
232
297
 
233
- # Configure API key and address
234
- env = Environment().address(api_address).apikey(api_key).workspace(worksapce)
298
+ # authenticate with a username and password ...
299
+ env = (
300
+ Environment()
301
+ .address(address)
302
+ .username(os.environ.get("TIMEPLUS_USERNAME"))
303
+ .password(os.environ.get("TIMEPLUS_PASSWORD"))
304
+ )
305
+ # ... or with an API key (Timeplus Enterprise 3.5+). A key can ingest, but creating,
306
+ # listing and deleting streams through this wrapper need a username and password.
307
+ # env = Environment().address(address).apikey(os.environ.get("TIMEPLUS_API_KEY"))
235
308
 
236
309
  try:
237
310
  # list all streams
@@ -328,4 +401,8 @@ stream.ingest(payload=payload, format="lines")
328
401
 
329
402
  ## Examples
330
403
 
331
- More sample code can be found [here](../examples/helloworld/)
404
+ More sample code can be found in [examples](https://github.com/timeplus-io/gluon/tree/develop/examples).
405
+
406
+ ## Development
407
+
408
+ See [CONTRIBUTING.md](https://github.com/timeplus-io/gluon/blob/develop/CONTRIBUTING.md) for the project layout, how to run the tests, and how to update the generated REST client.