tinybird 0.0.1.dev1__tar.gz → 0.0.1.dev3__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.

Files changed (53) hide show
  1. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/PKG-INFO +1 -1
  2. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/__cli__.py +2 -2
  3. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/client.py +8 -5
  4. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/config.py +1 -1
  5. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/datafile.py +540 -6
  6. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/feedback_manager.py +6 -0
  7. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli.py +2 -0
  8. tinybird-0.0.1.dev3/tinybird/tb_cli_modules/build.py +221 -0
  9. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/cli.py +67 -0
  10. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/common.py +2 -3
  11. tinybird-0.0.1.dev3/tinybird/tb_cli_modules/create.py +226 -0
  12. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/datasource.py +10 -2
  13. tinybird-0.0.1.dev3/tinybird/tb_cli_modules/llm.py +31 -0
  14. tinybird-0.0.1.dev3/tinybird/tb_cli_modules/local.py +108 -0
  15. tinybird-0.0.1.dev3/tinybird/tb_cli_modules/prompts.py +133 -0
  16. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird.egg-info/PKG-INFO +1 -1
  17. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird.egg-info/SOURCES.txt +5 -0
  18. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird.egg-info/requires.txt +3 -0
  19. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/setup.cfg +0 -0
  20. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/ch_utils/constants.py +0 -0
  21. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/ch_utils/engine.py +0 -0
  22. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/check_pypi.py +0 -0
  23. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/connectors.py +0 -0
  24. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/context.py +0 -0
  25. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/datatypes.py +0 -0
  26. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/git_settings.py +0 -0
  27. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/sql.py +0 -0
  28. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/sql_template.py +0 -0
  29. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/sql_template_fmt.py +0 -0
  30. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/sql_toolset.py +0 -0
  31. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/syncasync.py +0 -0
  32. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/auth.py +0 -0
  33. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/branch.py +0 -0
  34. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/cicd.py +0 -0
  35. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/config.py +0 -0
  36. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/connection.py +0 -0
  37. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/exceptions.py +0 -0
  38. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/fmt.py +0 -0
  39. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/job.py +0 -0
  40. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/pipe.py +0 -0
  41. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/regions.py +0 -0
  42. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/tag.py +0 -0
  43. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/telemetry.py +0 -0
  44. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/test.py +0 -0
  45. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
  46. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
  47. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/token.py +0 -0
  48. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/workspace.py +0 -0
  49. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tb_cli_modules/workspace_members.py +0 -0
  50. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird/tornado_template.py +0 -0
  51. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird.egg-info/dependency_links.txt +0 -0
  52. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird.egg-info/entry_points.txt +0 -0
  53. {tinybird-0.0.1.dev1 → tinybird-0.0.1.dev3}/tinybird.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinybird
3
- Version: 0.0.1.dev1
3
+ Version: 0.0.1.dev3
4
4
  Summary: Tinybird Command Line Tool
5
5
  Home-page: https://www.tinybird.co/docs/cli/introduction.html
6
6
  Author: Tinybird
@@ -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.dev1'
8
- __revision__ = 'dfec803'
7
+ __version__ = '0.0.1.dev3'
8
+ __revision__ = '50bec29'
@@ -248,10 +248,10 @@ class TinyB:
248
248
  url = url + "?" + scopes_url
249
249
  return await self._req(url, method="PUT", data="")
250
250
 
251
- async def datasources(self, branch: Optional[str] = None, used_by: bool = False):
252
- params = {
253
- "attrs": "used_by" if used_by else "",
254
- }
251
+ async def datasources(self, branch: Optional[str] = None, used_by: bool = False) -> List[Dict[str, Any]]:
252
+ params = {}
253
+ if used_by:
254
+ params["attrs"] = "used_by"
255
255
  response = await self._req(f"/v0/datasources?{urlencode(params)}")
256
256
  ds = response["datasources"]
257
257
 
@@ -498,6 +498,9 @@ class TinyB:
498
498
  payload = {"datasource_a": datasource_a, "datasource_b": datasource_b}
499
499
  return await self._req("/v0/datasources/exchange", method="POST", data=payload)
500
500
 
501
+ async def datasource_events(self, datasource_name: str, data: Dict[str, Any]):
502
+ return await self._req(f"/v0/events?name={datasource_name}", method="POST", data=data)
503
+
501
504
  async def analyze_pipe_node(
502
505
  self, pipe_name: str, node: Dict[str, Any], dry_run: str = "false", datasource_name: Optional[str] = None
503
506
  ):
@@ -532,7 +535,7 @@ class TinyB:
532
535
  )
533
536
  return response
534
537
 
535
- async def pipes(self, branch=None, dependencies: bool = False, node_attrs=None, attrs=None):
538
+ async def pipes(self, branch=None, dependencies: bool = False, node_attrs=None, attrs=None) -> List[Dict[str, Any]]:
536
539
  params = {
537
540
  "dependencies": "true" if dependencies else "false",
538
541
  "attrs": attrs if attrs else "",
@@ -20,7 +20,7 @@ CURRENT_VERSION = f"{__cli__.__version__}"
20
20
  VERSION = f"{__cli__.__version__} (rev {__revision__})"
21
21
  DEFAULT_UI_HOST = "https://app.tinybird.co"
22
22
  SUPPORTED_CONNECTORS = ["bigquery", "snowflake"]
23
- PROJECT_PATHS = ["datasources", "datasources/fixtures", "endpoints", "pipes", "tests", "scripts", "deploy"]
23
+ PROJECT_PATHS = ["datasources", "pipes", "tests"]
24
24
  DEPRECATED_PROJECT_PATHS = ["endpoints"]
25
25
  MIN_WORKSPACE_ID_LENGTH = 36
26
26
  LEGACY_HOSTS = {