tinybird 0.0.1.dev197__py3-none-any.whl → 0.0.1.dev199__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 CHANGED
@@ -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__ = '0.0.1.dev197'
8
- __revision__ = '6bce0f0'
7
+ __version__ = '0.0.1.dev199'
8
+ __revision__ = '191261b'
@@ -1347,6 +1347,9 @@ async def process_file(
1347
1347
  "filtering_tags": doc.filtering_tags,
1348
1348
  }
1349
1349
  ]
1350
+ elif DataFileExtensions.CONNECTION in filename:
1351
+ return []
1352
+
1350
1353
  else:
1351
1354
  raise click.ClickException(FeedbackManager.error_file_extension(filename=filename))
1352
1355
 
@@ -696,8 +696,9 @@ async def datasource_create(
696
696
  )
697
697
  datasource_type: Optional[str] = None
698
698
  connection_file: Optional[str] = None
699
- ds_content = ""
700
-
699
+ ds_content = """SCHEMA >
700
+ `data` String `json:$`
701
+ """
701
702
  if file:
702
703
  datasource_type = "Local file"
703
704
  elif url:
@@ -840,11 +841,6 @@ async def datasource_create(
840
841
  connection_path = Path(connection_file)
841
842
  connection = connection_path.stem
842
843
 
843
- ds_content = """SCHEMA >
844
- `timestamp` DateTime `json:$.timestamp`,
845
- `session_id` String `json:$.session_id`
846
- """
847
-
848
844
  if datasource_type == "Local file":
849
845
  click.echo(FeedbackManager.gray(message="\n» Creating .datasource file..."))
850
846
  if not file:
@@ -915,14 +911,12 @@ async def datasource_create(
915
911
  topic = topics[0] if len(topics) > 0 else "topic_0"
916
912
 
917
913
  group_id = generate_kafka_group_id(topic)
918
- ds_content = """SCHEMA >
919
- `__value` String `json:$.__value`
920
- """
914
+
921
915
  ds_content += f"""
922
916
  KAFKA_CONNECTION_NAME {connection}
923
917
  KAFKA_TOPIC {topic}
924
918
  KAFKA_GROUP_ID {group_id}
925
- KAFKA_STORE_RAW_VALUE 'True'
919
+ KAFKA_STORE_RAW_VALUE 'False'
926
920
  """
927
921
 
928
922
  if datasource_type == "S3":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinybird
3
- Version: 0.0.1.dev197
3
+ Version: 0.0.1.dev199
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/forward/commands
6
6
  Author: Tinybird
@@ -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=X4tE9OrfaUy6kO9cqVEzyI9cDcmOF3IAssRRzsTsfEQ,40781
15
- tinybird/tb/__cli__.py,sha256=tgXGyKWFAsuRn-lAx7DVyxXbZUHg8NZrCLGHWQZ3LS4,247
15
+ tinybird/tb/__cli__.py,sha256=UmsI1yX_NNvqCXiqp6NYbpQLCDNANUqKb9YzNSlqMz0,247
16
16
  tinybird/tb/check_pypi.py,sha256=rW4QmDRbtgKdUUwJCnBkVjmTjZSZGN-XgZhx7vMkC0w,1009
17
17
  tinybird/tb/cli.py,sha256=u3eGOhX0MHkuT6tiwaZ0_3twqLmqKXDAOxF7yV_Nn9Q,1075
18
18
  tinybird/tb/client.py,sha256=CO-dQw8h28X6T6IO-Z79yPBKaJQT1Rwya5b6gexvw58,56491
@@ -25,7 +25,7 @@ tinybird/tb/modules/config.py,sha256=ziqW_t_mRVvWOd85VoB4vKyvgMkEfpXDf9H4v38p2xc
25
25
  tinybird/tb/modules/connection.py,sha256=bULX6oru3MINhQGuXOmlALAJUTgLltO0kMOMtmLVNxg,17746
26
26
  tinybird/tb/modules/copy.py,sha256=2Mm4FWKehOG7CoOhiF1m9UZJgJn0W1_cMolqju8ONYg,5805
27
27
  tinybird/tb/modules/create.py,sha256=57oxoXl9a0swV7YFP43lcrmOChKaj9dcLcWrmiYDNyg,21543
28
- tinybird/tb/modules/datasource.py,sha256=TUuX18Eno6tipnpqM16g8afesGTpTfFa4AK4lVmaLiU,38607
28
+ tinybird/tb/modules/datasource.py,sha256=qbASM0g49JK8LCFy12g18DdAPOJ-mdfWCCfg8Fhu-ME,38450
29
29
  tinybird/tb/modules/deployment.py,sha256=QeLYvk6vNmOFC2FAvhR5tzFIYDkSCVgT08CGEIxr4fU,28154
30
30
  tinybird/tb/modules/deprecations.py,sha256=rrszC1f_JJeJ8mUxGoCxckQTJFBCR8wREf4XXXN-PRc,4507
31
31
  tinybird/tb/modules/dev_server.py,sha256=57FCKuWpErwYUYgHspYDkLWEm9F4pbvVOtMrFXX1fVU,10129
@@ -70,7 +70,7 @@ tinybird/tb/modules/datafile/format_pipe.py,sha256=DUGdmlzI146YDqTwW-7kSIOXocz4A
70
70
  tinybird/tb/modules/datafile/parse_datasource.py,sha256=jposrAHVebgDTzlr2rzSooj05NX7jJQc8P3xvHdUiek,1847
71
71
  tinybird/tb/modules/datafile/parse_pipe.py,sha256=MScEFqte8A__Uc7GAUCNddpdQ-e9cETLZGwQUhAZPxY,3618
72
72
  tinybird/tb/modules/datafile/pipe_checker.py,sha256=xv7vyjN5dPc2hcw9RnLBq2VkR4nte-8bhYDT10qceQY,24620
73
- tinybird/tb/modules/datafile/playground.py,sha256=94tOydeg5iQ3TQAdEWQWxLhx5Emz6xh0bEwLSao44-Y,56568
73
+ tinybird/tb/modules/datafile/playground.py,sha256=f2b3QCF_En116XV4QzEoriHroatQKHjQ8v0GoJn8bFY,56639
74
74
  tinybird/tb/modules/datafile/pull.py,sha256=CP6-TVZ9ErrEOAFajn9HSEdq-GgYnOPHEIUAuReQGaM,4508
75
75
  tinybird/tb/modules/tinyunit/tinyunit.py,sha256=qc3OHiXYSOv3TQCFRYrMnR47xJbUH0LnV4FBcBtWN1s,11713
76
76
  tinybird/tb/modules/tinyunit/tinyunit_lib.py,sha256=hGh1ZaXC1af7rKnX7222urkj0QJMhMWclqMy59dOqwE,1922
@@ -80,8 +80,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
80
80
  tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
81
81
  tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
82
82
  tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
83
- tinybird-0.0.1.dev197.dist-info/METADATA,sha256=x7RVK-yUWnX3SzbDhqYorhpvkepI1Zvlvc5trh0EqPg,1646
84
- tinybird-0.0.1.dev197.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
- tinybird-0.0.1.dev197.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
- tinybird-0.0.1.dev197.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
- tinybird-0.0.1.dev197.dist-info/RECORD,,
83
+ tinybird-0.0.1.dev199.dist-info/METADATA,sha256=AD7GVlorJayNtzG7PRuZJN8ealwzCs82VEEUUu8KgkY,1646
84
+ tinybird-0.0.1.dev199.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
85
+ tinybird-0.0.1.dev199.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
86
+ tinybird-0.0.1.dev199.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
87
+ tinybird-0.0.1.dev199.dist-info/RECORD,,