Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
aef72737
Unverified
Commit
aef72737
authored
Dec 10, 2024
by
Jakob Görgen
Browse files
symphony/client: added rich dependency
parent
d846082a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
symphony/client/pyproject.toml
symphony/client/pyproject.toml
+1
-0
symphony/client/requirements.txt
symphony/client/requirements.txt
+1
-0
symphony/client/simbricks/client/client.py
symphony/client/simbricks/client/client.py
+2
-3
No files found.
symphony/client/pyproject.toml
View file @
aef72737
...
...
@@ -42,4 +42,5 @@ packages = [
[tool.poetry.dependencies]
aiohttp
=
"3.9.5"
pydantic-settings
=
"2.6.1"
rich
=
"13.9.4"
simbricks-orchestration
=
"*"
symphony/client/requirements.txt
View file @
aef72737
...
...
@@ -23,6 +23,7 @@
# external dependencies
aiohttp==3.9.5
pydantic-settings==2.6.1
rich==13.9.4
# local dependencies
-e ../orchestration
\ No newline at end of file
symphony/client/simbricks/client/client.py
View file @
aef72737
...
...
@@ -25,13 +25,12 @@ import aiohttp
import
typing
import
contextlib
import
asyncio
import
rich
import
json
from
rich.console
import
Console
from
.auth
import
TokenProvider
from
.settings
import
client_settings
from
simbricks.orchestration
import
system
from
simbricks.orchestration
import
simulation
from
simbricks.orchestration
import
instantiation
class
BaseClient
:
...
...
@@ -326,7 +325,7 @@ class SimBricksClient:
return
await
resp
.
json
()
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
:
last_run
=
None
prev_len
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment