Unverified Commit aef72737 authored by Jakob Görgen's avatar Jakob Görgen
Browse files

symphony/client: added rich dependency

parent d846082a
...@@ -42,4 +42,5 @@ packages = [ ...@@ -42,4 +42,5 @@ packages = [
[tool.poetry.dependencies] [tool.poetry.dependencies]
aiohttp = "3.9.5" aiohttp = "3.9.5"
pydantic-settings = "2.6.1" pydantic-settings = "2.6.1"
rich = "13.9.4"
simbricks-orchestration = "*" simbricks-orchestration = "*"
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
# external dependencies # external dependencies
aiohttp==3.9.5 aiohttp==3.9.5
pydantic-settings==2.6.1 pydantic-settings==2.6.1
rich==13.9.4
# local dependencies # local dependencies
-e ../orchestration -e ../orchestration
\ No newline at end of file
...@@ -25,13 +25,12 @@ import aiohttp ...@@ -25,13 +25,12 @@ import aiohttp
import typing import typing
import contextlib import contextlib
import asyncio import asyncio
import rich
import json import json
from rich.console import Console
from .auth import TokenProvider from .auth import TokenProvider
from .settings import client_settings from .settings import client_settings
from simbricks.orchestration import system from simbricks.orchestration import system
from simbricks.orchestration import simulation from simbricks.orchestration import simulation
from simbricks.orchestration import instantiation
class BaseClient: class BaseClient:
...@@ -326,7 +325,7 @@ class SimBricksClient: ...@@ -326,7 +325,7 @@ class SimBricksClient:
return await resp.json() return await resp.json()
async def follow_run(self, run_id: int) -> None: async def follow_run(self, run_id: int) -> None:
console = rich.console.Console() console = Console()
with console.status(f"[bold green]Waiting for run {run_id} to finish...") as status: with console.status(f"[bold green]Waiting for run {run_id} to finish...") as status:
last_run = None last_run = None
prev_len = 0 prev_len = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment