tinybird 0.0.1.dev142__tar.gz → 0.0.1.dev144__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.
Potentially problematic release.
This version of tinybird might be problematic. Click here for more details.
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/__cli__.py +2 -2
- tinybird-0.0.1.dev144/tinybird/tb/check_pypi.py +26 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/cli.py +0 -1
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/cli.py +1 -2
- tinybird-0.0.1.dev144/tinybird/tb/modules/deprecations.py +127 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird.egg-info/SOURCES.txt +1 -1
- tinybird-0.0.1.dev142/tinybird/tb/modules/deprecations.py +0 -20
- tinybird-0.0.1.dev142/tinybird/tb/modules/tag.py +0 -100
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/setup.cfg +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
|
|
|
4
4
|
__url__ = 'https://www.tinybird.co/docs/cli/introduction.html'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev144'
|
|
8
|
+
__revision__ = 'aaeb0de'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
|
|
3
|
+
import requests
|
|
4
|
+
|
|
5
|
+
from tinybird.feedback_manager import FeedbackManager
|
|
6
|
+
from tinybird.syncasync import sync_to_async
|
|
7
|
+
from tinybird.tb.modules.common import getenv_bool
|
|
8
|
+
from tinybird.tb.modules.exceptions import CLIException
|
|
9
|
+
|
|
10
|
+
PYPY_URL = "https://pypi.org/pypi/tinybird/json"
|
|
11
|
+
requests_get = sync_to_async(requests.get, thread_sensitive=False)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class CheckPypi:
|
|
15
|
+
async def get_latest_version(self) -> Optional[str]:
|
|
16
|
+
version: Optional[str] = None
|
|
17
|
+
try:
|
|
18
|
+
disable_ssl: bool = getenv_bool("TB_DISABLE_SSL_CHECKS", False)
|
|
19
|
+
response: requests.Response = await requests_get(PYPY_URL, verify=not disable_ssl)
|
|
20
|
+
if response.status_code != 200:
|
|
21
|
+
raise CLIException(FeedbackManager.error_exception(error=response.content.decode("utf-8")))
|
|
22
|
+
version = response.json()["info"]["version"]
|
|
23
|
+
except Exception as e:
|
|
24
|
+
raise CLIException(FeedbackManager.error_exception(error=str(e)))
|
|
25
|
+
|
|
26
|
+
return version
|
|
@@ -25,7 +25,6 @@ import tinybird.tb.modules.mock
|
|
|
25
25
|
import tinybird.tb.modules.open
|
|
26
26
|
import tinybird.tb.modules.pipe
|
|
27
27
|
import tinybird.tb.modules.secret
|
|
28
|
-
import tinybird.tb.modules.tag
|
|
29
28
|
import tinybird.tb.modules.test
|
|
30
29
|
import tinybird.tb.modules.token
|
|
31
30
|
import tinybird.tb.modules.workspace
|
|
@@ -18,6 +18,7 @@ import humanfriendly
|
|
|
18
18
|
from click import Context
|
|
19
19
|
|
|
20
20
|
from tinybird.tb import __cli__
|
|
21
|
+
from tinybird.tb.check_pypi import CheckPypi
|
|
21
22
|
from tinybird.tb.client import (
|
|
22
23
|
AuthException,
|
|
23
24
|
AuthNoTokenException,
|
|
@@ -97,8 +98,6 @@ async def cli(
|
|
|
97
98
|
click.echo(FeedbackManager.warning_disabled_ssl_checks())
|
|
98
99
|
|
|
99
100
|
if not environ.get("PYTEST", None) and version_warning and not token:
|
|
100
|
-
from tinybird.check_pypi import CheckPypi
|
|
101
|
-
|
|
102
101
|
latest_version = await CheckPypi().get_latest_version()
|
|
103
102
|
|
|
104
103
|
if "x.y.z" in CURRENT_VERSION:
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import click
|
|
2
|
+
|
|
3
|
+
from tinybird.tb.modules.cli import cli
|
|
4
|
+
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@cli.command(
|
|
8
|
+
name="branch",
|
|
9
|
+
context_settings=dict(
|
|
10
|
+
ignore_unknown_options=True,
|
|
11
|
+
),
|
|
12
|
+
)
|
|
13
|
+
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
14
|
+
def branch(args) -> None:
|
|
15
|
+
"""
|
|
16
|
+
`tb branch` is deprecated. You should rely on your version control system to manage branches.
|
|
17
|
+
"""
|
|
18
|
+
click.echo(FeedbackManager.warning(
|
|
19
|
+
message="This command is deprecated. You should rely on your version control system to manage branches."
|
|
20
|
+
))
|
|
21
|
+
click.echo("You are using Tinybird Forward CLI.\nYou can find more information in the docs at https://www.tinybird.co/docs/forward")
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@cli.command(
|
|
25
|
+
name="check",
|
|
26
|
+
context_settings=dict(
|
|
27
|
+
ignore_unknown_options=True,
|
|
28
|
+
),
|
|
29
|
+
)
|
|
30
|
+
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
31
|
+
def check(args) -> None:
|
|
32
|
+
"""
|
|
33
|
+
`tb check` is deprecated.
|
|
34
|
+
"""
|
|
35
|
+
click.echo(FeedbackManager.warning(
|
|
36
|
+
message="This command is deprecated."
|
|
37
|
+
))
|
|
38
|
+
click.echo("You are using Tinybird Forward CLI.\nYou can find more information in the docs at https://www.tinybird.co/docs/forward")
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@cli.command(
|
|
42
|
+
name="diff",
|
|
43
|
+
context_settings=dict(
|
|
44
|
+
ignore_unknown_options=True,
|
|
45
|
+
),
|
|
46
|
+
)
|
|
47
|
+
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
48
|
+
def diff(args) -> None:
|
|
49
|
+
"""
|
|
50
|
+
`tb diff` is deprecated.
|
|
51
|
+
"""
|
|
52
|
+
click.echo(FeedbackManager.warning(
|
|
53
|
+
message="This command is deprecated."
|
|
54
|
+
))
|
|
55
|
+
click.echo("You are using Tinybird Forward CLI.\nYou can find more information in the docs at https://www.tinybird.co/docs/forward")
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
@cli.command(
|
|
59
|
+
name="fmt",
|
|
60
|
+
context_settings=dict(
|
|
61
|
+
ignore_unknown_options=True,
|
|
62
|
+
),
|
|
63
|
+
)
|
|
64
|
+
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
65
|
+
def fmt(args) -> None:
|
|
66
|
+
"""
|
|
67
|
+
`tb fmt` is deprecated.
|
|
68
|
+
"""
|
|
69
|
+
click.echo(FeedbackManager.warning(
|
|
70
|
+
message="This command is deprecated."
|
|
71
|
+
))
|
|
72
|
+
click.echo("You are using Tinybird Forward CLI.\nYou can find more information in the docs at https://www.tinybird.co/docs/forward")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@cli.command(
|
|
76
|
+
name="init",
|
|
77
|
+
context_settings=dict(
|
|
78
|
+
ignore_unknown_options=True,
|
|
79
|
+
),
|
|
80
|
+
)
|
|
81
|
+
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
82
|
+
def init(args) -> None:
|
|
83
|
+
"""
|
|
84
|
+
`tb init` is deprecated. Use `tb create` instead.
|
|
85
|
+
"""
|
|
86
|
+
click.echo(FeedbackManager.warning(
|
|
87
|
+
message="This command is deprecated. Use `tb create` instead."
|
|
88
|
+
))
|
|
89
|
+
click.echo("You are using Tinybird Forward CLI.\nYou can find more information in the docs at https://www.tinybird.co/docs/forward")
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
@cli.command(
|
|
94
|
+
name="push",
|
|
95
|
+
context_settings=dict(
|
|
96
|
+
ignore_unknown_options=True,
|
|
97
|
+
),
|
|
98
|
+
)
|
|
99
|
+
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
100
|
+
def push(args) -> None:
|
|
101
|
+
"""
|
|
102
|
+
`tb push` is deprecated. Use `tb deploy` instead.
|
|
103
|
+
"""
|
|
104
|
+
click.echo(FeedbackManager.warning(
|
|
105
|
+
message="This command is deprecated. Use `tb deploy` instead."
|
|
106
|
+
))
|
|
107
|
+
click.echo("You are using Tinybird Forward CLI.\nYou can find more information in the docs at https://www.tinybird.co/docs/forward")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
@cli.command(
|
|
112
|
+
name="tag",
|
|
113
|
+
context_settings=dict(
|
|
114
|
+
ignore_unknown_options=True,
|
|
115
|
+
),
|
|
116
|
+
)
|
|
117
|
+
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
118
|
+
def tag(args) -> None:
|
|
119
|
+
"""
|
|
120
|
+
`tb tag` is deprecated
|
|
121
|
+
"""
|
|
122
|
+
click.echo(FeedbackManager.warning(
|
|
123
|
+
message="This command is deprecated."
|
|
124
|
+
))
|
|
125
|
+
click.echo("You are using Tinybird Forward CLI.\nYou can find more information in the docs at https://www.tinybird.co/docs/forward")
|
|
126
|
+
|
|
127
|
+
|
|
@@ -25,6 +25,7 @@ tinybird.egg-info/top_level.txt
|
|
|
25
25
|
tinybird/ch_utils/constants.py
|
|
26
26
|
tinybird/ch_utils/engine.py
|
|
27
27
|
tinybird/tb/__cli__.py
|
|
28
|
+
tinybird/tb/check_pypi.py
|
|
28
29
|
tinybird/tb/cli.py
|
|
29
30
|
tinybird/tb/client.py
|
|
30
31
|
tinybird/tb/config.py
|
|
@@ -60,7 +61,6 @@ tinybird/tb/modules/regions.py
|
|
|
60
61
|
tinybird/tb/modules/secret.py
|
|
61
62
|
tinybird/tb/modules/shell.py
|
|
62
63
|
tinybird/tb/modules/table.py
|
|
63
|
-
tinybird/tb/modules/tag.py
|
|
64
64
|
tinybird/tb/modules/telemetry.py
|
|
65
65
|
tinybird/tb/modules/test.py
|
|
66
66
|
tinybird/tb/modules/token.py
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import click
|
|
2
|
-
|
|
3
|
-
from tinybird.tb.modules.cli import cli
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@cli.command(
|
|
7
|
-
name="push",
|
|
8
|
-
context_settings=dict(
|
|
9
|
-
ignore_unknown_options=True,
|
|
10
|
-
),
|
|
11
|
-
)
|
|
12
|
-
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
|
|
13
|
-
def push(args) -> None:
|
|
14
|
-
"""
|
|
15
|
-
`tb push` is deprecated. Use `tb deploy` instead.
|
|
16
|
-
"""
|
|
17
|
-
click.echo(
|
|
18
|
-
"You are using Tinybird Forward CLI. This command is deprecated. Use `tb deploy` instead. "
|
|
19
|
-
"You can find more information in the docs at https://www.tinybird.co/docs/forward"
|
|
20
|
-
)
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
from typing import Optional
|
|
2
|
-
|
|
3
|
-
import click
|
|
4
|
-
from click import Context
|
|
5
|
-
|
|
6
|
-
from tinybird.tb.modules.cli import cli
|
|
7
|
-
from tinybird.tb.modules.common import coro, echo_safe_humanfriendly_tables_format_smart_table
|
|
8
|
-
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@cli.group(hidden=True)
|
|
12
|
-
@click.pass_context
|
|
13
|
-
def tag(ctx: Context) -> None:
|
|
14
|
-
"""Tag commands"""
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@tag.command(name="ls")
|
|
18
|
-
@click.argument("tag_name", required=False)
|
|
19
|
-
@click.pass_context
|
|
20
|
-
@coro
|
|
21
|
-
async def tag_ls(ctx: Context, tag_name: Optional[str]) -> None:
|
|
22
|
-
"""List all the tags of the current Workspace or the resources associated to a specific tag."""
|
|
23
|
-
|
|
24
|
-
client = ctx.ensure_object(dict)["client"]
|
|
25
|
-
response = await client.get_all_tags()
|
|
26
|
-
|
|
27
|
-
if tag_name:
|
|
28
|
-
the_tag = [tag for tag in response["tags"] if tag["name"] == tag_name]
|
|
29
|
-
|
|
30
|
-
columns = ["name", "id", "type"]
|
|
31
|
-
table = []
|
|
32
|
-
|
|
33
|
-
if len(the_tag) > 0:
|
|
34
|
-
for resource in the_tag[0]["resources"]:
|
|
35
|
-
table.append([resource["name"], resource["id"], resource["type"]])
|
|
36
|
-
|
|
37
|
-
click.echo(FeedbackManager.info_tag_resources(tag_name=tag_name))
|
|
38
|
-
echo_safe_humanfriendly_tables_format_smart_table(table, column_names=columns)
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
columns = ["tag", "resources"]
|
|
42
|
-
table = []
|
|
43
|
-
|
|
44
|
-
for tag in response["tags"]:
|
|
45
|
-
unique_resources = []
|
|
46
|
-
for resource in tag["resources"]:
|
|
47
|
-
if resource.get("name", "") not in unique_resources:
|
|
48
|
-
unique_resources.append(resource) # Reducing by name in case there are duplicates.
|
|
49
|
-
table.append([tag["name"], len(unique_resources)])
|
|
50
|
-
|
|
51
|
-
click.echo(FeedbackManager.info_tag_list())
|
|
52
|
-
echo_safe_humanfriendly_tables_format_smart_table(table, column_names=columns)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
@tag.command(name="create")
|
|
56
|
-
@click.argument("tag_name")
|
|
57
|
-
@click.pass_context
|
|
58
|
-
@coro
|
|
59
|
-
async def tag_create(ctx: Context, tag_name: str) -> None:
|
|
60
|
-
"""Create a tag in the current Workspace."""
|
|
61
|
-
|
|
62
|
-
client = ctx.ensure_object(dict)["client"]
|
|
63
|
-
await client.create_tag(name=tag_name)
|
|
64
|
-
|
|
65
|
-
click.echo(FeedbackManager.success_tag_created(tag_name=tag_name))
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
@tag.command(name="rm")
|
|
69
|
-
@click.argument("tag_name")
|
|
70
|
-
@click.option("--yes", is_flag=True, default=False, help="Do not ask for confirmation to delete the tag.")
|
|
71
|
-
@click.pass_context
|
|
72
|
-
@coro
|
|
73
|
-
async def tag_rm(ctx: Context, tag_name: str, yes: bool) -> None:
|
|
74
|
-
"""Remove a tag from the current Workspace."""
|
|
75
|
-
|
|
76
|
-
client = ctx.ensure_object(dict)["client"]
|
|
77
|
-
remove_tag = True
|
|
78
|
-
|
|
79
|
-
if not yes:
|
|
80
|
-
all_tags = await client.get_all_tags()
|
|
81
|
-
the_tag = [tag for tag in all_tags["tags"] if tag["name"] == tag_name]
|
|
82
|
-
if len(the_tag) > 0:
|
|
83
|
-
unique_resources = []
|
|
84
|
-
for resource in the_tag[0]["resources"]:
|
|
85
|
-
if resource.get("name", "") not in unique_resources:
|
|
86
|
-
unique_resources.append(resource) # Reducing by name in case there are duplicates.
|
|
87
|
-
|
|
88
|
-
if len(unique_resources) > 0:
|
|
89
|
-
remove_tag = click.confirm(
|
|
90
|
-
FeedbackManager.warning_tag_remove(tag_name=tag_name, resources_len=len(unique_resources))
|
|
91
|
-
)
|
|
92
|
-
else:
|
|
93
|
-
remove_tag = click.confirm(FeedbackManager.warning_tag_remove_no_resources(tag_name=tag_name))
|
|
94
|
-
else:
|
|
95
|
-
remove_tag = False
|
|
96
|
-
click.echo(FeedbackManager.error_tag_not_found(tag_name=tag_name))
|
|
97
|
-
|
|
98
|
-
if remove_tag:
|
|
99
|
-
await client.delete_tag(tag_name)
|
|
100
|
-
click.echo(FeedbackManager.success_tag_removed(tag_name=tag_name))
|
|
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
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/parse_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/datafile/pipe_checker.py
RENAMED
|
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
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb/modules/tinyunit/tinyunit_lib.py
RENAMED
|
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
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev142 → tinybird-0.0.1.dev144}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|