arkitekt-next 0.8.58__py3-none-any.whl → 0.8.60__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.

Potentially problematic release.


This version of arkitekt-next might be problematic. Click here for more details.

@@ -1,3 +1,4 @@
1
+ import sys
1
2
  import rich_click as click
2
3
  from arkitekt_next.cli.vars import get_console, get_manifest
3
4
  import os
@@ -95,16 +96,32 @@ def inspect_docker_container(build_id: str) -> InspectionInput:
95
96
  def inspect_templates(build_id: str, url:str) -> list[TemplateInput]:
96
97
  try:
97
98
  # Run 'docker inspect' with the container ID or name
98
- result = subprocess.run(
99
- ["docker", "run", "--network", "host", build_id, "arkitekt-next", "inspect", "templates", "-mr", "--url", url],
99
+ process = subprocess.Popen(
100
+ " ".join(["docker", "run", "-it", "--network", "host", build_id, "arkitekt-next", "inspect", "templates", "-mr", "--url", url]),
101
+ shell=True,
100
102
  stdout=subprocess.PIPE,
101
103
  stderr=subprocess.PIPE,
102
- check=True,
103
- text=True,
104
104
  )
105
105
 
106
+
107
+ lines = []
108
+ # Poll process for new output until finished
109
+ while True:
110
+ if process.poll() is not None:
111
+ break
112
+ nextline = process.stdout.readline()
113
+
114
+ lines.append(nextline.decode("utf-8"))
115
+ sys.stdout.buffer.write(nextline)
116
+ sys.stdout.flush()
117
+
118
+ output = process.communicate()[0]
119
+ exitCode = process.returncode
120
+
121
+ result = "\n".join(lines)
122
+
106
123
  # Parse the JSON output
107
- correct_part = result.stdout.split("--START_TEMPLATES--")[1].split(
124
+ correct_part = result.split("--START_TEMPLATES--")[1].split(
108
125
  "--END_TEMPLATES--"
109
126
  )[0]
110
127
 
@@ -116,7 +133,7 @@ def inspect_templates(build_id: str, url:str) -> list[TemplateInput]:
116
133
  f"Could not decode JSON output of docker inspect. {combined_error}"
117
134
  ) from e
118
135
 
119
- return list(output.values())
136
+ return output
120
137
  except subprocess.CalledProcessError as e:
121
138
  combined_error = e.stdout + e.stderr
122
139
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arkitekt-next
3
- Version: 0.8.58
3
+ Version: 0.8.60
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -68,7 +68,7 @@ arkitekt_next/cli/commands/inspect/requirements.py,sha256=bLYaWddScW2_qQFCwRtCFU
68
68
  arkitekt_next/cli/commands/inspect/templates.py,sha256=x5v0QkrwWOuMupyDAaItA_yFCpNRTF7EENQcj9kUxNI,2483
69
69
  arkitekt_next/cli/commands/inspect/variables.py,sha256=LonDlbS2qH1v-jD6RfEhTv-mxmgeBMKqD3oO2iDJRjE,2698
70
70
  arkitekt_next/cli/commands/kabinet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
71
- arkitekt_next/cli/commands/kabinet/build.py,sha256=VsRpGxKvzEOeN6mj5N6iE1kBaCCVjY1GMtzCwttZnn0,9240
71
+ arkitekt_next/cli/commands/kabinet/build.py,sha256=9-G-gdvgTj1uXDbaUNfV0g4AgmAkBslcQ_q_lukGpEY,9696
72
72
  arkitekt_next/cli/commands/kabinet/init.py,sha256=YcxXlMick7Xd2XUjmA9vyku0QDGACw1PEWpfJum42E8,3600
73
73
  arkitekt_next/cli/commands/kabinet/main.py,sha256=U5EWekRTsMZZ34abWFfwilhzrd-zZtpZbl8RsLN_bC8,1008
74
74
  arkitekt_next/cli/commands/kabinet/publish.py,sha256=pbQ3QNNwSnyq06EPWfcJc_LoP9VhKo2wGBuUtNPPlV0,3572
@@ -138,8 +138,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
138
138
  arkitekt_next/service_registry.py,sha256=Enu88Ja7k0VBNMhNjibBqGxCiz6Qixfbvs4pUA-Mqp8,8094
139
139
  arkitekt_next/tqdm.py,sha256=lQcJI5Q6Py7Gy88hOCiJujjPEEGd8G2k1mOVJJ6oYe8,1531
140
140
  arkitekt_next/utils.py,sha256=4e4zEQSA7FZou8M01xV8oPBG1JvJJ0ySDP_nm3E3pMA,2390
141
- arkitekt_next-0.8.58.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
142
- arkitekt_next-0.8.58.dist-info/METADATA,sha256=G0D4bFJ7GWdq-00PQYwWryg58_VgRW0HLfu3orfdPTg,6256
143
- arkitekt_next-0.8.58.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
144
- arkitekt_next-0.8.58.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
145
- arkitekt_next-0.8.58.dist-info/RECORD,,
141
+ arkitekt_next-0.8.60.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
142
+ arkitekt_next-0.8.60.dist-info/METADATA,sha256=vItifcxJbntwr25nDV1BlRgZdnBmX2k8maE1zlg8-dg,6256
143
+ arkitekt_next-0.8.60.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
144
+ arkitekt_next-0.8.60.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
145
+ arkitekt_next-0.8.60.dist-info/RECORD,,