orchestra-cli 0.0.3__tar.gz → 0.0.5__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.
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/PKG-INFO +6 -4
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/README.md +4 -0
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli/src/cli.py +19 -17
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli/tests/test_cli.py +1 -0
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli.egg-info/PKG-INFO +6 -4
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli.egg-info/entry_points.txt +1 -0
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli.egg-info/requires.txt +0 -3
- orchestra_cli-0.0.5/pyproject.toml +53 -0
- orchestra_cli-0.0.3/pyproject.toml +0 -20
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli/src/__init__.py +0 -0
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli.egg-info/SOURCES.txt +0 -0
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli.egg-info/dependency_links.txt +0 -0
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/orchestra_cli.egg-info/top_level.txt +0 -0
- {orchestra_cli-0.0.3 → orchestra_cli-0.0.5}/setup.cfg +0 -0
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orchestra-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: Orchestra CLI. Perform operations with Orchestra locally.
|
|
5
5
|
Author-email: Orchestra Technologies <support@getorchestra.io>
|
|
6
|
-
Requires-Python: >=3.
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
Requires-Dist: httpx>=0.28.1
|
|
9
9
|
Requires-Dist: pyyaml>=6.0.2
|
|
10
10
|
Requires-Dist: typer>=0.16.0
|
|
11
|
-
Provides-Extra: dev
|
|
12
|
-
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
13
11
|
|
|
14
12
|
# orchestra-cli
|
|
15
13
|
|
|
@@ -28,5 +26,9 @@ orchestra-cli validate example.yaml
|
|
|
28
26
|
|
|
29
27
|
## Building and Releasing
|
|
30
28
|
|
|
29
|
+
- Bump the version in `pyproject.toml` or by running `uv version --bump <major/minor/patch>`
|
|
30
|
+
- Run `uv sync` to install the dependencies
|
|
31
31
|
- Run `uv build` to build the CLI
|
|
32
32
|
- Run `uv publish` to publish the CLI (you will need to pass the `--token` flag)
|
|
33
|
+
|
|
34
|
+
**Note: Failure to bump the version will result in a failed release.**
|
|
@@ -15,5 +15,9 @@ orchestra-cli validate example.yaml
|
|
|
15
15
|
|
|
16
16
|
## Building and Releasing
|
|
17
17
|
|
|
18
|
+
- Bump the version in `pyproject.toml` or by running `uv version --bump <major/minor/patch>`
|
|
19
|
+
- Run `uv sync` to install the dependencies
|
|
18
20
|
- Run `uv build` to build the CLI
|
|
19
21
|
- Run `uv publish` to publish the CLI (you will need to pass the `--token` flag)
|
|
22
|
+
|
|
23
|
+
**Note: Failure to bump the version will result in a failed release.**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
2
4
|
import httpx
|
|
3
5
|
import typer
|
|
4
|
-
|
|
5
|
-
from typing import Any, List
|
|
6
|
+
import yaml
|
|
6
7
|
|
|
7
8
|
app = typer.Typer(help="Orchestra CLI – perform operations with Orchestra locally.")
|
|
8
9
|
|
|
@@ -30,7 +31,7 @@ def indent_message(msg: str, indent: str = " ") -> str:
|
|
|
30
31
|
return "\n".join(indent + line for line in msg.splitlines())
|
|
31
32
|
|
|
32
33
|
|
|
33
|
-
def get_yaml_snippet(data: Any, loc:
|
|
34
|
+
def get_yaml_snippet(data: Any, loc: list[Any]) -> dict[str, Any] | None:
|
|
34
35
|
weird_keys = ["TaskGroupModel"]
|
|
35
36
|
try:
|
|
36
37
|
for idx, key in enumerate(loc):
|
|
@@ -77,22 +78,14 @@ def validate(file: Path = typer.Argument(..., help="YAML file to validate")):
|
|
|
77
78
|
for err in details:
|
|
78
79
|
loc = err.get("loc", [])
|
|
79
80
|
msg = err.get("msg", "Unknown error")
|
|
80
|
-
typer.echo(
|
|
81
|
-
bold(yellow(f"Error at: {'.'.join(str(x) for x in loc)}"))
|
|
82
|
-
)
|
|
81
|
+
typer.echo(bold(yellow(f"Error at: {'.'.join(str(x) for x in loc)}")))
|
|
83
82
|
typer.echo(red(indent_message(msg)))
|
|
84
83
|
snippet = get_yaml_snippet(data, loc)
|
|
85
84
|
if snippet is not None:
|
|
86
85
|
typer.echo(bold("\nYAML snippet:"))
|
|
87
|
-
typer.echo(
|
|
88
|
-
yaml.dump(
|
|
89
|
-
snippet, sort_keys=False, default_flow_style=False
|
|
90
|
-
)
|
|
91
|
-
)
|
|
86
|
+
typer.echo(yaml.dump(snippet, sort_keys=False, default_flow_style=False))
|
|
92
87
|
else:
|
|
93
|
-
typer.echo(
|
|
94
|
-
yellow("(Could not locate this path in your YAML)")
|
|
95
|
-
)
|
|
88
|
+
typer.echo(yellow("(Could not locate this path in your YAML)"))
|
|
96
89
|
else:
|
|
97
90
|
typer.echo(errors)
|
|
98
91
|
except Exception:
|
|
@@ -103,7 +96,16 @@ def validate(file: Path = typer.Argument(..., help="YAML file to validate")):
|
|
|
103
96
|
@app.command()
|
|
104
97
|
def upload():
|
|
105
98
|
"""
|
|
106
|
-
Upload a YAML file to the API. (
|
|
99
|
+
Upload a YAML file to the API. (🚧 Coming soon)
|
|
100
|
+
"""
|
|
101
|
+
typer.echo(red("🚧 Action not supported yet"))
|
|
102
|
+
raise typer.Exit(code=1)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@app.command()
|
|
106
|
+
def run():
|
|
107
|
+
"""
|
|
108
|
+
Run a pipeline in Orchestra. (🚧 Coming soon)
|
|
107
109
|
"""
|
|
108
|
-
typer.echo(red("Action not supported yet"))
|
|
110
|
+
typer.echo(red("🚧 Action not supported yet"))
|
|
109
111
|
raise typer.Exit(code=1)
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: orchestra-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5
|
|
4
4
|
Summary: Orchestra CLI. Perform operations with Orchestra locally.
|
|
5
5
|
Author-email: Orchestra Technologies <support@getorchestra.io>
|
|
6
|
-
Requires-Python: >=3.
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
Requires-Dist: httpx>=0.28.1
|
|
9
9
|
Requires-Dist: pyyaml>=6.0.2
|
|
10
10
|
Requires-Dist: typer>=0.16.0
|
|
11
|
-
Provides-Extra: dev
|
|
12
|
-
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
13
11
|
|
|
14
12
|
# orchestra-cli
|
|
15
13
|
|
|
@@ -28,5 +26,9 @@ orchestra-cli validate example.yaml
|
|
|
28
26
|
|
|
29
27
|
## Building and Releasing
|
|
30
28
|
|
|
29
|
+
- Bump the version in `pyproject.toml` or by running `uv version --bump <major/minor/patch>`
|
|
30
|
+
- Run `uv sync` to install the dependencies
|
|
31
31
|
- Run `uv build` to build the CLI
|
|
32
32
|
- Run `uv publish` to publish the CLI (you will need to pass the `--token` flag)
|
|
33
|
+
|
|
34
|
+
**Note: Failure to bump the version will result in a failed release.**
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "orchestra-cli"
|
|
3
|
+
version = "0.0.5"
|
|
4
|
+
description = "Orchestra CLI. Perform operations with Orchestra locally."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "Orchestra Technologies", email = "support@getorchestra.io" },
|
|
8
|
+
]
|
|
9
|
+
requires-python = ">=3.10"
|
|
10
|
+
dependencies = ["httpx>=0.28.1", "pyyaml>=6.0.2", "typer>=0.16.0"]
|
|
11
|
+
|
|
12
|
+
[project.scripts]
|
|
13
|
+
orchestra-cli = "orchestra_cli.src.cli:app"
|
|
14
|
+
orchestra = "orchestra_cli.src.cli:app"
|
|
15
|
+
|
|
16
|
+
[build-system]
|
|
17
|
+
requires = ["setuptools>=61.0"]
|
|
18
|
+
build-backend = "setuptools.build_meta"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
[dependency-groups]
|
|
22
|
+
dev = [
|
|
23
|
+
"pytest>=8.3.5",
|
|
24
|
+
"pyright>=1.1.405",
|
|
25
|
+
"ruff>=0.13.2",
|
|
26
|
+
"black>=25.9.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
[tool.ruff]
|
|
31
|
+
line-length = 100
|
|
32
|
+
|
|
33
|
+
[tool.ruff.lint]
|
|
34
|
+
# E = pycodestyle error
|
|
35
|
+
# F = Pyflakes
|
|
36
|
+
# W = pycodestyle warning
|
|
37
|
+
# I = isort
|
|
38
|
+
# UP = pyupgrade
|
|
39
|
+
# ARG = flake8-unused-arguments
|
|
40
|
+
# COM = flake8-commas
|
|
41
|
+
# N = pep8-naming
|
|
42
|
+
select = ["E", "F", "W", "I", "N", "UP", "ARG", "COM"]
|
|
43
|
+
|
|
44
|
+
[tool.black]
|
|
45
|
+
line-length = 100
|
|
46
|
+
exclude = '''
|
|
47
|
+
/(
|
|
48
|
+
| \.venv
|
|
49
|
+
)/
|
|
50
|
+
'''
|
|
51
|
+
|
|
52
|
+
[tool.pyright]
|
|
53
|
+
typeCheckingMode = "basic"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[project]
|
|
2
|
-
name = "orchestra-cli"
|
|
3
|
-
version = "0.0.3"
|
|
4
|
-
description = "Orchestra CLI. Perform operations with Orchestra locally."
|
|
5
|
-
readme = "README.md"
|
|
6
|
-
authors = [
|
|
7
|
-
{ name = "Orchestra Technologies", email = "support@getorchestra.io" },
|
|
8
|
-
]
|
|
9
|
-
requires-python = ">=3.8"
|
|
10
|
-
dependencies = ["httpx>=0.28.1", "pyyaml>=6.0.2", "typer>=0.16.0"]
|
|
11
|
-
|
|
12
|
-
[project.scripts]
|
|
13
|
-
orchestra-cli = "orchestra_cli.src.cli:app"
|
|
14
|
-
|
|
15
|
-
[build-system]
|
|
16
|
-
requires = ["setuptools>=61.0"]
|
|
17
|
-
build-backend = "setuptools.build_meta"
|
|
18
|
-
|
|
19
|
-
[project.optional-dependencies]
|
|
20
|
-
dev = ["pytest>=7.0"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|