tinybird 0.0.1.dev294__py3-none-any.whl → 0.0.1.dev295__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/build.py +5 -3
- tinybird/tb/modules/watch.py +5 -3
- {tinybird-0.0.1.dev294.dist-info → tinybird-0.0.1.dev295.dist-info}/METADATA +1 -1
- {tinybird-0.0.1.dev294.dist-info → tinybird-0.0.1.dev295.dist-info}/RECORD +8 -8
- {tinybird-0.0.1.dev294.dist-info → tinybird-0.0.1.dev295.dist-info}/WHEEL +0 -0
- {tinybird-0.0.1.dev294.dist-info → tinybird-0.0.1.dev295.dist-info}/entry_points.txt +0 -0
- {tinybird-0.0.1.dev294.dist-info → tinybird-0.0.1.dev295.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/forward/commands'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev295'
|
|
8
|
+
__revision__ = '6b3c823'
|
tinybird/tb/modules/build.py
CHANGED
|
@@ -53,6 +53,7 @@ def build(ctx: click.Context, watch: bool) -> None:
|
|
|
53
53
|
run_watch(
|
|
54
54
|
project=project,
|
|
55
55
|
tb_client=tb_client,
|
|
56
|
+
config=config,
|
|
56
57
|
process=partial(process, project=project, tb_client=tb_client, watch=True, config=config),
|
|
57
58
|
)
|
|
58
59
|
|
|
@@ -81,16 +82,17 @@ def dev(ctx: click.Context, data_origin: str, ui: bool) -> None:
|
|
|
81
82
|
run_watch(
|
|
82
83
|
project=project,
|
|
83
84
|
tb_client=tb_client,
|
|
84
|
-
|
|
85
|
+
config=config,
|
|
86
|
+
process=partial(process, project=project, tb_client=tb_client, build_status=build_status, config=config),
|
|
85
87
|
)
|
|
86
88
|
|
|
87
89
|
|
|
88
|
-
def run_watch(project: Project, tb_client: TinyB, process: Callable) -> None:
|
|
90
|
+
def run_watch(project: Project, tb_client: TinyB, process: Callable, config: dict[str, Any]) -> None:
|
|
89
91
|
shell = Shell(project=project, tb_client=tb_client, playground=False)
|
|
90
92
|
click.echo(FeedbackManager.gray(message="\nWatching for changes..."))
|
|
91
93
|
watcher_thread = threading.Thread(
|
|
92
94
|
target=watch_project,
|
|
93
|
-
args=(shell, process, project),
|
|
95
|
+
args=(shell, process, project, config),
|
|
94
96
|
daemon=True,
|
|
95
97
|
)
|
|
96
98
|
watcher_thread.start()
|
tinybird/tb/modules/watch.py
CHANGED
|
@@ -33,9 +33,10 @@ class WatchProjectHandler(PatternMatchingEventHandler):
|
|
|
33
33
|
".env.local",
|
|
34
34
|
]
|
|
35
35
|
|
|
36
|
-
def __init__(self, shell: Shell, project: Project, process: Callable):
|
|
36
|
+
def __init__(self, shell: Shell, project: Project, config: dict[str, Any], process: Callable):
|
|
37
37
|
self.shell = shell
|
|
38
38
|
self.project = project
|
|
39
|
+
self.config = config
|
|
39
40
|
self.process = process
|
|
40
41
|
self.datafiles = project.get_project_datafiles()
|
|
41
42
|
patterns = [f"**/*{ext}" for ext in self.valid_extensions]
|
|
@@ -58,7 +59,7 @@ class WatchProjectHandler(PatternMatchingEventHandler):
|
|
|
58
59
|
|
|
59
60
|
def _process(self, path: Optional[str] = None) -> None:
|
|
60
61
|
click.echo(FeedbackManager.highlight(message="» Rebuilding project..."))
|
|
61
|
-
self.process(watch=True, file_changed=path, diff=self.diff(path))
|
|
62
|
+
self.process(watch=True, file_changed=path, diff=self.diff(path), config=self.config)
|
|
62
63
|
self.shell.reprint_prompt()
|
|
63
64
|
|
|
64
65
|
def diff(self, path: Optional[str] = None) -> Optional[str]:
|
|
@@ -137,8 +138,9 @@ def watch_project(
|
|
|
137
138
|
shell: Shell,
|
|
138
139
|
process: Callable[[bool, Optional[str], Optional[str]], None],
|
|
139
140
|
project: Project,
|
|
141
|
+
config: dict[str, Any],
|
|
140
142
|
) -> None:
|
|
141
|
-
event_handler = WatchProjectHandler(shell=shell, project=project, process=process)
|
|
143
|
+
event_handler = WatchProjectHandler(shell=shell, project=project, process=process, config=config)
|
|
142
144
|
observer = Observer()
|
|
143
145
|
observer.schedule(event_handler, path=str(project.path), recursive=True)
|
|
144
146
|
observer.start()
|
|
@@ -18,12 +18,12 @@ tinybird/datafile/exceptions.py,sha256=8rw2umdZjtby85QbuRKFO5ETz_eRHwUY5l7eHsy1w
|
|
|
18
18
|
tinybird/datafile/parse_connection.py,sha256=tRyn2Rpr1TeWet5BXmMoQgaotbGdYep1qiTak_OqC5E,1825
|
|
19
19
|
tinybird/datafile/parse_datasource.py,sha256=ssW8QeFSgglVFi3sDZj_HgkJiTJ2069v2JgqnH3CkDE,1825
|
|
20
20
|
tinybird/datafile/parse_pipe.py,sha256=8e9LMecSQVWHC4AXf8cdxoQ1nxUR4fTObYxTctO_EXQ,3816
|
|
21
|
-
tinybird/tb/__cli__.py,sha256=
|
|
21
|
+
tinybird/tb/__cli__.py,sha256=E3lB-KnSHTQ-FxDGmiqdPjPn6asGH5nhTprDqg3HDYY,247
|
|
22
22
|
tinybird/tb/check_pypi.py,sha256=Gp0HkHHDFMSDL6nxKlOY51z7z1Uv-2LRexNTZSHHGmM,552
|
|
23
23
|
tinybird/tb/cli.py,sha256=FdDFEIayjmsZEVsVSSvRiVYn_FHOVg_zWQzchnzfWho,1008
|
|
24
24
|
tinybird/tb/client.py,sha256=IQRaInDjOwr9Fzaz3_xXc3aUGqh94tM2lew7IZbB9eM,53733
|
|
25
25
|
tinybird/tb/config.py,sha256=mhMTGnMB5KcxGoh3dewIr2Jjsa6pHE183gCPAQWyp6o,3973
|
|
26
|
-
tinybird/tb/modules/build.py,sha256
|
|
26
|
+
tinybird/tb/modules/build.py,sha256=vyhQyyDGLUHrJGdKoRy0gCc62vzZrRjtyzdXAJttYE4,7925
|
|
27
27
|
tinybird/tb/modules/build_common.py,sha256=O9WXbZHRjBUwczCr2CGlXIkLQOiwAEJGL9TiY-0eEh8,18627
|
|
28
28
|
tinybird/tb/modules/cicd.py,sha256=0KLKccha9IP749QvlXBmzdWv1On3mFwMY4DUcJlBxiE,7326
|
|
29
29
|
tinybird/tb/modules/cli.py,sha256=-hkwg2ZIWPtldkLkgdY7RYWacOJtkMx58eqqYzMoMfw,17793
|
|
@@ -66,7 +66,7 @@ tinybird/tb/modules/telemetry.py,sha256=T9gtsQffWqG_4hRBaUJPzOfMkPwz7mH-R6Bn1XRY
|
|
|
66
66
|
tinybird/tb/modules/test.py,sha256=gi7fH6zavFp1jDs3SoRWdf9uBiKjp1hdOPAEleg7H-Y,2145
|
|
67
67
|
tinybird/tb/modules/test_common.py,sha256=pvHVXZb9xGosh4h_updz13qsIg3pyAtroFnjjrxaoPU,14673
|
|
68
68
|
tinybird/tb/modules/token.py,sha256=ZhW_o7XCr90wJRhMN6816vyo_TVfnzPXyIhrhzQ7oZ0,13807
|
|
69
|
-
tinybird/tb/modules/watch.py,sha256=
|
|
69
|
+
tinybird/tb/modules/watch.py,sha256=R0wERRyL-PrwxKOLSk-T-EvkIczHpeoGirrl3JZxXa8,8935
|
|
70
70
|
tinybird/tb/modules/workspace.py,sha256=tCP1zZMwBhLRGm22TGfpSd4cHvQLAS1o_azIXv_r6uw,11172
|
|
71
71
|
tinybird/tb/modules/workspace_members.py,sha256=5JdkJgfuEwbq-t6vxkBhYwgsiTDxF790wsa6Xfif9nk,8608
|
|
72
72
|
tinybird/tb/modules/agent/__init__.py,sha256=i3oe3vDIWWPaicdCM0zs7D7BJ1W0k7th93ooskHAV00,54
|
|
@@ -121,8 +121,8 @@ tinybird/tb_cli_modules/config.py,sha256=IsgdtFRnUrkY8-Zo32lmk6O7u3bHie1QCxLwgp4
|
|
|
121
121
|
tinybird/tb_cli_modules/exceptions.py,sha256=pmucP4kTF4irIt7dXiG-FcnI-o3mvDusPmch1L8RCWk,3367
|
|
122
122
|
tinybird/tb_cli_modules/regions.py,sha256=QjsL5H6Kg-qr0aYVLrvb1STeJ5Sx_sjvbOYO0LrEGMk,166
|
|
123
123
|
tinybird/tb_cli_modules/telemetry.py,sha256=Hh2Io8ZPROSunbOLuMvuIFU4TqwWPmQTqal4WS09K1A,10449
|
|
124
|
-
tinybird-0.0.1.
|
|
125
|
-
tinybird-0.0.1.
|
|
126
|
-
tinybird-0.0.1.
|
|
127
|
-
tinybird-0.0.1.
|
|
128
|
-
tinybird-0.0.1.
|
|
124
|
+
tinybird-0.0.1.dev295.dist-info/METADATA,sha256=kW3YFTFWs9vaXjrNuSRqJs1XNJpu7Ef_tncRV-r8ffM,1845
|
|
125
|
+
tinybird-0.0.1.dev295.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
126
|
+
tinybird-0.0.1.dev295.dist-info/entry_points.txt,sha256=LwdHU6TfKx4Qs7BqqtaczEZbImgU7Abe9Lp920zb_fo,43
|
|
127
|
+
tinybird-0.0.1.dev295.dist-info/top_level.txt,sha256=VqqqEmkAy7UNaD8-V51FCoMMWXjLUlR0IstvK7tJYVY,54
|
|
128
|
+
tinybird-0.0.1.dev295.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|