tinybird 0.0.1.dev23__tar.gz → 0.0.1.dev24__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.dev23 → tinybird-0.0.1.dev24}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/create.py +5 -5
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/llm.py +4 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/setup.cfg +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/datafile.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/auth.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/common.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/fmt.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/tag.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/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.dev24'
|
|
8
|
+
__revision__ = '3de7f2a'
|
|
@@ -15,6 +15,7 @@ from tinybird.tb.modules.datafile.fixture import build_fixture_name, persist_fix
|
|
|
15
15
|
from tinybird.tb.modules.exceptions import CLIException
|
|
16
16
|
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
17
17
|
from tinybird.tb.modules.llm import LLM
|
|
18
|
+
from tinybird.tb.modules.local_common import get_tinybird_local_client
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
@cli.command()
|
|
@@ -42,10 +43,8 @@ from tinybird.tb.modules.llm import LLM
|
|
|
42
43
|
help="Folder where datafiles will be placed",
|
|
43
44
|
)
|
|
44
45
|
@click.option("--rows", type=int, default=10, help="Number of events to send")
|
|
45
|
-
@click.pass_context
|
|
46
46
|
@coro
|
|
47
47
|
async def create(
|
|
48
|
-
ctx: click.Context,
|
|
49
48
|
demo: bool,
|
|
50
49
|
data: Optional[str],
|
|
51
50
|
prompt: Optional[str],
|
|
@@ -71,9 +70,9 @@ async def create(
|
|
|
71
70
|
)
|
|
72
71
|
)
|
|
73
72
|
return
|
|
74
|
-
local_client
|
|
73
|
+
local_client = await get_tinybird_local_client(folder)
|
|
75
74
|
click.echo(FeedbackManager.gray(message="Creating new project structure..."))
|
|
76
|
-
await project_create(local_client, user_token, data, prompt, folder)
|
|
75
|
+
await project_create(local_client, tb_client, user_token, data, prompt, folder)
|
|
77
76
|
click.echo(FeedbackManager.success(message="✓ Scaffolding completed!\n"))
|
|
78
77
|
|
|
79
78
|
click.echo(FeedbackManager.gray(message="\nCreating CI/CD files for GitHub and GitLab..."))
|
|
@@ -174,6 +173,7 @@ async def create(
|
|
|
174
173
|
|
|
175
174
|
|
|
176
175
|
async def project_create(
|
|
176
|
+
local_client: TinyB,
|
|
177
177
|
client: TinyB,
|
|
178
178
|
user_token: Optional[str],
|
|
179
179
|
data: Optional[str],
|
|
@@ -194,7 +194,7 @@ async def project_create(
|
|
|
194
194
|
path = Path(folder) / data
|
|
195
195
|
format = path.suffix.lstrip(".")
|
|
196
196
|
try:
|
|
197
|
-
await _generate_datafile(str(path),
|
|
197
|
+
await _generate_datafile(str(path), local_client, format=format, force=force)
|
|
198
198
|
except Exception as e:
|
|
199
199
|
click.echo(FeedbackManager.error(message=f"Error: {str(e)}"))
|
|
200
200
|
name = data.split(".")[0]
|
|
@@ -53,6 +53,10 @@ class LLM:
|
|
|
53
53
|
|
|
54
54
|
async def create_project(self, prompt: str) -> DataProject:
|
|
55
55
|
try:
|
|
56
|
+
prompt = (
|
|
57
|
+
prompt
|
|
58
|
+
+ "\n#More extra context\n- If you add some array data type remember that the json path should be like this: `json:$.array_field[:]`"
|
|
59
|
+
)
|
|
56
60
|
response = await self.user_client._req(
|
|
57
61
|
"/v0/llm/create",
|
|
58
62
|
method="POST",
|
|
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.dev23 → tinybird-0.0.1.dev24}/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
|
|
File without changes
|
{tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev23 → tinybird-0.0.1.dev24}/tinybird/tb/modules/datafile/parse_datasource.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
|
|
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.dev23 → tinybird-0.0.1.dev24}/tinybird/tb_cli_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
|