llamactl 0.3.0a2__py3-none-any.whl → 0.3.0a3__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.
@@ -7,6 +7,7 @@ from llama_deploy.core.config import DEFAULT_DEPLOYMENT_FILE_PATH
7
7
  from llama_deploy.core.schema.deployments import DeploymentUpdate
8
8
  from rich import print as rprint
9
9
  from rich.console import Console
10
+ from rich.text import Text
10
11
  from rich.table import Table
11
12
 
12
13
  from .client import get_project_client, get_control_plane_client
@@ -21,7 +22,7 @@ from .textual.deployment_form import create_deployment_form, edit_deployment_for
21
22
  from .textual.profile_form import create_profile_form, edit_profile_form
22
23
 
23
24
  RETRY_WAIT_SECONDS = 1
24
- console = Console()
25
+ console = Console(highlight=False)
25
26
 
26
27
 
27
28
  # Create sub-applications for organizing commands
@@ -542,7 +543,7 @@ def version() -> None:
542
543
  from importlib.metadata import PackageNotFoundError, version as pkg_version
543
544
 
544
545
  ver = pkg_version("llamactl")
545
- rprint(f"client version: {ver}")
546
+ console.print(Text.assemble("client version: ", (ver, "green")))
546
547
 
547
548
  # If there is an active profile, attempt to query server version
548
549
  profile = config_manager.get_current_profile()
@@ -550,10 +551,24 @@ def version() -> None:
550
551
  try:
551
552
  cp_client = get_control_plane_client()
552
553
  data = cp_client.server_version()
553
- server_ver = data.get("version", "unknown")
554
- rprint(f"server version: {server_ver}")
554
+ server_ver = data.get("version")
555
+ console.print(
556
+ Text.assemble(
557
+ "server version: ",
558
+ (
559
+ server_ver or "unknown",
560
+ "bright_yellow" if server_ver is None else "green",
561
+ ),
562
+ )
563
+ )
555
564
  except Exception as e:
556
- rprint(f"server version: [yellow]unavailable[/yellow] ({e})")
565
+ console.print(
566
+ Text.assemble(
567
+ "server version: ",
568
+ ("unavailable", "bright_yellow"),
569
+ (f" - {e}", "dim"),
570
+ )
571
+ )
557
572
  except PackageNotFoundError:
558
573
  rprint("[red]Package 'llamactl' not found[/red]")
559
574
  raise click.Abort()
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: llamactl
3
- Version: 0.3.0a2
3
+ Version: 0.3.0a3
4
4
  Summary: A command-line interface for managing LlamaDeploy projects and deployments
5
5
  Author: Adrian Lyjak
6
6
  Author-email: Adrian Lyjak <adrianlyjak@gmail.com>
7
7
  License: MIT
8
- Requires-Dist: llama-deploy-core>=0.3.0a2,<0.4.0
9
- Requires-Dist: llama-deploy-appserver>=0.3.0a2,<0.4.0
8
+ Requires-Dist: llama-deploy-core>=0.3.0a3,<0.4.0
9
+ Requires-Dist: llama-deploy-appserver>=0.3.0a3,<0.4.0
10
10
  Requires-Dist: httpx>=0.24.0
11
11
  Requires-Dist: rich>=13.0.0
12
12
  Requires-Dist: questionary>=2.0.0
@@ -1,6 +1,6 @@
1
1
  llama_deploy/cli/__init__.py,sha256=7f5381a1f1f3631a53e8d264830f591e36e9a509eae01b114fdfcd0213ff0c21,827
2
2
  llama_deploy/cli/client.py,sha256=1e033b3f620439e67d5e5cceb3e5821039449431f2dbbc22bcff76416c638fb7,7103
3
- llama_deploy/cli/commands.py,sha256=802b74da9b857b1d547b02044de3e750e928524188bd6f9c8775cea0ae4d8ad7,18102
3
+ llama_deploy/cli/commands.py,sha256=a5ec26923b80b87cbd7874b9dc36973c5f02310b5d09d140f331c87e486ec161,18619
4
4
  llama_deploy/cli/config.py,sha256=b339d95fceb7a15a183663032396aaeb2afffe1ddf06494416a6a0183a6658ca,6275
5
5
  llama_deploy/cli/debug.py,sha256=e85a72d473bbe1645eb31772f7349bde703d45704166f767385895c440afc762,496
6
6
  llama_deploy/cli/env.py,sha256=bb1dcde428c779796ad2b39b58d84f08df75a15031afca577aca0db5ce9a9ea0,1015
@@ -13,7 +13,7 @@ llama_deploy/cli/textual/llama_loader.py,sha256=dfef7118eb42d0fec033731b3f3b16ed
13
13
  llama_deploy/cli/textual/profile_form.py,sha256=2c6ca4690c22b499cc327b117c97e7914d4243b73faa92c0f5ac9cfdcf59b3d7,6015
14
14
  llama_deploy/cli/textual/secrets_form.py,sha256=1fd47a5a5ee9dfa0fd2a86f5888894820897c55fbb0cd30e60d6bc08570288b5,6303
15
15
  llama_deploy/cli/textual/styles.tcss,sha256=72338c5634bae0547384669382c4e06deec1380ef7bbc31099b1dca8ce49b2d0,2711
16
- llamactl-0.3.0a2.dist-info/WHEEL,sha256=66530aef82d5020ef5af27ae0123c71abb9261377c5bc519376c671346b12918,79
17
- llamactl-0.3.0a2.dist-info/entry_points.txt,sha256=b67e1eb64305058751a651a80f2d2268b5f7046732268421e796f64d4697f83c,52
18
- llamactl-0.3.0a2.dist-info/METADATA,sha256=1ac25c584163c3b51d2a2e625be9eab23042804a583f6a7d8b2e22bd8fd2e057,3166
19
- llamactl-0.3.0a2.dist-info/RECORD,,
16
+ llamactl-0.3.0a3.dist-info/WHEEL,sha256=66530aef82d5020ef5af27ae0123c71abb9261377c5bc519376c671346b12918,79
17
+ llamactl-0.3.0a3.dist-info/entry_points.txt,sha256=b67e1eb64305058751a651a80f2d2268b5f7046732268421e796f64d4697f83c,52
18
+ llamactl-0.3.0a3.dist-info/METADATA,sha256=25dec741cae6f0673310e0cc0be233c17dce63e9189863960bd23f0f67f346d3,3166
19
+ llamactl-0.3.0a3.dist-info/RECORD,,