tinybird 5.0.3.dev0__tar.gz → 5.0.4__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 (133) hide show
  1. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/PKG-INFO +41 -4
  2. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/pyproject.toml +43 -36
  3. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/ch_utils/constants.py +1 -1
  4. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/ch_utils/engine.py +5 -9
  5. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/check_pypi.py +1 -1
  6. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/client.py +98 -53
  7. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/config.py +3 -40
  8. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/datafile/common.py +50 -74
  9. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/feedback_manager.py +10 -110
  10. tinybird-5.0.4/tinybird/git_settings.py +63 -0
  11. tinybird-5.0.4/tinybird/prompts.py +438 -0
  12. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/service_datasources.py +1 -1
  13. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/sql.py +7 -5
  14. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/sql_template.py +97 -75
  15. tinybird-5.0.4/tinybird/sql_template_fmt.py +515 -0
  16. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/sql_toolset.py +8 -8
  17. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/__cli__.py +2 -2
  18. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/client.py +73 -49
  19. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/build.py +1 -1
  20. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/build_common.py +1 -1
  21. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/cli.py +15 -7
  22. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/common.py +65 -45
  23. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/config.py +1 -1
  24. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/connection_kafka.py +6 -1
  25. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/copy.py +1 -1
  26. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/build.py +3 -3
  27. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/build_common.py +2 -2
  28. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/build_pipe.py +9 -7
  29. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/diff.py +12 -10
  30. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/format_common.py +1 -1
  31. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/format_datasource.py +2 -2
  32. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/format_pipe.py +3 -3
  33. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/pull.py +1 -1
  34. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datasource.py +23 -15
  35. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/deployment.py +8 -40
  36. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/deployment_common.py +73 -17
  37. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/deprecations.py +10 -8
  38. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/endpoint.py +1 -1
  39. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/feedback_manager.py +15 -7
  40. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/fmt.py +1 -1
  41. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/info.py +1 -1
  42. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/infra.py +2 -2
  43. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/llm_utils.py +7 -4
  44. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/local.py +4 -2
  45. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/local_common.py +7 -6
  46. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/local_logs.py +5 -5
  47. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/login_common.py +12 -6
  48. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/materialization.py +1 -1
  49. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/pipe.py +1 -1
  50. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/preview.py +1 -0
  51. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/project.py +0 -46
  52. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/query_output.py +3 -1
  53. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/secret.py +1 -1
  54. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/sink.py +1 -1
  55. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/table.py +14 -8
  56. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/telemetry.py +7 -3
  57. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/test.py +28 -2
  58. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/test_common.py +62 -6
  59. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/tinyunit/tinyunit.py +6 -6
  60. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/token.py +23 -11
  61. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/watch.py +5 -4
  62. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/branch.py +8 -6
  63. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/cli.py +22 -22
  64. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/common.py +74 -46
  65. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/config.py +1 -1
  66. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/connection.py +11 -6
  67. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/datasource.py +46 -28
  68. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/fmt.py +2 -2
  69. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/pipe.py +7 -8
  70. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/tag.py +1 -1
  71. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/telemetry.py +7 -3
  72. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/test.py +5 -5
  73. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +7 -5
  74. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/workspace.py +2 -2
  75. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/workspace_members.py +6 -6
  76. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tornado_template.py +101 -63
  77. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird.egg-info/PKG-INFO +41 -4
  78. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird.egg-info/SOURCES.txt +0 -4
  79. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird.egg-info/requires.txt +5 -3
  80. tinybird-5.0.3.dev0/tinybird/git_settings.py +0 -143
  81. tinybird-5.0.3.dev0/tinybird/prompts.py +0 -913
  82. tinybird-5.0.3.dev0/tinybird/sql_template_fmt.py +0 -296
  83. tinybird-5.0.3.dev0/tinybird/syncasync.py +0 -638
  84. tinybird-5.0.3.dev0/tinybird/tb/modules/datafile/build_datasource.py +0 -409
  85. tinybird-5.0.3.dev0/tinybird/tb/modules/datafile/pipe_checker.py +0 -568
  86. tinybird-5.0.3.dev0/tinybird/tb/modules/datafile/playground.py +0 -1060
  87. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/setup.cfg +0 -0
  88. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/__cli__.py +0 -0
  89. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/context.py +0 -0
  90. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/datafile/exceptions.py +0 -0
  91. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/datafile/parse_connection.py +0 -0
  92. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/datafile/parse_datasource.py +0 -0
  93. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/datafile/parse_pipe.py +0 -0
  94. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/datatypes.py +0 -0
  95. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/iterating/__init__.py +0 -0
  96. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/iterating/data_branch_modes.py +0 -0
  97. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/check_pypi.py +0 -0
  98. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/cli.py +0 -0
  99. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/config.py +0 -0
  100. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/branch.py +0 -0
  101. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/cicd.py +0 -0
  102. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/connection.py +0 -0
  103. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/connection_dynamodb.py +0 -0
  104. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/connection_s3.py +0 -0
  105. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/create.py +0 -0
  106. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/fixture.py +0 -0
  107. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/datafile/format_connection.py +0 -0
  108. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/exceptions.py +0 -0
  109. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/job.py +0 -0
  110. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/job_common.py +0 -0
  111. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/llm.py +0 -0
  112. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/login.py +0 -0
  113. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/logout.py +0 -0
  114. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/logs.py +0 -0
  115. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/open.py +0 -0
  116. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/project_commands.py +0 -0
  117. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/py_project.py +0 -0
  118. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/regions.py +0 -0
  119. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/secret_common.py +0 -0
  120. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/ts_project.py +0 -0
  121. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/workspace.py +0 -0
  122. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb/modules/workspace_members.py +0 -0
  123. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli.py +0 -0
  124. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/auth.py +0 -0
  125. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/cicd.py +0 -0
  126. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/exceptions.py +0 -0
  127. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/job.py +0 -0
  128. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/tb_cli_modules/regions.py +0 -0
  129. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/utils/__init__.py +0 -0
  130. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird/utils/bools.py +0 -0
  131. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird.egg-info/dependency_links.txt +0 -0
  132. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird.egg-info/entry_points.txt +0 -0
  133. {tinybird-5.0.3.dev0 → tinybird-5.0.4}/tinybird.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 5.0.3.dev0
3
+ Version: 5.0.4
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -8,7 +8,9 @@ Author-email: support@tinybird.co
8
8
  Requires-Python: >=3.11, <3.14
9
9
  Description-Content-Type: text/x-rst
10
10
  Requires-Dist: aiofiles==24.1.0
11
+ Requires-Dist: asgiref<4,>=3.9
11
12
  Requires-Dist: boto3
13
+ Requires-Dist: certifi>=2026.10.19
12
14
  Requires-Dist: click<8.2,>=8.1.6
13
15
  Requires-Dist: clickhouse-toolset==0.34.dev0
14
16
  Requires-Dist: colorama==0.4.6
@@ -24,11 +26,11 @@ Requires-Dist: pydantic~=2.11.7
24
26
  Requires-Dist: pyperclip==1.9.0
25
27
  Requires-Dist: pyyaml<6.1,>=6.0
26
28
  Requires-Dist: requests<3,>=2.28.1
27
- Requires-Dist: shandy-sqlfmt==0.11.1
28
- Requires-Dist: shandy-sqlfmt[jinjafmt]==0.11.1
29
+ Requires-Dist: shandy-sqlfmt==0.29.0
30
+ Requires-Dist: shandy-sqlfmt[jinjafmt]==0.29.0
29
31
  Requires-Dist: toposort==1.10
30
32
  Requires-Dist: tornado~=6.5.5
31
- Requires-Dist: urllib3<2,>=1.26.14
33
+ Requires-Dist: urllib3~=2.8
32
34
  Requires-Dist: watchdog==6.0.0
33
35
  Requires-Dist: wheel
34
36
  Requires-Dist: packaging<24,>=23.1
@@ -52,6 +54,40 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
52
54
  Changelog
53
55
  ----------
54
56
 
57
+ 5.0.4
58
+ *******
59
+
60
+ - `Changed` ``tb test run`` loads auto-detected fixtures in a stable, name-sorted order so runs are reproducible across platforms.
61
+ - `Added` ``tb test run --fixture DATASOURCE=PATH`` (repeatable) to load extra fixture files in a controlled order, and ``--no-auto-fixtures`` to skip the name-matching auto-load step.
62
+ - `Fixed` ``tb endpoint ls --format json`` prints the endpoints instead of failing with ``echo() got an unexpected keyword argument 'force_output'`` when the global ``--output`` is ``human``.
63
+ - `Fixed` ``tb test run`` skips a test file that is empty or has only comments instead of failing with ``object of type 'NoneType' has no len()``. ``tb test update`` leaves such a file unchanged instead of failing with ``'NoneType' object is not iterable``.
64
+ - `Fixed` ``tb deploy`` stops waiting and reports how to promote manually when the server reports an auto-promotion error.
65
+ - `Fixed` ``tb --branch=NAME deploy`` and ``tb preview`` print ``tb --branch=NAME deployment ...`` in their follow-up hints instead of ``tb --cloud deployment ...``.
66
+ - `Fixed` ``tb deployment promote`` and ``tb deployment discard`` pick the live deployment by its ``live`` flag instead of its position in the list, and fail when no deployment is live.
67
+ - `Changed` Send the client token in the ``Authorization: Bearer`` header instead of adding it to the URL, so retry warnings and request logs do not show it. A ``token`` query parameter given explicitly, such as ``tb endpoint data --token``, takes precedence.
68
+ - `Changed` SQL templates that use ``**`` keyword unpacking log the warning ``Template uses ** keyword unpacking``. This syntax will become invalid.
69
+ - `Changed` Add type annotations to the parameters of the shared datafile parser. No user-facing behavior changes.
70
+ - `Changed` Add type annotations to the parameters of the remaining CLI modules. No user-facing behavior changes.
71
+ - `Changed` Upgrade ``urllib3`` from ``>=1.26.14,<2`` to ``~=2.8``. HTTPS connections to custom hosts and proxies need TLS 1.2 or later and a certificate with a ``subjectAltName``. On Python 3.13, the CA chain must also pass strict X.509 checks.
72
+ - `Fixed` ``tb sql`` queries longer than 4096 characters that contain non-Latin-1 characters (for example ``€``) no longer fail with ``UnicodeEncodeError``.
73
+ - `Fixed` ``tb deploy --template`` rejects template paths outside the cloned repository (absolute paths, ``..`` segments or symlinks) instead of copying local files into the project folder.
74
+ - `Fixed` ``tb token create jwt`` fails when a ``--filter`` or ``--fixed-params`` lands, by position, on a scope that does not accept it, instead of creating the token without that restriction.
75
+ - `Improved` Workspace listing skips member notification settings.
76
+ - `Improved` Workspace listing skips dedicated-cluster detection.
77
+ - `Fixed` Parsing large multiline datafile blocks avoids quadratic memory allocations.
78
+ - `Fixed` Printing large branch regression test summaries avoids quadratic memory allocations.
79
+ - `Fixed` Parsing large multiline datafile blocks with the legacy parser avoids quadratic memory allocations.
80
+ - `Fixed` The CLI depends on ``asgiref`` (``>=3.9``) instead of bundling an old copy of its ``async_to_sync``/``sync_to_async`` helpers, which avoids ``RuntimeError: Event loop is closed``.
81
+ - `Fixed` ``tb token create static`` keeps ``+``, ``&`` and ``#`` in ``--filter`` when it updates an existing token.
82
+ - `Fixed` Building token filter parameters and SQL schemas avoids quadratic memory allocations.
83
+ - `Changed` Remove unused ``Project`` helpers and the unused ``organization_subscription`` client method.
84
+
85
+ 5.0.3
86
+ *******
87
+
88
+ - `Changed` The CLI requires ``certifi>=2026.10.19``, which no longer trusts the compromised eMudhra intermediate CAs.
89
+ - `Changed` Upgrade the ``shandy-sqlfmt`` SQL formatter from 0.11.1 to 0.29.0. ``tb fmt`` keeps its existing output.
90
+
55
91
  5.0.2
56
92
  *******
57
93
 
@@ -60,6 +96,7 @@ Changelog
60
96
  5.0.1
61
97
  *******
62
98
 
99
+ - `Fixed` SQL template ``backend_hint()`` and ``max_threads()`` directives so line breaks cannot escape their SQL comments.
63
100
  - `Fixed` Git branches whose name starts with a digit (for example ``3-clean-up-tokens``) work with ``tb build`` and ``tb deploy``. Cloud branches keep the leading digit; Tinybird Local workspaces use a ``branch_`` prefix.
64
101
  - `Fixed` ``tb branch clear <name>`` also finds the ``branch_``-prefixed name that ``tb branch create <name>`` generates. If the name matches more than one Branch, use the Branch ID.
65
102
 
@@ -22,66 +22,67 @@ dependencies = [
22
22
  "aiofiles==24.1.0",
23
23
  "aiohttp~=3.11",
24
24
  "anthropic~=1.9",
25
+ "asgiref==3.13.0",
25
26
  "async-lru==2.3.0",
26
27
  "aws-msk-iam-sasl-signer-python==1.0.2",
27
- "cachetools~=6.0",
28
+ "cachetools~=6.2",
28
29
  "cffi~=2.0",
29
30
  "chardet==4.0.0",
30
- "ciso8601==2.2.0",
31
+ "ciso8601==2.3.3",
31
32
  "click~=8.5",
32
33
  "clickhouse-cityhash==1.0.2.5",
33
- "clickhouse-driver==0.2.9",
34
+ "clickhouse-driver==0.2.10",
34
35
  "confluent-kafka[avro,json,schemaregistry]==2.12.2",
35
36
  "contextvars==2.4",
36
37
  "cramjam==2.11.0",
37
38
  "croniter==6.2.2",
38
39
  "cryptography~=50.0",
39
40
  "datasketch==1.6.5",
40
- "dnspython==2.8.0",
41
+ "ddtrace==4.16.1",
42
+ "dnspython==2.9.0",
41
43
  "docker==7.1.0",
42
- "fastavro==1.12.2",
44
+ "fastavro==1.13.1",
43
45
  "fastmcp==2.12.2",
44
- "google-cloud-aiplatform~=1.148",
45
46
  "google-cloud-compute==1.48.0",
46
47
  "google-cloud-scheduler==2.20.0",
47
48
  "google-cloud-secret-manager==2.29.0",
48
49
  "google-cloud-storage~=3.4",
49
50
  "google_api_core~=2.25",
50
- "googleapis_common_protos==1.66.0",
51
- "grpcio_status==1.67.1",
51
+ "googleapis_common_protos==1.70.0",
52
+ "grpcio_status==1.84.0",
52
53
  "humanfriendly==10.0",
53
- "isal==1.8.0",
54
+ "isal==1.9.1",
54
55
  "jinja2",
55
56
  "jsondiff==2.2.1",
56
57
  "jsonschema==4.23.0",
57
58
  "litellm~=1.97",
58
59
  "logfire-api==4.2.0",
59
- "lru-dict==1.3.0",
60
+ "lru-dict==1.4.1",
60
61
  "lz4==4.4.5",
61
62
  "memray==1.20.0",
62
63
  "msgspec==0.21.1",
63
64
  "multidict==6.9.1",
64
65
  "networkx==3.4.2",
65
- "numpy==1.26.4",
66
+ "numpy==2.5.4",
66
67
  "objgraph==3.6.2",
67
68
  "opentelemetry-api~=1.38",
68
69
  "opentelemetry-exporter-otlp-proto-http~=1.38",
70
+ "opentelemetry-instrumentation-tornado~=0.66b0",
69
71
  "opentelemetry-sdk~=1.38",
70
72
  "orb-billing==4.80.1",
71
- "orjson==3.11.9",
73
+ "orjson==3.13.0",
72
74
  "packaging~=26.3",
73
75
  "passlib==1.7.1",
74
- "posthog==7.28.0",
75
- "pre-commit==4.6.2",
76
+ "pre-commit==4.7.0",
76
77
  "prometheus_client==0.26.0",
77
78
  "prompt_toolkit==3.0.48",
78
- "propcache==0.3.2",
79
- "proto_plus==1.25.0",
80
- "protobuf==5.29.5",
79
+ "propcache==0.5.4",
80
+ "proto_plus==1.26.1",
81
+ "protobuf==6.33.6",
81
82
  "psutil==7.2.2",
82
83
  "psycopg2-binary==2.9.12",
83
- "py-spy==0.4.2",
84
- "pyarrow==23.0.1",
84
+ "py-spy==0.4.3",
85
+ "pyarrow==26.0.0",
85
86
  "pycurl==7.45.7",
86
87
  "pydantic-ai-slim[anthropic]~=2.0",
87
88
  "pydantic-ai-slim[google]~=2.0",
@@ -89,7 +90,7 @@ dependencies = [
89
90
  "pydantic~=2.12",
90
91
  "pyjwt[crypto]==2.9.0",
91
92
  "pympler==1.1",
92
- "pynacl==1.5.0",
93
+ "pynacl==1.6.2",
93
94
  "pyperclip==1.9.0",
94
95
  "python-dateutil==2.9.0.post0",
95
96
  "python-dotenv==1.1.0",
@@ -97,33 +98,32 @@ dependencies = [
97
98
  "pyyaml~=6.0",
98
99
  "redis[hiredis]==5.3.1",
99
100
  "requests~=2.32.5",
100
- "sentry-sdk==2.69.2",
101
- "setproctitle==1.3.3",
102
- "shandy-sqlfmt==0.11.1",
103
- "shandy-sqlfmt[jinjafmt]==0.11.1",
101
+ "sentry-sdk==2.74.0",
102
+ "setproctitle==1.3.8",
103
+ "shandy-sqlfmt==0.29.0",
104
+ "shandy-sqlfmt[jinjafmt]==0.29.0",
104
105
  "sqlparse==0.4.3",
105
- "starlette==1.0.1",
106
+ "starlette==1.10.0",
106
107
  "streaming-form-data==1.20.0",
107
108
  "stripe==3.1.0",
108
109
  "tabulate==0.8.10",
109
110
  "thefuzz==0.22.1",
110
- "tinybird-python-sdk[ai]==0.3.7",
111
- "tinybird-toolset==2.7.4",
111
+ "tinybird-toolset==2.8.4",
112
112
  "toposort==1.10",
113
113
  "tornado==6.5.5",
114
114
  "urllib3~=2.8",
115
- "uvicorn[standard]~=0.53.0",
115
+ "uvicorn[standard]~=0.54.0",
116
116
  "virtualenv==20.21.1",
117
117
  "watchdog==6.0.0",
118
118
  "wheel==0.37.1",
119
- "zlib-ng==1.0.0",
119
+ "zlib-ng==1.1.0",
120
120
  "zstandard==0.25.0",
121
121
  ]
122
122
 
123
123
  [dependency-groups]
124
124
  deploy = [
125
125
  "GitPython==3.1.44",
126
- "ansible==8.5.0",
126
+ "ansible==13.8.0",
127
127
  "ara==1.6.1",
128
128
  "boto3~=1.40",
129
129
  "fabric==3.2.2",
@@ -152,12 +152,14 @@ doc = [
152
152
  lint = [
153
153
  "botocore-stubs~=1.40",
154
154
  "celery-types~=0.20.0",
155
- "flake8~=7.4",
155
+ "flake8~=7.5",
156
156
  "flake8-async~=26.8",
157
- "mypy==2.3.1",
158
- "ruff==0.16.10",
157
+ "mypy==2.4.1",
158
+ "ruff==0.17.5",
159
159
  "types-Markdown",
160
160
  "types-PyYAML",
161
+ "types-aiobotocore-s3~=2.25",
162
+ "types-aiobotocore-sqs~=2.25",
161
163
  "types-aiofiles==24.1.0.20241221",
162
164
  "types-boto3-lite~=1.40",
163
165
  "types-cachetools",
@@ -189,6 +191,11 @@ test = [
189
191
  "rangehttpserver==1.4.0",
190
192
  "yappi==1.7.6",
191
193
  ]
194
+ # chdb is a 185 MB wheel: only `tests/dst` needs it. Kept out of `dev` so the jobs that export
195
+ # the default groups do not download it; install it with `uv sync --group dst`.
196
+ dst = [
197
+ "chdb==4.4.0",
198
+ ]
192
199
  # Synced automatically by plain `uv run`/`uv sync`, no `--group` needed.
193
200
  dev = [
194
201
  { include-group = "test" },
@@ -197,7 +204,7 @@ dev = [
197
204
  ]
198
205
 
199
206
  [project.scripts]
200
- tinybird_server = "tinybird.app:run"
207
+ tinybird_server = "tinybird.server_entrypoint:run"
201
208
  tinybird_tool = "tinybird.tinybird_tool.main:cli"
202
209
  tb_old = "tinybird.tb_cli:cli"
203
210
  tb = "tinybird.tb.cli:cli"
@@ -210,6 +217,7 @@ members = [
210
217
  "data_connector",
211
218
  "gatherer",
212
219
  "platform-api",
220
+ "songbird",
213
221
  "tinybird_orchestrator",
214
222
  ]
215
223
 
@@ -218,7 +226,7 @@ include-package-data = true
218
226
 
219
227
  [tool.setuptools.packages.find]
220
228
  namespaces = false
221
- include = ["tinybird", "tinybird.*", "tinybird_shared", "tinybird_shared.*", "scripts"]
229
+ include = ["tinybird", "tinybird.*", "tinybird_shared", "tinybird_shared.*"]
222
230
  exclude = ["tests*"]
223
231
 
224
232
  [tool.setuptools.package-data]
@@ -242,5 +250,4 @@ tinybird_shared = [
242
250
  "gatherer_settings/**/*",
243
251
  "clickhouse/**/*",
244
252
  "gatherer_backpressure/**/*",
245
- "data_connector_circuit_breaker/**/*",
246
253
  ]
@@ -158,7 +158,7 @@ SQL_KEYWORDS = {
158
158
  "when",
159
159
  "where",
160
160
  "with",
161
- "writable"
161
+ "writable",
162
162
  # Extra keywords that were added here but don't come from CH source code
163
163
  "anti",
164
164
  "asof",
@@ -102,10 +102,6 @@ class TableDetails:
102
102
  _engine_full = _engine_full.replace(" SETTINGS index_granularity = 8192", "")
103
103
  return engine_replicated_to_local(_BACKQUOTED_ENGINE_NAME.sub(r"\1", _engine_full))
104
104
 
105
- @property
106
- def original_engine_full(self) -> Optional[str]:
107
- return self.details.get("engine_full", None)
108
-
109
105
  @property
110
106
  def name(self) -> str:
111
107
  return self.details.get("name", "")
@@ -305,10 +301,10 @@ class EngineOption:
305
301
  name: str,
306
302
  sql: str,
307
303
  required: Optional[bool] = None,
308
- default_value=None,
304
+ default_value: Optional[str] = None,
309
305
  is_valid: Optional[Callable[[List[Dict[str, Any]], str], Optional[str]]] = None,
310
306
  tb_param: Optional[str] = None,
311
- ):
307
+ ) -> None:
312
308
  self.name = name
313
309
  self.sql = sql
314
310
  self.required = required
@@ -322,10 +318,10 @@ class EngineParam:
322
318
  self,
323
319
  name: str,
324
320
  required: Optional[bool] = None,
325
- default_value=None,
321
+ default_value: Optional[str] = None,
326
322
  is_valid: Optional[Callable[[List[Dict[str, Any]], str], Optional[str]]] = None,
327
323
  tb_param: Optional[str] = None,
328
- ):
324
+ ) -> None:
329
325
  self.name = name
330
326
  self.required = required
331
327
  self.default_value = default_value
@@ -360,7 +356,7 @@ def columns_are_valid(columns: List[Dict[str, Any]], column_names: str) -> str:
360
356
  return ", ".join(new_column_names)
361
357
 
362
358
 
363
- def sorting_key_is_valid(columns: List[Dict[str, Any]], value: Optional[str]) -> str:
359
+ def sorting_key_is_valid(columns: List[Dict[str, Any]], value: Optional[str]) -> str: # noqa: ARG001
364
360
  INVALID_SORTING_KEYS = ["tuple()"]
365
361
 
366
362
  if not value:
@@ -1,9 +1,9 @@
1
1
  from typing import Optional
2
2
 
3
3
  import requests
4
+ from asgiref.sync import sync_to_async
4
5
 
5
6
  from tinybird.feedback_manager import FeedbackManager
6
- from tinybird.syncasync import sync_to_async
7
7
  from tinybird.tb_cli_modules.common import CLIException, getenv_bool
8
8
 
9
9
  PYPY_URL = "https://pypi.org/pypi/tinybird-cli/json"