arkitekt-next 0.7.14__tar.gz → 0.7.16__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.

Potentially problematic release.


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

Files changed (119) hide show
  1. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/PKG-INFO +1 -2
  2. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/builders.py +1 -97
  3. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/inspect/templates.py +1 -1
  4. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/build.py +5 -4
  5. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/types.py +3 -1
  6. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/__init__.py +4 -0
  7. arkitekt_next-0.7.16/arkitekt_next/qt/builder.py +111 -0
  8. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/pyproject.toml +1 -2
  9. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/LICENSE +0 -0
  10. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/README.md +0 -0
  11. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/__init__.py +0 -0
  12. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/__init__.py +0 -0
  13. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/easy.py +0 -0
  14. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/next.py +0 -0
  15. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/qt.py +0 -0
  16. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/__init__.py +0 -0
  17. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/fakts.py +0 -0
  18. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/fakts_next.py +0 -0
  19. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/fakts_qt.py +0 -0
  20. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/fluss_next.py +0 -0
  21. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/grant_registry.py +0 -0
  22. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/herre.py +0 -0
  23. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/herre_qt.py +0 -0
  24. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/kabinet.py +0 -0
  25. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/mikro_next.py +0 -0
  26. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/rekuest_next.py +0 -0
  27. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/service/unlok_next.py +0 -0
  28. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/apps/types.py +0 -0
  29. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/__init__.py +0 -0
  30. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/call/__init__.py +0 -0
  31. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/call/local.py +0 -0
  32. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/call/main.py +0 -0
  33. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/call/remote.py +0 -0
  34. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/gen/__init__.py +0 -0
  35. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/gen/compile.py +0 -0
  36. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/gen/init.py +0 -0
  37. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/gen/main.py +0 -0
  38. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/gen/watch.py +0 -0
  39. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/init/__init__.py +0 -0
  40. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/init/main.py +0 -0
  41. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/inspect/__init__.py +0 -0
  42. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/inspect/main.py +0 -0
  43. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/inspect/variables.py +0 -0
  44. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/__init__.py +0 -0
  45. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/init.py +0 -0
  46. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/main.py +0 -0
  47. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/publish.py +0 -0
  48. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/stage.py +0 -0
  49. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/utils.py +0 -0
  50. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/validate.py +0 -0
  51. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/kabinet/wizard.py +0 -0
  52. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/manifest/__init__.py +0 -0
  53. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/manifest/inspect.py +0 -0
  54. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/manifest/main.py +0 -0
  55. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/manifest/scopes.py +0 -0
  56. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/manifest/version.py +0 -0
  57. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/manifest/wizard.py +0 -0
  58. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/run/__init__.py +0 -0
  59. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/run/dev.py +0 -0
  60. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/run/main.py +0 -0
  61. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/run/prod.py +0 -0
  62. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/run/utils.py +0 -0
  63. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/__init__.py +0 -0
  64. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/down.py +0 -0
  65. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/init.py +0 -0
  66. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/inspect.py +0 -0
  67. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/main.py +0 -0
  68. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/open.py +0 -0
  69. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/remove.py +0 -0
  70. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/stop.py +0 -0
  71. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/up.py +0 -0
  72. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/commands/server/utils.py +0 -0
  73. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/configs/base.yaml +0 -0
  74. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/constants.py +0 -0
  75. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile +0 -0
  76. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/errors.py +0 -0
  77. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/inspect.py +0 -0
  78. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/io.py +0 -0
  79. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/main.py +0 -0
  80. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/options.py +0 -0
  81. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/fluss.schema.graphql +0 -0
  82. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/gucker.schema.graphql +0 -0
  83. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/kabinet.schema.graphql +0 -0
  84. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/kluster.schema.graphql +0 -0
  85. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/konviktion.schema.graphql +0 -0
  86. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/kuay.schema.graphql +0 -0
  87. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/mikro.schema.graphql +0 -0
  88. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/mikro_next.schema.graphql +0 -0
  89. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/napari.schema.graphql +0 -0
  90. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/omero_ark.schema.graphql +0 -0
  91. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/port.schema.graphql +0 -0
  92. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/rekuest.schema.graphql +0 -0
  93. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql +0 -0
  94. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/schemas/unlok.schema.graphql +0 -0
  95. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/templates/filter.py +0 -0
  96. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/templates/simple.py +0 -0
  97. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/texts.py +0 -0
  98. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/ui.py +0 -0
  99. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/utils.py +0 -0
  100. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/validators.py +0 -0
  101. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/vars.py +0 -0
  102. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/cli/versions/v1.yaml +0 -0
  103. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/constants.py +0 -0
  104. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/model.py +0 -0
  105. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/dark/gear.png +0 -0
  106. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/dark/green pulse.gif +0 -0
  107. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/dark/orange pulse.gif +0 -0
  108. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/dark/pink pulse.gif +0 -0
  109. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/dark/red pulse.gif +0 -0
  110. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/light/gear.png +0 -0
  111. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/light/green pulse.gif +0 -0
  112. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/light/orange pulse.gif +0 -0
  113. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/light/pink pulse.gif +0 -0
  114. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/assets/light/red pulse.gif +0 -0
  115. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/magic_bar.py +0 -0
  116. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/qt/utils.py +0 -0
  117. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/service_registry.py +0 -0
  118. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/tqdm.py +0 -0
  119. {arkitekt_next-0.7.14 → arkitekt_next-0.7.16}/arkitekt_next/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arkitekt-next
3
- Version: 0.7.14
3
+ Version: 0.7.16
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -22,7 +22,6 @@ Requires-Dist: herre (>=0.4.3)
22
22
  Requires-Dist: kabinet (>=0.1.2) ; (python_version >= "3.9" and python_version < "4.0") and (extra == "all")
23
23
  Requires-Dist: koil (>=0.3.6)
24
24
  Requires-Dist: mikro-next (>=0.1.9) ; (python_version >= "3.10" and python_version < "4.0") and (extra == "all")
25
- Requires-Dist: qtpy (>=2.4.1,<3.0.0)
26
25
  Requires-Dist: reaktion-next (>=0.1.53) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all")
27
26
  Requires-Dist: rekuest-next (>=0.2.4) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "cli" or extra == "all")
28
27
  Requires-Dist: rich-click (>=1.6.1) ; extra == "cli" or extra == "all"
@@ -7,14 +7,12 @@ from arkitekt_next.apps.service.fakts_next import (
7
7
  build_arkitekt_next_redeem_fakts_next,
8
8
  )
9
9
  from arkitekt_next.apps.service.herre import build_arkitekt_next_herre
10
- from arkitekt_next.apps.service.fakts_qt import build_arkitekt_next_qt_fakts
11
- from arkitekt_next.apps.service.herre_qt import build_arkitekt_next_qt_herre
12
10
  from .utils import create_arkitekt_next_folder
13
11
  from .model import Manifest
14
12
  from .apps.types import App
15
13
  from .service_registry import ServiceBuilderRegistry, check_and_import_services
16
14
  from arkitekt_next.constants import DEFAULT_ARKITEKT_URL
17
- from qtpy import QtWidgets, QtCore
15
+
18
16
 
19
17
 
20
18
  def easy(
@@ -153,97 +151,3 @@ def easy(
153
151
  return app
154
152
 
155
153
 
156
- def publicqt(
157
- identifier: str,
158
- version: str = "latest",
159
- logo: Optional[str] = None,
160
- scopes: Optional[List[str]] = None,
161
- url: str = "http://localhost:11000",
162
- headless: bool = False,
163
- log_level: str = "ERROR",
164
- token: Optional[str] = None,
165
- no_cache: bool = False,
166
- instance_id: str = "main",
167
- redeem_token: Optional[str] = None,
168
- app_kind: str = "desktop",
169
- registry: Optional[ServiceBuilderRegistry] = None,
170
- parent: Optional[QtWidgets.QWidget] = None,
171
- beacon_widget: Optional[QtWidgets.QWidget] = None,
172
- login_widget: Optional[QtWidgets.QWidget] = None,
173
- settings: Optional[QtCore.QSettings] = None,
174
- **kwargs,
175
- ) -> App:
176
- """Public QtApp creation
177
-
178
- A simple way to create an Arkitekt app with a public grant (allowing users to sign
179
- in with the application ) utlizing a retrieve grant (necessating a previous configuration
180
- of the application on the server side)
181
-
182
- Args:
183
- identifier (str): The apps identifier
184
- version (str, optional): The apps verion. Defaults to "latest".
185
- parent (QtWidget, optional): The QtParent (for the login and server select widget). Defaults to None.
186
-
187
- Returns:
188
- Arkitekt: The Arkitekt app
189
- """
190
-
191
- registry = registry or check_and_import_services()
192
-
193
- manifest = Manifest(
194
- version=version,
195
- identifier=identifier,
196
- scopes=scopes if scopes else ["openid"],
197
- logo=logo,
198
- requirements=registry.get_requirements(),
199
- )
200
-
201
- if redeem_token:
202
- fakts = build_arkitekt_next_redeem_fakts_next(
203
- manifest=manifest,
204
- redeem_token=redeem_token,
205
- url=url,
206
- no_cache=no_cache,
207
- headless=headless,
208
- )
209
- else:
210
- fakts = build_arkitekt_next_qt_fakts(
211
- manifest=manifest,
212
- url=url,
213
- no_cache=no_cache,
214
- client_kind=app_kind,
215
- beacon_widget=beacon_widget,
216
- settings=settings,
217
- )
218
-
219
- herre = build_arkitekt_next_qt_herre(
220
- manifest=manifest,
221
- fakts=fakts,
222
- login_widget=login_widget,
223
- parent=parent,
224
- settings=settings,
225
- )
226
-
227
- params = kwargs
228
-
229
- url = os.getenv("FAKTS_URL", url)
230
- token = os.getenv("FAKTS_TOKEN", token)
231
-
232
- create_arkitekt_next_folder(with_cache=True)
233
-
234
- try:
235
- from rich.logging import RichHandler
236
-
237
- logging.basicConfig(level=log_level, handlers=[RichHandler()])
238
- except ImportError:
239
- logging.basicConfig(level=log_level)
240
-
241
- app = App(
242
- fakts=fakts,
243
- herre=herre,
244
- manifest=manifest,
245
- services=registry.build_service_map(fakts=fakts, herre=herre, params=params),
246
- )
247
-
248
- app.enter()
249
- return app
@@ -75,7 +75,7 @@ def templates(
75
75
  return
76
76
 
77
77
  x = {
78
- key: item.dict()
78
+ key: item.dict(by_alias=True)
79
79
  for key, item in rekuest.agent.extensions[
80
80
  "default"
81
81
  ].definition_registry.templates.items()
@@ -11,6 +11,7 @@ import yaml
11
11
  from typing import Dict, Optional
12
12
  import json
13
13
  from arkitekt_next.utils import create_arkitekt_next_folder
14
+ from rekuest_next.api.schema import TemplateInput
14
15
 
15
16
 
16
17
  class InspectionError(Exception):
@@ -89,7 +90,7 @@ def inspect_docker_container(build_id: str) -> Inspection:
89
90
  raise InspectionError(f"An error occurred: {e.stdout + e.stderr}") from e
90
91
 
91
92
 
92
- def inspect_definitions(build_id: str) -> Inspection:
93
+ def inspect_templates(build_id: str) -> list[TemplateInput]:
93
94
  try:
94
95
  # Run 'docker inspect' with the container ID or name
95
96
  result = subprocess.run(
@@ -113,7 +114,7 @@ def inspect_definitions(build_id: str) -> Inspection:
113
114
  f"Could not decode JSON output of docker inspect. {combined_error}"
114
115
  ) from e
115
116
 
116
- return output
117
+ return list(output.values())
117
118
  except subprocess.CalledProcessError as e:
118
119
  combined_error = e.stdout + e.stderr
119
120
 
@@ -128,9 +129,9 @@ def inspect_definitions(build_id: str) -> Inspection:
128
129
 
129
130
  def inspect_build(build_id: str) -> Inspection:
130
131
  size, size_root_fs = inspect_docker_container(build_id)
131
- definitions = inspect_definitions(build_id)
132
+ templates = inspect_templates(build_id)
132
133
 
133
- return Inspection(size=size, definitions=definitions)
134
+ return Inspection(size=size, templates=templates)
134
135
 
135
136
 
136
137
  def get_flavours(ctx: Context, select: Optional[str] = None) -> Dict[str, Flavour]:
@@ -8,6 +8,8 @@ from rekuest.api.schema import DefinitionInput
8
8
  from string import Formatter
9
9
  import os
10
10
 
11
+ from rekuest_next.api.schema import TemplateInput
12
+
11
13
  ALLOWED_BUILDER_KEYS = [
12
14
  "tag",
13
15
  "dockerfile",
@@ -215,7 +217,7 @@ Selector = Union[
215
217
 
216
218
 
217
219
  class Inspection(BaseModel):
218
- definitions: List[DefinitionInput]
220
+ templates: List[TemplateInput]
219
221
  size: int
220
222
 
221
223
 
@@ -7,3 +7,7 @@ The main component is the MagicBar, which is a widget that can be added
7
7
  to any Qt application. It will then allow the user to configure and connect
8
8
  to ArkitektNext, and configure settings.
9
9
  """
10
+ from .magic_bar import MagicBar
11
+ from .builder import build_arkitekt_next_qt_app
12
+
13
+ __all__ = ["MagicBar", "build_arkitekt_next_qt_app"]
@@ -0,0 +1,111 @@
1
+
2
+ from arkitekt_next.apps.service.fakts_next import (
3
+ build_arkitekt_next_redeem_fakts_next,
4
+ )
5
+ from arkitekt_next.apps.service.fakts_qt import build_arkitekt_next_qt_fakts
6
+ from arkitekt_next.apps.service.herre_qt import build_arkitekt_next_qt_herre
7
+ from arkitekt_next.utils import create_arkitekt_next_folder
8
+ from arkitekt_next.model import Manifest
9
+ from arkitekt_next.apps.types import App
10
+ from arkitekt_next.service_registry import ServiceBuilderRegistry, check_and_import_services
11
+ from arkitekt_next.constants import DEFAULT_ARKITEKT_URL
12
+ from qtpy import QtWidgets, QtCore
13
+ from typing import List, Optional
14
+ import os
15
+ import logging
16
+
17
+
18
+ def publicqt(
19
+ identifier: str,
20
+ version: str = "latest",
21
+ logo: Optional[str] = None,
22
+ scopes: Optional[List[str]] = None,
23
+ url: str = "http://localhost:11000",
24
+ headless: bool = False,
25
+ log_level: str = "ERROR",
26
+ token: Optional[str] = None,
27
+ no_cache: bool = False,
28
+ instance_id: str = "main",
29
+ redeem_token: Optional[str] = None,
30
+ app_kind: str = "desktop",
31
+ registry: Optional[ServiceBuilderRegistry] = None,
32
+ parent: Optional[QtWidgets.QWidget] = None,
33
+ beacon_widget: Optional[QtWidgets.QWidget] = None,
34
+ login_widget: Optional[QtWidgets.QWidget] = None,
35
+ settings: Optional[QtCore.QSettings] = None,
36
+ **kwargs,
37
+ ) -> App:
38
+ """Public QtApp creation
39
+
40
+ A simple way to create an Arkitekt app with a public grant (allowing users to sign
41
+ in with the application ) utlizing a retrieve grant (necessating a previous configuration
42
+ of the application on the server side)
43
+
44
+ Args:
45
+ identifier (str): The apps identifier
46
+ version (str, optional): The apps verion. Defaults to "latest".
47
+ parent (QtWidget, optional): The QtParent (for the login and server select widget). Defaults to None.
48
+
49
+ Returns:
50
+ Arkitekt: The Arkitekt app
51
+ """
52
+
53
+ registry = registry or check_and_import_services()
54
+
55
+ manifest = Manifest(
56
+ version=version,
57
+ identifier=identifier,
58
+ scopes=scopes if scopes else ["openid"],
59
+ logo=logo,
60
+ requirements=registry.get_requirements(),
61
+ )
62
+
63
+ if redeem_token:
64
+ fakts = build_arkitekt_next_redeem_fakts_next(
65
+ manifest=manifest,
66
+ redeem_token=redeem_token,
67
+ url=url,
68
+ no_cache=no_cache,
69
+ headless=headless,
70
+ )
71
+ else:
72
+ fakts = build_arkitekt_next_qt_fakts(
73
+ manifest=manifest,
74
+ url=url,
75
+ no_cache=no_cache,
76
+ client_kind=app_kind,
77
+ beacon_widget=beacon_widget,
78
+ settings=settings,
79
+ )
80
+
81
+ herre = build_arkitekt_next_qt_herre(
82
+ manifest=manifest,
83
+ fakts=fakts,
84
+ login_widget=login_widget,
85
+ parent=parent,
86
+ settings=settings,
87
+ )
88
+
89
+ params = kwargs
90
+
91
+ url = os.getenv("FAKTS_URL", url)
92
+ token = os.getenv("FAKTS_TOKEN", token)
93
+
94
+ create_arkitekt_next_folder(with_cache=True)
95
+
96
+ try:
97
+ from rich.logging import RichHandler
98
+
99
+ logging.basicConfig(level=log_level, handlers=[RichHandler()])
100
+ except ImportError:
101
+ logging.basicConfig(level=log_level)
102
+
103
+ app = App(
104
+ fakts=fakts,
105
+ herre=herre,
106
+ manifest=manifest,
107
+ services=registry.build_service_map(fakts=fakts, herre=herre, params=params),
108
+ )
109
+
110
+ app.enter()
111
+ return app
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "arkitekt-next"
3
- version = "0.7.14"
3
+ version = "0.7.16"
4
4
  description = "client for the arkitekt_next platform"
5
5
  authors = ["jhnnsrs <jhnnsrs@gmail.com>"]
6
6
  license = "MIT"
@@ -22,7 +22,6 @@ turms = { version = ">=0.5.0", python = "^3.9", optional = true }
22
22
  semver = { version = ">=3.0.1", optional = true }
23
23
  dokker = ">=0.1.21"
24
24
  koil = ">=0.3.6"
25
- qtpy = "^2.4.1"
26
25
 
27
26
 
28
27
  [tool.poetry.extras]
File without changes
File without changes