tinybird 4.6.24.dev0__tar.gz → 5.0.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.
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/PKG-INFO +7 -2
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/pyproject.toml +25 -22
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/ch_utils/engine.py +28 -9
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/client.py +3 -12
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/datafile/common.py +8 -3
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/sql_template.py +10 -3
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/sql_toolset.py +1 -1
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/__cli__.py +2 -2
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/client.py +3 -12
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/branch.py +3 -23
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird.egg-info/PKG-INFO +7 -2
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/setup.cfg +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/__cli__.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/check_pypi.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/config.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/context.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/datatypes.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/feedback_manager.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/git_settings.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/iterating/__init__.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/iterating/data_branch_modes.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/prompts.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/service_datasources.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/sql.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/syncasync.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/cli.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/config.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/branch.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/build.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/build_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/config.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/connection_dynamodb.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/connection_kafka.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/connection_s3.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/create.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/format_connection.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/deployment_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/info.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/job.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/job_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/local.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/local_logs.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/login.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/login_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/logs.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/open.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/preview.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/project.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/project_commands.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/py_project.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/query_output.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/secret_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/sink.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/table.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/test.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/test_common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/token.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/ts_project.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/tornado_template.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/utils/__init__.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird/utils/bools.py +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-4.6.24.dev0 → tinybird-5.0.0}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: tinybird
|
|
3
|
-
Version:
|
|
3
|
+
Version: 5.0.0
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/forward/commands
|
|
6
6
|
Author: Tinybird
|
|
7
7
|
Author-email: support@tinybird.co
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.11, <3.14
|
|
9
9
|
Description-Content-Type: text/x-rst
|
|
10
10
|
Requires-Dist: aiofiles==24.1.0
|
|
11
11
|
Requires-Dist: boto3
|
|
@@ -52,6 +52,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
52
52
|
Changelog
|
|
53
53
|
----------
|
|
54
54
|
|
|
55
|
+
5.0.0
|
|
56
|
+
*******
|
|
57
|
+
|
|
58
|
+
- `Removed` Python 3.10 support. The minimum supported Python version is now 3.11.
|
|
59
|
+
|
|
55
60
|
4.6.22
|
|
56
61
|
********
|
|
57
62
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
requires = [
|
|
3
3
|
"setuptools>=61.0",
|
|
4
4
|
"wheel==0.37.1",
|
|
5
|
-
"cffi
|
|
5
|
+
"cffi~=2.0",
|
|
6
6
|
]
|
|
7
7
|
build-backend = "setuptools.build_meta"
|
|
8
8
|
|
|
@@ -24,8 +24,8 @@ dependencies = [
|
|
|
24
24
|
"anthropic~=1.9",
|
|
25
25
|
"async-lru==2.3.0",
|
|
26
26
|
"aws-msk-iam-sasl-signer-python==1.0.2",
|
|
27
|
-
"cachetools
|
|
28
|
-
"cffi
|
|
27
|
+
"cachetools~=6.0",
|
|
28
|
+
"cffi~=2.0",
|
|
29
29
|
"chardet==4.0.0",
|
|
30
30
|
"ciso8601==2.2.0",
|
|
31
31
|
"click~=8.5",
|
|
@@ -35,7 +35,7 @@ dependencies = [
|
|
|
35
35
|
"contextvars==2.4",
|
|
36
36
|
"cramjam==2.11.0",
|
|
37
37
|
"croniter==6.2.2",
|
|
38
|
-
"cryptography~=
|
|
38
|
+
"cryptography~=50.0",
|
|
39
39
|
"datasketch==1.6.5",
|
|
40
40
|
"dnspython==2.8.0",
|
|
41
41
|
"docker==7.1.0",
|
|
@@ -54,21 +54,21 @@ dependencies = [
|
|
|
54
54
|
"jinja2",
|
|
55
55
|
"jsondiff==2.2.1",
|
|
56
56
|
"jsonschema==4.23.0",
|
|
57
|
-
"litellm
|
|
57
|
+
"litellm~=1.97",
|
|
58
58
|
"logfire-api==4.2.0",
|
|
59
59
|
"lru-dict==1.3.0",
|
|
60
60
|
"lz4==4.4.5",
|
|
61
61
|
"memray==1.20.0",
|
|
62
62
|
"msgspec==0.21.1",
|
|
63
|
-
"multidict==6.
|
|
63
|
+
"multidict==6.9.1",
|
|
64
64
|
"networkx==3.4.2",
|
|
65
65
|
"numpy==1.26.4",
|
|
66
66
|
"objgraph==3.6.2",
|
|
67
|
-
"opentelemetry-api
|
|
68
|
-
"opentelemetry-exporter-otlp-proto-http
|
|
69
|
-
"opentelemetry-sdk
|
|
70
|
-
"orb-billing==
|
|
71
|
-
"orjson==3.11.
|
|
67
|
+
"opentelemetry-api~=1.38",
|
|
68
|
+
"opentelemetry-exporter-otlp-proto-http~=1.38",
|
|
69
|
+
"opentelemetry-sdk~=1.38",
|
|
70
|
+
"orb-billing==4.80.1",
|
|
71
|
+
"orjson==3.11.9",
|
|
72
72
|
"packaging~=26.3",
|
|
73
73
|
"passlib==1.7.1",
|
|
74
74
|
"posthog==7.28.0",
|
|
@@ -96,7 +96,7 @@ dependencies = [
|
|
|
96
96
|
"python-ulid==2.7.0",
|
|
97
97
|
"pyyaml~=6.0",
|
|
98
98
|
"redis[hiredis]==5.3.1",
|
|
99
|
-
"requests
|
|
99
|
+
"requests~=2.32.5",
|
|
100
100
|
"sentry-sdk==2.69.2",
|
|
101
101
|
"setproctitle==1.3.3",
|
|
102
102
|
"shandy-sqlfmt==0.11.1",
|
|
@@ -108,11 +108,11 @@ dependencies = [
|
|
|
108
108
|
"tabulate==0.8.10",
|
|
109
109
|
"thefuzz==0.22.1",
|
|
110
110
|
"tinybird-python-sdk[ai]==0.3.7",
|
|
111
|
-
"tinybird-toolset==2.
|
|
111
|
+
"tinybird-toolset==2.7.1",
|
|
112
112
|
"toposort==1.10",
|
|
113
113
|
"tornado==6.5.5",
|
|
114
|
-
"urllib3
|
|
115
|
-
"uvicorn[standard]
|
|
114
|
+
"urllib3~=2.8",
|
|
115
|
+
"uvicorn[standard]~=0.53.0",
|
|
116
116
|
"virtualenv==20.21.1",
|
|
117
117
|
"watchdog==6.0.0",
|
|
118
118
|
"wheel==0.37.1",
|
|
@@ -130,7 +130,7 @@ deploy = [
|
|
|
130
130
|
"google-auth~=2.47",
|
|
131
131
|
"jsonnet",
|
|
132
132
|
"prettytable==3.8.0",
|
|
133
|
-
"requests
|
|
133
|
+
"requests~=2.32.5",
|
|
134
134
|
"requests[security]",
|
|
135
135
|
"xmltodict",
|
|
136
136
|
]
|
|
@@ -142,7 +142,7 @@ devtools = [
|
|
|
142
142
|
]
|
|
143
143
|
doc = [
|
|
144
144
|
"Pallets-Sphinx-Themes==2.3.0",
|
|
145
|
-
"pyOpenSSL~=
|
|
145
|
+
"pyOpenSSL~=26.4",
|
|
146
146
|
"sphinx-autobuild==2024.2.4",
|
|
147
147
|
"sphinx-sitemap",
|
|
148
148
|
"sphinx==7.3.7",
|
|
@@ -151,10 +151,11 @@ doc = [
|
|
|
151
151
|
]
|
|
152
152
|
lint = [
|
|
153
153
|
"botocore-stubs~=1.40",
|
|
154
|
-
"
|
|
154
|
+
"celery-types~=0.20.0",
|
|
155
|
+
"flake8~=7.4",
|
|
155
156
|
"flake8-async~=26.8",
|
|
156
157
|
"mypy==2.3.1",
|
|
157
|
-
"ruff==0.16.
|
|
158
|
+
"ruff==0.16.10",
|
|
158
159
|
"types-Markdown",
|
|
159
160
|
"types-PyYAML",
|
|
160
161
|
"types-aiofiles==24.1.0.20241221",
|
|
@@ -170,16 +171,16 @@ lint = [
|
|
|
170
171
|
"types_croniter",
|
|
171
172
|
]
|
|
172
173
|
test = [
|
|
173
|
-
"coverage
|
|
174
|
+
"coverage~=7.16",
|
|
174
175
|
"freezegun==1.5.5",
|
|
175
176
|
"google-auth~=2.47",
|
|
176
177
|
"gsutil==4.58",
|
|
177
178
|
"httpx2~=2.13",
|
|
178
|
-
"hypothesis==6.156.
|
|
179
|
+
"hypothesis==6.156.9",
|
|
179
180
|
"oauth2client==3.0.0",
|
|
180
181
|
"py==1.11.0",
|
|
181
182
|
"pytest-asyncio~=1.4",
|
|
182
|
-
"pytest-cov
|
|
183
|
+
"pytest-cov~=7.0",
|
|
183
184
|
"pytest-env==1.1.3",
|
|
184
185
|
"pytest-flakefinder==1.1.0",
|
|
185
186
|
"pytest-timeout==2.3.1",
|
|
@@ -205,8 +206,10 @@ colibri = "tinybird.colibri.cli:cli"
|
|
|
205
206
|
[tool.uv.workspace]
|
|
206
207
|
members = [
|
|
207
208
|
"chbackups",
|
|
209
|
+
"clickhouse",
|
|
208
210
|
"data_connector",
|
|
209
211
|
"gatherer",
|
|
212
|
+
"platform-api",
|
|
210
213
|
"tinybird_orchestrator",
|
|
211
214
|
]
|
|
212
215
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import functools
|
|
1
2
|
import logging
|
|
2
3
|
import re
|
|
3
4
|
from collections import defaultdict
|
|
@@ -25,6 +26,9 @@ DEFAULT_EMPTY_PARAMETERS = ["ttl", "partition_key", "sorting_key"]
|
|
|
25
26
|
# * `N` is a number
|
|
26
27
|
SIMPLE_TTL_DEFINITION = re.compile(r"""^([a-zA-Z0-9_\-\.\(\)\ \/\*]*) \+ (toInterval[a-zA-Z]*\([0-9]+\))$""")
|
|
27
28
|
|
|
29
|
+
# ClickHouse 25.8 quotes the engine name `Null`, as `null` is a keyword.
|
|
30
|
+
_BACKQUOTED_ENGINE_NAME = re.compile(r"^`(\w+)`")
|
|
31
|
+
|
|
28
32
|
|
|
29
33
|
class TableDetails:
|
|
30
34
|
"""
|
|
@@ -78,6 +82,16 @@ class TableDetails:
|
|
|
78
82
|
|
|
79
83
|
@property
|
|
80
84
|
def engine_full(self) -> Optional[str]:
|
|
85
|
+
"""
|
|
86
|
+
>>> TableDetails({"engine_full": "`Null`", "engine": "Null"}).engine_full
|
|
87
|
+
'Null'
|
|
88
|
+
>>> TableDetails({"engine_full": "`Null`()", "engine": "Null"}).engine_full
|
|
89
|
+
'Null()'
|
|
90
|
+
>>> TableDetails({"engine_full": "Null", "engine": "Null"}).to_json()
|
|
91
|
+
{'engine_full': 'Null', 'engine': 'Null'}
|
|
92
|
+
>>> TableDetails({"engine_full": "`Null`", "engine": "Null"}).to_json()
|
|
93
|
+
{'engine_full': 'Null', 'engine': 'Null'}
|
|
94
|
+
"""
|
|
81
95
|
_engine_full: Optional[str] = self.details.get("engine_full", None)
|
|
82
96
|
if not _engine_full:
|
|
83
97
|
return None
|
|
@@ -86,7 +100,7 @@ class TableDetails:
|
|
|
86
100
|
# We cannot remove index_granularity = 8192 blindly because it might be followed by other settings
|
|
87
101
|
if settings and settings.strip().lower() == "index_granularity = 8192":
|
|
88
102
|
_engine_full = _engine_full.replace(" SETTINGS index_granularity = 8192", "")
|
|
89
|
-
return engine_replicated_to_local(_engine_full)
|
|
103
|
+
return engine_replicated_to_local(_BACKQUOTED_ENGINE_NAME.sub(r"\1", _engine_full))
|
|
90
104
|
|
|
91
105
|
@property
|
|
92
106
|
def original_engine_full(self) -> Optional[str]:
|
|
@@ -776,17 +790,22 @@ def ttl_condition_from_engine_full(engine_full: Optional[str]) -> Optional[str]:
|
|
|
776
790
|
return None
|
|
777
791
|
|
|
778
792
|
|
|
793
|
+
@functools.lru_cache(maxsize=1024)
|
|
794
|
+
def _index_lines(create_table_query_expr: str) -> tuple[str, ...]:
|
|
795
|
+
from tinybird.sql_toolset import format_sql
|
|
796
|
+
|
|
797
|
+
return tuple(
|
|
798
|
+
line.strip() for line in format_sql(create_table_query_expr).splitlines() if line.strip().startswith("INDEX")
|
|
799
|
+
)
|
|
800
|
+
|
|
801
|
+
|
|
779
802
|
def _parse_indexes(create_table_query_expr: str) -> List[TableIndex]:
|
|
780
|
-
|
|
803
|
+
# format_sql is CPU-heavy and runs on the event loop. ClickHouse writes the
|
|
804
|
+
# INDEX keyword in uppercase in create_table_query.
|
|
805
|
+
if "INDEX" not in create_table_query_expr:
|
|
781
806
|
return []
|
|
782
807
|
try:
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
indexes = [
|
|
786
|
-
line.strip()
|
|
787
|
-
for line in format_sql(create_table_query_expr).splitlines()
|
|
788
|
-
if line.strip().startswith("INDEX")
|
|
789
|
-
]
|
|
808
|
+
indexes = list(_index_lines(create_table_query_expr))
|
|
790
809
|
except ModuleNotFoundError:
|
|
791
810
|
# this is not needed from CLI
|
|
792
811
|
return []
|
|
@@ -851,7 +851,6 @@ class TinyB:
|
|
|
851
851
|
assert_time_increase_percentage: Optional[float] = None,
|
|
852
852
|
assert_bytes_read_increase_percentage: Optional[float] = None,
|
|
853
853
|
assert_max_time: Optional[float] = None,
|
|
854
|
-
run_in_main: Optional[bool] = False,
|
|
855
854
|
):
|
|
856
855
|
test: Dict[str, Any] = {
|
|
857
856
|
test_type: {
|
|
@@ -881,20 +880,12 @@ class TinyB:
|
|
|
881
880
|
]
|
|
882
881
|
|
|
883
882
|
data = json.dumps(regression_commands)
|
|
884
|
-
|
|
885
|
-
url = f"/v0/environments/{branch_id}/regression/main"
|
|
886
|
-
else:
|
|
887
|
-
url = f"/v0/environments/{branch_id}/regression"
|
|
883
|
+
url = f"/v0/environments/{branch_id}/regression"
|
|
888
884
|
return await self._req(url, method="POST", data=data, headers={"Content-Type": "application/json"})
|
|
889
885
|
|
|
890
|
-
async def branch_regression_tests_file(
|
|
891
|
-
self, branch_id: str, regression_commands: List[Dict[str, Any]], run_in_main: Optional[bool] = False
|
|
892
|
-
):
|
|
886
|
+
async def branch_regression_tests_file(self, branch_id: str, regression_commands: List[Dict[str, Any]]):
|
|
893
887
|
data = json.dumps(regression_commands)
|
|
894
|
-
|
|
895
|
-
url = f"/v0/environments/{branch_id}/regression/main"
|
|
896
|
-
else:
|
|
897
|
-
url = f"/v0/environments/{branch_id}/regression"
|
|
888
|
+
url = f"/v0/environments/{branch_id}/regression"
|
|
898
889
|
return await self._req(url, method="POST", data=data, headers={"Content-Type": "application/json"})
|
|
899
890
|
|
|
900
891
|
async def delete_workspace(self, id: str, hard_delete_confirmation: Optional[str], version: str = "v0"):
|
|
@@ -2173,9 +2173,14 @@ def parse(
|
|
|
2173
2173
|
line = lines[lineno - 1]
|
|
2174
2174
|
# shlex.shlex(line) removes comments that start with #. This doesn't affect multiline commands
|
|
2175
2175
|
try:
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2176
|
+
# Without quotes, escapes, or comment characters, str.split tokenizes
|
|
2177
|
+
# the same as shlex with whitespace_split=True, at a fraction of the cost.
|
|
2178
|
+
if '"' in line or "'" in line or "\\" in line or "#" in line:
|
|
2179
|
+
sa = shlex.shlex(line)
|
|
2180
|
+
sa.whitespace_split = True
|
|
2181
|
+
lexer = list(sa)
|
|
2182
|
+
else:
|
|
2183
|
+
lexer = line.split()
|
|
2179
2184
|
except ValueError:
|
|
2180
2185
|
sa = shlex.shlex(shlex.quote(line))
|
|
2181
2186
|
sa.whitespace_split = True
|
|
@@ -423,22 +423,29 @@ def array_type(types):
|
|
|
423
423
|
return _f
|
|
424
424
|
|
|
425
425
|
|
|
426
|
-
def sql_unescape(x, what=""):
|
|
426
|
+
def sql_unescape(x: str, what: str = "") -> Expression:
|
|
427
427
|
"""
|
|
428
428
|
unescapes specific characters in a string. It allows to allow some
|
|
429
429
|
special characters to be used, for example in like condictionals
|
|
430
430
|
|
|
431
431
|
{{sql_unescape(String(like_filter), '%')}}
|
|
432
432
|
|
|
433
|
+
`what` must be given and must not contain quotes or backslashes: unescaping
|
|
434
|
+
those would let the caller close the string literal, so they stay escaped.
|
|
433
435
|
|
|
434
436
|
>>> sql_unescape('testing%', '%')
|
|
435
437
|
"'testing%'"
|
|
436
438
|
>>> sql_unescape('testing%', '$')
|
|
437
439
|
"'testing\\\\%'"
|
|
438
440
|
>>> sql_unescape('testing"')
|
|
439
|
-
'\\'testing"\\''
|
|
441
|
+
'\\'testing\\\\"\\''
|
|
442
|
+
>>> sql_unescape("x' OR 1=1", "'")
|
|
443
|
+
"'x\\\\' OR 1=1'"
|
|
440
444
|
"""
|
|
441
|
-
|
|
445
|
+
escaped = sqlescape_for_string_expression(x)
|
|
446
|
+
if what and not any(c in what for c in "'\"\\"):
|
|
447
|
+
escaped = escaped.replace(f"\\{what}", what)
|
|
448
|
+
return Expression("'" + escaped + "'")
|
|
442
449
|
|
|
443
450
|
|
|
444
451
|
def split_to_array(x, default="", separator: str = ","):
|
|
@@ -487,7 +487,7 @@ def replacements_to_tuples(replacements: dict) -> dict:
|
|
|
487
487
|
return parsed_replacements
|
|
488
488
|
|
|
489
489
|
|
|
490
|
-
@lru_cache(maxsize=2**
|
|
490
|
+
@lru_cache(maxsize=2**13)
|
|
491
491
|
def replace_tables_chquery_cached(
|
|
492
492
|
sql: str,
|
|
493
493
|
sorted_replacements: Optional[tuple] = None,
|
|
@@ -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__ = '
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '5.0.0'
|
|
8
|
+
__revision__ = '3fcfdc16'
|
|
@@ -925,7 +925,6 @@ class TinyB:
|
|
|
925
925
|
assert_time_increase_percentage: Optional[float] = None,
|
|
926
926
|
assert_bytes_read_increase_percentage: Optional[float] = None,
|
|
927
927
|
assert_max_time: Optional[float] = None,
|
|
928
|
-
run_in_main: Optional[bool] = False,
|
|
929
928
|
):
|
|
930
929
|
test: Dict[str, Any] = {
|
|
931
930
|
test_type: {
|
|
@@ -955,20 +954,12 @@ class TinyB:
|
|
|
955
954
|
]
|
|
956
955
|
|
|
957
956
|
data = json.dumps(regression_commands)
|
|
958
|
-
|
|
959
|
-
url = f"/v0/environments/{branch_id}/regression/main"
|
|
960
|
-
else:
|
|
961
|
-
url = f"/v0/environments/{branch_id}/regression"
|
|
957
|
+
url = f"/v0/environments/{branch_id}/regression"
|
|
962
958
|
return self._req(url, method="POST", data=data, headers={"Content-Type": "application/json"})
|
|
963
959
|
|
|
964
|
-
def branch_regression_tests_file(
|
|
965
|
-
self, branch_id: str, regression_commands: List[Dict[str, Any]], run_in_main: Optional[bool] = False
|
|
966
|
-
):
|
|
960
|
+
def branch_regression_tests_file(self, branch_id: str, regression_commands: List[Dict[str, Any]]):
|
|
967
961
|
data = json.dumps(regression_commands)
|
|
968
|
-
|
|
969
|
-
url = f"/v0/environments/{branch_id}/regression/main"
|
|
970
|
-
else:
|
|
971
|
-
url = f"/v0/environments/{branch_id}/regression"
|
|
962
|
+
url = f"/v0/environments/{branch_id}/regression"
|
|
972
963
|
return self._req(url, method="POST", data=data, headers={"Content-Type": "application/json"})
|
|
973
964
|
|
|
974
965
|
def delete_workspace(self, id: str, hard_delete_confirmation: Optional[str], version: str = "v0"):
|
|
@@ -554,17 +554,9 @@ async def data_branch(last_partition: bool, all: bool, wait: bool) -> None:
|
|
|
554
554
|
default=False,
|
|
555
555
|
help="Flag to skip execution of regression tests. This is handy for CI branches where regression might be flaky",
|
|
556
556
|
)
|
|
557
|
-
@click.option(
|
|
558
|
-
"--main",
|
|
559
|
-
is_flag=True,
|
|
560
|
-
default=False,
|
|
561
|
-
help="Run regression tests in the main Branch. For this flag to work all the resources in the Branch pipe endpoints need to exist in the main Branch.",
|
|
562
|
-
)
|
|
563
557
|
@click.pass_context
|
|
564
558
|
@coro
|
|
565
|
-
async def regression_tests(
|
|
566
|
-
ctx, filename: str, wait: bool, skip_regression_tests: Optional[bool] = False, main: Optional[bool] = False
|
|
567
|
-
):
|
|
559
|
+
async def regression_tests(ctx, filename: str, wait: bool, skip_regression_tests: Optional[bool] = False):
|
|
568
560
|
"""Regression test commands for Branches"""
|
|
569
561
|
if skip_regression_tests:
|
|
570
562
|
click.echo(FeedbackManager.warning_regression_skipped())
|
|
@@ -590,9 +582,7 @@ async def regression_tests(
|
|
|
590
582
|
if current_main_workspace["id"] == config["id"]:
|
|
591
583
|
raise CLIException(FeedbackManager.error_not_allowed_in_main_branch())
|
|
592
584
|
try:
|
|
593
|
-
response = await client.branch_regression_tests_file(
|
|
594
|
-
config["id"], regression_tests_commands, run_in_main=main
|
|
595
|
-
)
|
|
585
|
+
response = await client.branch_regression_tests_file(config["id"], regression_tests_commands)
|
|
596
586
|
if "job" not in response:
|
|
597
587
|
raise CLIBranchException(str(response))
|
|
598
588
|
job_id = response["job"]["job_id"]
|
|
@@ -604,7 +594,7 @@ async def regression_tests(
|
|
|
604
594
|
except Exception as e:
|
|
605
595
|
raise CLIBranchException(FeedbackManager.error_exception(error=str(e)))
|
|
606
596
|
elif not ctx.invoked_subcommand:
|
|
607
|
-
await _run_regression(type="coverage", wait=wait
|
|
597
|
+
await _run_regression(type="coverage", wait=wait)
|
|
608
598
|
|
|
609
599
|
|
|
610
600
|
async def _run_regression(
|
|
@@ -620,7 +610,6 @@ async def _run_regression(
|
|
|
620
610
|
failfast: Optional[bool] = False,
|
|
621
611
|
wait: Optional[bool] = False,
|
|
622
612
|
skip: Optional[bool] = False,
|
|
623
|
-
run_in_main: Optional[bool] = False,
|
|
624
613
|
**kwargs,
|
|
625
614
|
):
|
|
626
615
|
if skip:
|
|
@@ -648,7 +637,6 @@ async def _run_regression(
|
|
|
648
637
|
assert_time_increase_percentage=assert_time_increase_percentage,
|
|
649
638
|
assert_bytes_read_increase_percentage=assert_bytes_read_increase_percentage,
|
|
650
639
|
assert_max_time=assert_max_time,
|
|
651
|
-
run_in_main=run_in_main,
|
|
652
640
|
**kwargs,
|
|
653
641
|
)
|
|
654
642
|
if "job" not in response:
|
|
@@ -728,12 +716,6 @@ async def _run_regression(
|
|
|
728
716
|
default=False,
|
|
729
717
|
help="Flag to skip execution of regression tests. This is handy for CI branches where regression might be flaky",
|
|
730
718
|
)
|
|
731
|
-
@click.option(
|
|
732
|
-
"--main",
|
|
733
|
-
is_flag=True,
|
|
734
|
-
default=False,
|
|
735
|
-
help="Run regression tests in the main Branch. For this flag to work all the resources in the Branch pipe endpoints need to exist in the main Branch.",
|
|
736
|
-
)
|
|
737
719
|
@coro
|
|
738
720
|
async def coverage(
|
|
739
721
|
pipe_name: str,
|
|
@@ -747,7 +729,6 @@ async def coverage(
|
|
|
747
729
|
failfast: bool,
|
|
748
730
|
wait: bool,
|
|
749
731
|
skip_regression_tests: Optional[bool] = False,
|
|
750
|
-
main: Optional[bool] = False,
|
|
751
732
|
):
|
|
752
733
|
await _run_regression(
|
|
753
734
|
"coverage",
|
|
@@ -762,7 +743,6 @@ async def coverage(
|
|
|
762
743
|
failfast,
|
|
763
744
|
wait,
|
|
764
745
|
skip_regression_tests,
|
|
765
|
-
run_in_main=main,
|
|
766
746
|
)
|
|
767
747
|
|
|
768
748
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: tinybird
|
|
3
|
-
Version:
|
|
3
|
+
Version: 5.0.0
|
|
4
4
|
Summary: Tinybird Command Line Tool
|
|
5
5
|
Home-page: https://www.tinybird.co/docs/forward/commands
|
|
6
6
|
Author: Tinybird
|
|
7
7
|
Author-email: support@tinybird.co
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.11, <3.14
|
|
9
9
|
Description-Content-Type: text/x-rst
|
|
10
10
|
Requires-Dist: aiofiles==24.1.0
|
|
11
11
|
Requires-Dist: boto3
|
|
@@ -52,6 +52,11 @@ The Tinybird command-line tool allows you to use all the Tinybird functionality
|
|
|
52
52
|
Changelog
|
|
53
53
|
----------
|
|
54
54
|
|
|
55
|
+
5.0.0
|
|
56
|
+
*******
|
|
57
|
+
|
|
58
|
+
- `Removed` Python 3.10 support. The minimum supported Python version is now 3.11.
|
|
59
|
+
|
|
55
60
|
4.6.22
|
|
56
61
|
********
|
|
57
62
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|