tinybird 0.0.1.dev125__py3-none-any.whl → 0.0.1.dev126__py3-none-any.whl
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/tb/__cli__.py +2 -2
- tinybird/tb/modules/secret.py +5 -2
- tinybird/tb/modules/telemetry.py +14 -1
- {tinybird-0.0.1.dev125.dist-info → tinybird-0.0.1.dev126.dist-info}/METADATA +1 -1
- {tinybird-0.0.1.dev125.dist-info → tinybird-0.0.1.dev126.dist-info}/RECORD +8 -8
- {tinybird-0.0.1.dev125.dist-info → tinybird-0.0.1.dev126.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev125.dist-info → tinybird-0.0.1.dev126.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev125.dist-info → tinybird-0.0.1.dev126.dist-info}/top_level.txt +0 -0
tinybird/tb/__cli__.py
CHANGED
|
@@ -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.dev126'
|
|
8
|
+
__revision__ = '7860cec'
|
tinybird/tb/modules/secret.py
CHANGED
|
@@ -48,19 +48,22 @@ async def secret_ls(ctx: click.Context, match: Optional[str]):
|
|
|
48
48
|
|
|
49
49
|
@secret.command(name="set")
|
|
50
50
|
@click.argument("name")
|
|
51
|
-
@click.argument("value")
|
|
51
|
+
@click.argument("value", required=False)
|
|
52
52
|
@click.pass_context
|
|
53
53
|
@coro
|
|
54
|
-
async def secret_set(ctx: click.Context, name: str, value: str):
|
|
54
|
+
async def secret_set(ctx: click.Context, name: str, value: Optional[str]):
|
|
55
55
|
"""Create or update secrets"""
|
|
56
56
|
try:
|
|
57
|
+
value = value or click.prompt("Enter value", hide_input=True)
|
|
57
58
|
click.echo(FeedbackManager.highlight(message=f"\n» Setting secret '{name}'..."))
|
|
59
|
+
|
|
58
60
|
client: TinyB = ctx.ensure_object(dict)["client"]
|
|
59
61
|
existing_secret = None
|
|
60
62
|
try:
|
|
61
63
|
existing_secret = await client.get_secret(name)
|
|
62
64
|
except Exception:
|
|
63
65
|
pass
|
|
66
|
+
|
|
64
67
|
if existing_secret:
|
|
65
68
|
await client.update_secret(name, value)
|
|
66
69
|
else:
|
tinybird/tb/modules/telemetry.py
CHANGED
|
@@ -281,6 +281,19 @@ def add_telemetry_sysinfo_event() -> None:
|
|
|
281
281
|
|
|
282
282
|
ci_product: Optional[str] = get_ci_product_name()
|
|
283
283
|
|
|
284
|
+
cli_args = sys.argv[1:] if len(sys.argv) > 1 else []
|
|
285
|
+
|
|
286
|
+
is_secret_command = "secret" in cli_args
|
|
287
|
+
if is_secret_command:
|
|
288
|
+
need_to_obfuscate = "set" in cli_args
|
|
289
|
+
|
|
290
|
+
if need_to_obfuscate:
|
|
291
|
+
set_index = cli_args.index("set")
|
|
292
|
+
value_index = set_index + 2
|
|
293
|
+
is_index_valid = value_index < len(cli_args)
|
|
294
|
+
if is_index_valid:
|
|
295
|
+
cli_args[value_index] = "*****"
|
|
296
|
+
|
|
284
297
|
add_telemetry_event(
|
|
285
298
|
"system_info",
|
|
286
299
|
platform=platform.platform(),
|
|
@@ -292,7 +305,7 @@ def add_telemetry_sysinfo_event() -> None:
|
|
|
292
305
|
is_ci=ci_product is not None,
|
|
293
306
|
ci_product=ci_product,
|
|
294
307
|
cli_version=CURRENT_VERSION,
|
|
295
|
-
cli_args=
|
|
308
|
+
cli_args=cli_args,
|
|
296
309
|
)
|
|
297
310
|
|
|
298
311
|
|
|
@@ -12,7 +12,7 @@ tinybird/syncasync.py,sha256=IPnOx6lMbf9SNddN1eBtssg8vCLHMt76SuZ6YNYm-Yk,27761
|
|
|
12
12
|
tinybird/tornado_template.py,sha256=jjNVDMnkYFWXflmT8KU_Ssbo5vR8KQq3EJMk5vYgXRw,41959
|
|
13
13
|
tinybird/ch_utils/constants.py,sha256=aYvg2C_WxYWsnqPdZB1ZFoIr8ZY-XjUXYyHKE9Ansj0,3890
|
|
14
14
|
tinybird/ch_utils/engine.py,sha256=BZuPM7MFS7vaEKK5tOMR2bwSAgJudPrJt27uVEwZmTY,40512
|
|
15
|
-
tinybird/tb/__cli__.py,sha256=
|
|
15
|
+
tinybird/tb/__cli__.py,sha256=R_56U8k8apqKnW-xs-fk-jaby1hlI4th1HnLHIpF8bc,252
|
|
16
16
|
tinybird/tb/cli.py,sha256=uDLwcbwSJfVFw-pceijZJqaq26z5jNsey0QaUGFjt7w,1097
|
|
17
17
|
tinybird/tb/client.py,sha256=oa0pR46WvzDoqpyaDU-lRu33I0cZhtZVDqDQz2RHMWQ,56085
|
|
18
18
|
tinybird/tb/config.py,sha256=iIia7F67UI9p51Ja4jALonyttIi4eH7PwOn3HvcvOb8,4008
|
|
@@ -45,11 +45,11 @@ tinybird/tb/modules/open.py,sha256=OuctINN77oexpSjth9uoIZPCelKO4Li-yyVxeSnk1io,1
|
|
|
45
45
|
tinybird/tb/modules/pipe.py,sha256=AQKEDagO6e3psPVjJkS_MDbn8aK-apAiLp26k7jgAV0,2432
|
|
46
46
|
tinybird/tb/modules/project.py,sha256=RdVOzJiuFPqkCzPhzGetbgcFeiMEn9IMviFCG58XKgI,3142
|
|
47
47
|
tinybird/tb/modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
48
|
-
tinybird/tb/modules/secret.py,sha256=
|
|
48
|
+
tinybird/tb/modules/secret.py,sha256=WsqzxxLh9W_jkuHL2JofMXdIJy0lT5WEI-7bQSIDgAc,2921
|
|
49
49
|
tinybird/tb/modules/shell.py,sha256=cvT0EKpnSRHfuo3avykBRMsCwLBqmzSR7sNUdbQ6lXA,14116
|
|
50
50
|
tinybird/tb/modules/table.py,sha256=4XrtjM-N0zfNtxVkbvLDQQazno1EPXnxTyo7llivfXk,11035
|
|
51
51
|
tinybird/tb/modules/tag.py,sha256=anPmMUBc-TbFovlpFi8GPkKA18y7Y0GczMsMms5TZsU,3502
|
|
52
|
-
tinybird/tb/modules/telemetry.py,sha256=
|
|
52
|
+
tinybird/tb/modules/telemetry.py,sha256=FcFw_70-0SyC_2BdToF_sjVpXpMD7i00fCm2SO4cHx8,11397
|
|
53
53
|
tinybird/tb/modules/test.py,sha256=HxkSpdLOW8brGUNsqdBoSW8RixxyC7OCDmYwEZsIpfs,11459
|
|
54
54
|
tinybird/tb/modules/token.py,sha256=2fmKwu10_M0pqs6YmJVeILR9ZQB0ejRAET86agASbKM,13488
|
|
55
55
|
tinybird/tb/modules/watch.py,sha256=-2DGSShUGAPDYpLVkiDiONC-RqGdZbTiXOCsDtU5udw,8990
|
|
@@ -79,8 +79,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
|
|
|
79
79
|
tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
|
|
80
80
|
tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
81
81
|
tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
|
|
82
|
-
tinybird-0.0.1.
|
|
83
|
-
tinybird-0.0.1.
|
|
84
|
-
tinybird-0.0.1.
|
|
85
|
-
tinybird-0.0.1.
|
|
86
|
-
tinybird-0.0.1.
|
|
82
|
+
tinybird-0.0.1.dev126.dist-info/METADATA,sha256=PNr5bUR9Fhz3S1GSg0aY6BCFGdTnfwz-eCBSRfJMFAg,1612
|
|
83
|
+
tinybird-0.0.1.dev126.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
84
|
+
tinybird-0.0.1.dev126.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
85
|
+
tinybird-0.0.1.dev126.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
86
|
+
tinybird-0.0.1.dev126.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|