tinybird 3.3.1.dev0__tar.gz → 3.3.2.dev0__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 (157) hide show
  1. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/PKG-INFO +6 -1
  2. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/ch_utils/engine.py +2 -2
  3. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/client.py +4 -4
  4. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/common.py +3 -3
  5. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/sql.py +3 -3
  6. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/sql_template.py +1 -1
  7. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/__cli__.py +2 -2
  8. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/client.py +4 -4
  9. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/agent.py +1 -17
  10. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/cicd.py +3 -3
  11. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/common.py +1 -1
  12. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_common.py +1 -1
  13. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/tinyunit/tinyunit.py +1 -1
  14. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/branch.py +1 -3
  15. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/cicd.py +3 -3
  16. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/cli.py +2 -2
  17. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/common.py +1 -1
  18. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/datasource.py +1 -3
  19. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +1 -1
  20. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tornado_template.py +1 -1
  21. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/PKG-INFO +6 -1
  22. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/setup.cfg +0 -0
  23. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/__cli__.py +0 -0
  24. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/ch_utils/constants.py +0 -0
  25. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/check_pypi.py +0 -0
  26. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/config.py +0 -0
  27. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/context.py +0 -0
  28. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/exceptions.py +0 -0
  29. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/parse_connection.py +0 -0
  30. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/parse_datasource.py +0 -0
  31. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datafile/parse_pipe.py +0 -0
  32. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/datatypes.py +0 -0
  33. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/feedback_manager.py +0 -0
  34. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/git_settings.py +0 -0
  35. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/prompts.py +0 -0
  36. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/service_datasources.py +0 -0
  37. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/sql_template_fmt.py +0 -0
  38. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/sql_toolset.py +0 -0
  39. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/syncasync.py +0 -0
  40. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/check_pypi.py +0 -0
  41. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/cli.py +0 -0
  42. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/config.py +0 -0
  43. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/__init__.py +0 -0
  44. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/animations.py +0 -0
  45. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/banner.py +0 -0
  46. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/command_agent.py +0 -0
  47. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/compactor.py +0 -0
  48. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/explore_agent.py +0 -0
  49. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/file_agent.py +0 -0
  50. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/memory.py +0 -0
  51. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/mock_agent.py +0 -0
  52. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/models.py +0 -0
  53. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/prompts.py +0 -0
  54. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/testing_agent.py +0 -0
  55. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/__init__.py +0 -0
  56. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/analyze.py +0 -0
  57. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/append.py +0 -0
  58. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/build.py +0 -0
  59. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/datafile.py +0 -0
  60. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/deploy.py +0 -0
  61. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/deploy_check.py +0 -0
  62. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/diff_resource.py +0 -0
  63. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/execute_query.py +0 -0
  64. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/file.py +0 -0
  65. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +0 -0
  66. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/get_openapi_definition.py +0 -0
  67. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/mock.py +0 -0
  68. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/plan.py +0 -0
  69. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/request_endpoint.py +0 -0
  70. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/run_command.py +0 -0
  71. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/secret.py +0 -0
  72. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/tools/test.py +0 -0
  73. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/agent/utils.py +0 -0
  74. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/branch.py +0 -0
  75. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/build.py +0 -0
  76. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/build_common.py +0 -0
  77. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/cli.py +0 -0
  78. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/config.py +0 -0
  79. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/connection.py +0 -0
  80. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/connection_kafka.py +0 -0
  81. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/connection_s3.py +0 -0
  82. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/copy.py +0 -0
  83. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/create.py +0 -0
  84. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build.py +0 -0
  85. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build_common.py +0 -0
  86. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
  87. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
  88. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/diff.py +0 -0
  89. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/fixture.py +0 -0
  90. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_connection.py +0 -0
  91. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
  92. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
  93. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
  94. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/playground.py +0 -0
  95. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datafile/pull.py +0 -0
  96. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/datasource.py +0 -0
  97. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/deployment.py +0 -0
  98. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/deployment_common.py +0 -0
  99. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/deprecations.py +0 -0
  100. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/dev_server.py +0 -0
  101. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/endpoint.py +0 -0
  102. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/exceptions.py +0 -0
  103. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/feedback_manager.py +0 -0
  104. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/fmt.py +0 -0
  105. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/info.py +0 -0
  106. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/infra.py +0 -0
  107. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/job.py +0 -0
  108. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/job_common.py +0 -0
  109. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/llm.py +0 -0
  110. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/llm_utils.py +0 -0
  111. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/local.py +0 -0
  112. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/local_common.py +0 -0
  113. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/local_logs.py +0 -0
  114. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/login.py +0 -0
  115. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/login_common.py +0 -0
  116. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/logout.py +0 -0
  117. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/materialization.py +0 -0
  118. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/mock.py +0 -0
  119. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/mock_common.py +0 -0
  120. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/open.py +0 -0
  121. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/pipe.py +0 -0
  122. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/project.py +0 -0
  123. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/project_commands.py +0 -0
  124. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/regions.py +0 -0
  125. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/secret.py +0 -0
  126. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/secret_common.py +0 -0
  127. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/shell.py +0 -0
  128. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/sink.py +0 -0
  129. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/table.py +0 -0
  130. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/telemetry.py +0 -0
  131. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/test.py +0 -0
  132. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/test_common.py +0 -0
  133. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
  134. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/token.py +0 -0
  135. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/watch.py +0 -0
  136. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/workspace.py +0 -0
  137. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb/modules/workspace_members.py +0 -0
  138. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli.py +0 -0
  139. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/auth.py +0 -0
  140. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/config.py +0 -0
  141. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/connection.py +0 -0
  142. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/exceptions.py +0 -0
  143. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/fmt.py +0 -0
  144. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/job.py +0 -0
  145. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/pipe.py +0 -0
  146. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/regions.py +0 -0
  147. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/tag.py +0 -0
  148. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/telemetry.py +0 -0
  149. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/test.py +0 -0
  150. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
  151. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/workspace.py +0 -0
  152. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  153. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/SOURCES.txt +0 -0
  154. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/dependency_links.txt +0 -0
  155. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/entry_points.txt +0 -0
  156. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/requires.txt +0 -0
  157. {tinybird-3.3.1.dev0 → tinybird-3.3.2.dev0}/tinybird.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 3.3.1.dev0
3
+ Version: 3.3.2.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -57,6 +57,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
57
57
  Changelog
58
58
  ----------
59
59
 
60
+ 3.3.1
61
+ *******
62
+
63
+ - `Changed` Tinybird Code (`tb` / `tb --prompt`) no longer prompts users to auto-update the CLI when starting an agent session.
64
+
60
65
  3.3.0
61
66
  *******
62
67
 
@@ -298,7 +298,7 @@ class EngineOption:
298
298
  self.required = required
299
299
  self.default_value = default_value
300
300
  self.is_valid = is_valid
301
- self.tb_param = tb_param if tb_param else "_".join(["engine", name])
301
+ self.tb_param = tb_param or "_".join(["engine", name])
302
302
 
303
303
 
304
304
  class EngineParam:
@@ -314,7 +314,7 @@ class EngineParam:
314
314
  self.required = required
315
315
  self.default_value = default_value
316
316
  self.is_valid = is_valid
317
- self.tb_param = tb_param if tb_param else self.build_engine_param_name(name)
317
+ self.tb_param = tb_param or self.build_engine_param_name(name)
318
318
 
319
319
  @staticmethod
320
320
  def build_engine_param_name(name: str):
@@ -118,7 +118,7 @@ class TinyB:
118
118
  ) -> Response:
119
119
  url = f"{self.host.strip('/')}/{endpoint.strip('/')}"
120
120
 
121
- token_to_use = use_token if use_token else self.token
121
+ token_to_use = use_token or self.token
122
122
  if token_to_use:
123
123
  url += ("&" if "?" in endpoint else "?") + "token=" + token_to_use
124
124
  if self.version:
@@ -191,7 +191,7 @@ class TinyB:
191
191
  use_token: Optional[str] = None,
192
192
  **kwargs,
193
193
  ):
194
- token_to_use = use_token if use_token else self.token
194
+ token_to_use = use_token or self.token
195
195
  response = await self._req_raw(endpoint, data, files, method, retries, use_token, **kwargs)
196
196
 
197
197
  if response.status_code == 403:
@@ -565,8 +565,8 @@ class TinyB:
565
565
  async def pipes(self, branch=None, dependencies: bool = False, node_attrs=None, attrs=None) -> List[Dict[str, Any]]:
566
566
  params = {
567
567
  "dependencies": "true" if dependencies else "false",
568
- "attrs": attrs if attrs else "",
569
- "node_attrs": node_attrs if node_attrs else "",
568
+ "attrs": attrs or "",
569
+ "node_attrs": node_attrs or "",
570
570
  }
571
571
  response = await self._req(f"/v0/pipes?{urlencode(params)}")
572
572
  pipes = response["pipes"]
@@ -1357,11 +1357,11 @@ def _parse_table_structure(schema: str) -> List[Dict[str, Any]]:
1357
1357
  nullable = column["type"].lower().startswith("nullable")
1358
1358
  column["type"] = column["type"] if not nullable else column["type"][len("Nullable(") : -1] # ')'
1359
1359
  column["nullable"] = nullable
1360
- column["codec"] = column["codec"] if column["codec"] else None
1360
+ column["codec"] = column["codec"] or None
1361
1361
  column["name"] = column["name"]
1362
1362
  column["normalized_name"] = column["name"]
1363
- column["jsonpath"] = column["jsonpath"] if column["jsonpath"] else None
1364
- default_value = column["default_value"] if column["default_value"] else None
1363
+ column["jsonpath"] = column["jsonpath"] or None
1364
+ default_value = column["default_value"] or None
1365
1365
  if nullable and default_value and default_value.lower() == "default null":
1366
1366
  default_value = None
1367
1367
  column["default_value"] = default_value
@@ -821,11 +821,11 @@ def _parse_table_structure(schema: str) -> List[Dict[str, Any]]:
821
821
  nullable = column["type"].lower().startswith("nullable")
822
822
  column["type"] = column["type"] if not nullable else column["type"][len("Nullable(") : -1] # ')'
823
823
  column["nullable"] = nullable
824
- column["codec"] = column["codec"] if column["codec"] else None
824
+ column["codec"] = column["codec"] or None
825
825
  column["name"] = column["name"]
826
826
  column["normalized_name"] = column["name"]
827
- column["jsonpath"] = column["jsonpath"] if column["jsonpath"] else None
828
- default_value = column["default_value"] if column["default_value"] else None
827
+ column["jsonpath"] = column["jsonpath"] or None
828
+ default_value = column["default_value"] or None
829
829
  if nullable and default_value and default_value.lower() == "default null":
830
830
  default_value = None
831
831
  column["default_value"] = default_value
@@ -199,7 +199,7 @@ class Comment:
199
199
 
200
200
  class Placeholder:
201
201
  def __init__(self, name=None, line=None):
202
- self.name = name if name else "__no_value__"
202
+ self.name = name or "__no_value__"
203
203
  self.line = line or "unknown"
204
204
 
205
205
  def __str__(self):
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
4
4
  __url__ = 'https://www.tinybird.co/docs/forward/commands'
5
5
  __author__ = 'Tinybird'
6
6
  __author_email__ = 'support@tinybird.co'
7
- __version__ = '3.3.1.dev0'
8
- __revision__ = '6508f3b'
7
+ __version__ = '3.3.2.dev0'
8
+ __revision__ = 'f22e1ea'
@@ -116,7 +116,7 @@ class TinyB:
116
116
  ) -> Response:
117
117
  url = f"{self.host.strip('/')}/{endpoint.strip('/')}"
118
118
 
119
- token_to_use = use_token if use_token else self.token
119
+ token_to_use = use_token or self.token
120
120
  if token_to_use:
121
121
  url += ("&" if "?" in endpoint else "?") + "token=" + token_to_use
122
122
  if self.version:
@@ -179,7 +179,7 @@ class TinyB:
179
179
  use_token: Optional[str] = None,
180
180
  **kwargs,
181
181
  ):
182
- token_to_use = use_token if use_token else self.token
182
+ token_to_use = use_token or self.token
183
183
  response = self._req_raw(endpoint, data, files, method, retries, use_token, **kwargs)
184
184
 
185
185
  if response.status_code == 403:
@@ -566,8 +566,8 @@ class TinyB:
566
566
  def pipes(self, branch=None, dependencies: bool = False, node_attrs=None, attrs=None) -> List[Dict[str, Any]]:
567
567
  params = {
568
568
  "dependencies": "true" if dependencies else "false",
569
- "attrs": attrs if attrs else "",
570
- "node_attrs": node_attrs if node_attrs else "",
569
+ "attrs": attrs or "",
570
+ "node_attrs": node_attrs or "",
571
571
  }
572
572
  response = self._req(f"/v0/pipes?{urlencode(params)}")
573
573
  pipes = response["pipes"]
@@ -14,9 +14,8 @@ from pydantic_ai import Agent, RunContext, Tool
14
14
  from pydantic_ai.messages import ModelMessage, ModelRequest, UserPromptPart
15
15
  from requests import Response
16
16
 
17
- from tinybird.tb.check_pypi import CheckPypi
18
17
  from tinybird.tb.client import TinyB
19
- from tinybird.tb.config import CURRENT_VERSION, get_clickhouse_host, get_display_cloud_host
18
+ from tinybird.tb.config import get_clickhouse_host, get_display_cloud_host
20
19
  from tinybird.tb.modules.agent.animations import ThinkingAnimation
21
20
  from tinybird.tb.modules.agent.banner import display_banner
22
21
  from tinybird.tb.modules.agent.command_agent import CommandAgent
@@ -72,7 +71,6 @@ from tinybird.tb.modules.common import (
72
71
  get_region_from_host,
73
72
  get_regions,
74
73
  sys_exit,
75
- update_cli,
76
74
  )
77
75
  from tinybird.tb.modules.config import CLIConfig
78
76
  from tinybird.tb.modules.deployment_common import create_deployment
@@ -522,20 +520,6 @@ def run_agent(
522
520
  prompt: Optional[str] = None,
523
521
  feature: Optional[str] = None,
524
522
  ):
525
- if not prompt:
526
- latest_version = CheckPypi().get_latest_version()
527
- if latest_version and "x.y.z" not in CURRENT_VERSION and latest_version != CURRENT_VERSION:
528
- yes = click.confirm(
529
- FeedbackManager.warning(
530
- message=f"New version available. {CURRENT_VERSION} -> {latest_version}. Do you want to update now? [Y/n]"
531
- ),
532
- show_default=False,
533
- default=True,
534
- prompt_suffix="",
535
- )
536
- if yes:
537
- update_cli()
538
-
539
523
  if not prompt:
540
524
  click.echo(FeedbackManager.highlight(message="» Initializing Tinybird Code..."))
541
525
 
@@ -238,8 +238,8 @@ def init_cicd(
238
238
  data_project_dir: Optional[str] = None,
239
239
  ):
240
240
  for provider in Provider:
241
- path = path if path else getcwd()
242
- data_project_dir = data_project_dir if data_project_dir else "."
241
+ path = path or getcwd()
242
+ data_project_dir = data_project_dir or "."
243
243
  generator = CICDGeneratorBase.build_generator(provider.name)
244
244
  params = {
245
245
  "data_project_dir": data_project_dir,
@@ -251,7 +251,7 @@ def init_cicd(
251
251
 
252
252
 
253
253
  def check_cicd_exists(path: Optional[str] = None) -> Optional[Provider]:
254
- path = path if path else getcwd()
254
+ path = path or getcwd()
255
255
  for provider in Provider:
256
256
  generator = CICDGeneratorBase.build_generator(provider.name)
257
257
  if generator.is_already_generated(path):
@@ -1473,7 +1473,7 @@ def wait_job(
1473
1473
  if "progress_percentage" in res:
1474
1474
  progress_bar.update(int(round(res["progress_percentage"])) - progress_bar.pos)
1475
1475
  elif res["status"] != "working":
1476
- progress_bar.update(progress_bar.length if progress_bar.length else 0)
1476
+ progress_bar.update(progress_bar.length or 0)
1477
1477
 
1478
1478
  try:
1479
1479
  result = wait_job_no_ui(tb_client, job_id, progressbar_cb)
@@ -88,7 +88,7 @@ def format_engine(
88
88
  file_parts.append(DATAFILE_NEW_LINE)
89
89
  for arg in sorted(node["engine"].get("args", [])):
90
90
  elem = ", ".join([x.strip() for x in arg[1].split(",")])
91
- file_parts.append(f"ENGINE_{arg[0].upper()} {elem if elem else empty}")
91
+ file_parts.append(f"ENGINE_{arg[0].upper()} {elem or empty}")
92
92
  file_parts.append(DATAFILE_NEW_LINE)
93
93
  file_parts.append(DATAFILE_NEW_LINE)
94
94
  return file_parts
@@ -226,7 +226,7 @@ def run_test_file(tb_client: TinyB, file: str) -> List[TestResult]:
226
226
  pipe = test_case.pipe.name
227
227
  params = test_case.pipe.params
228
228
  try:
229
- sql = test_case.sql if test_case.sql else None
229
+ sql = test_case.sql or None
230
230
  test_response = tb_client.pipe_data(pipe, format="json", params=params, sql=sql)
231
231
  results.append(
232
232
  TestResult(
@@ -1014,9 +1014,7 @@ async def datasource_copy_from_main(datasource_name: str, sql: str, sql_from_mai
1014
1014
 
1015
1015
  client = config.get_client()
1016
1016
 
1017
- response = await client.datasource_query_copy(
1018
- datasource_name, sql if sql else f"SELECT * FROM main.{datasource_name}"
1019
- )
1017
+ response = await client.datasource_query_copy(datasource_name, sql or f"SELECT * FROM main.{datasource_name}")
1020
1018
  if "job" not in response:
1021
1019
  raise CLIBranchException(response)
1022
1020
  job_id = response["job"]["job_id"]
@@ -405,8 +405,8 @@ async def init_cicd(
405
405
  ):
406
406
  provider = ask_provider_interactively()
407
407
  if provider:
408
- path = path if path else getcwd()
409
- data_project_dir = data_project_dir if data_project_dir else "."
408
+ path = path or getcwd()
409
+ data_project_dir = data_project_dir or "."
410
410
  generator = CICDGeneratorBase.build_generator(provider)
411
411
  workspace_info = await client.workspace_info()
412
412
  token = await client.get_token_by_name("admin token")
@@ -426,7 +426,7 @@ async def init_cicd(
426
426
 
427
427
 
428
428
  async def check_cicd_exists(path: Optional[str] = None) -> Optional[Provider]:
429
- path = path if path else getcwd()
429
+ path = path or getcwd()
430
430
  for provider in Provider:
431
431
  generator = CICDGeneratorBase.build_generator(provider.name)
432
432
  if generator.is_already_generated(path):
@@ -229,7 +229,7 @@ async def init(
229
229
  config = CLIConfig.get_project_config()
230
230
  if config.get("token") is None:
231
231
  raise AuthNoTokenException
232
- folder = folder if folder else getcwd()
232
+ folder = folder or getcwd()
233
233
 
234
234
  workspaces: List[Dict[str, Any]] = (await client.user_workspaces_and_branches()).get("workspaces", [])
235
235
  current_ws: Dict[str, Any] = next(
@@ -644,7 +644,7 @@ async def pull(ctx: Context, folder: str, auto: bool, match: Optional[str], forc
644
644
  """Retrieve latest versions for project files from Tinybird."""
645
645
 
646
646
  client = ctx.ensure_object(dict)["client"]
647
- folder = folder if folder else getcwd()
647
+ folder = folder or getcwd()
648
648
 
649
649
  return await folder_pull(client, folder, auto, match, force, fmt=fmt)
650
650
 
@@ -1601,7 +1601,7 @@ async def wait_job(
1601
1601
  if "progress_percentage" in res:
1602
1602
  progress_bar.update(int(round(res["progress_percentage"])) - progress_bar.pos)
1603
1603
  elif res["status"] != "working":
1604
- progress_bar.update(progress_bar.length if progress_bar.length else 0)
1604
+ progress_bar.update(progress_bar.length or 0)
1605
1605
 
1606
1606
  try:
1607
1607
  # TODO: Simplify this as it's not needed to use two functions for
@@ -728,9 +728,7 @@ async def datasource_copy_from_main(
728
728
  click.echo(FeedbackManager.error_exception(error="Use --sql or --sql-from-main"))
729
729
  return
730
730
 
731
- response = await client.datasource_query_copy(
732
- datasource_name, sql if sql else f"SELECT * FROM main.{datasource_name}"
733
- )
731
+ response = await client.datasource_query_copy(datasource_name, sql or f"SELECT * FROM main.{datasource_name}")
734
732
  if "job" not in response:
735
733
  raise Exception(response)
736
734
  job_id = response["job"]["job_id"]
@@ -226,7 +226,7 @@ async def run_test_file(tb_client: TinyB, file: str) -> List[TestResult]:
226
226
  pipe = test_case.pipe.name
227
227
  params = test_case.pipe.params
228
228
  try:
229
- sql = test_case.sql if test_case.sql else None
229
+ sql = test_case.sql or None
230
230
  test_response = await tb_client.pipe_data(pipe, format="json", params=params, sql=sql)
231
231
  results.append(
232
232
  TestResult(
@@ -283,7 +283,7 @@ class Template:
283
283
  .. versionchanged:: 4.3
284
284
  Added ``whitespace`` parameter; deprecated ``compress_whitespace``.
285
285
  """
286
- name = name if name else "<string>"
286
+ name = name or "<string>"
287
287
  self.name = escape.native_str(name)
288
288
 
289
289
  if compress_whitespace is not _UNSET:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 3.3.1.dev0
3
+ Version: 3.3.2.dev0
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -57,6 +57,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
57
57
  Changelog
58
58
  ----------
59
59
 
60
+ 3.3.1
61
+ *******
62
+
63
+ - `Changed` Tinybird Code (`tb` / `tb --prompt`) no longer prompts users to auto-update the CLI when starting an agent session.
64
+
60
65
  3.3.0
61
66
  *******
62
67
 
File without changes