arkitekt-next 0.8.3__tar.gz → 0.8.5__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 (142) hide show
  1. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/PKG-INFO +1 -1
  2. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/builders.py +2 -2
  3. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/publish.py +0 -1
  4. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/service_registry.py +2 -2
  5. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/pyproject.toml +1 -1
  6. arkitekt_next-0.8.3/arkitekt_next/apps/easy.py +0 -107
  7. arkitekt_next-0.8.3/arkitekt_next/apps/next.py +0 -39
  8. arkitekt_next-0.8.3/arkitekt_next/apps/qt.py +0 -103
  9. arkitekt_next-0.8.3/arkitekt_next/apps/service/fakts.py +0 -89
  10. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/LICENSE +0 -0
  11. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/README.md +0 -0
  12. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/__blok__.py +0 -0
  13. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/__init__.py +0 -0
  14. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/apps/__init__.py +0 -0
  15. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/apps/service/__init__.py +0 -0
  16. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/apps/service/fakts_next.py +0 -0
  17. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/apps/service/fakts_qt.py +0 -0
  18. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/apps/service/grant_registry.py +0 -0
  19. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/apps/service/herre.py +0 -0
  20. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/apps/service/herre_qt.py +0 -0
  21. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/apps/types.py +0 -0
  22. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/__init__.py +0 -0
  23. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/admin.py +0 -0
  24. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/arkitekt.py +0 -0
  25. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/base.py +0 -0
  26. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/config.py +0 -0
  27. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/fluss.py +0 -0
  28. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/gateway.py +0 -0
  29. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/internal_docker.py +0 -0
  30. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/kabinet.py +0 -0
  31. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/livekit.py +0 -0
  32. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/lok.py +0 -0
  33. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/mikro.py +0 -0
  34. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/minio.py +0 -0
  35. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/mount.py +0 -0
  36. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/namegen.py +0 -0
  37. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/orkestrator.py +0 -0
  38. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/postgres.py +0 -0
  39. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/redis.py +0 -0
  40. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/rekuest.py +0 -0
  41. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/secret.py +0 -0
  42. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/__init__.py +0 -0
  43. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/admin.py +0 -0
  44. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/config.py +0 -0
  45. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/db.py +0 -0
  46. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/gateway.py +0 -0
  47. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/livekit.py +0 -0
  48. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/lok.py +0 -0
  49. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/mount.py +0 -0
  50. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/name.py +0 -0
  51. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/redis.py +0 -0
  52. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/s3.py +0 -0
  53. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/secret.py +0 -0
  54. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/services/socket.py +0 -0
  55. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/socket.py +0 -0
  56. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/bloks/tailscale.py +0 -0
  57. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/__init__.py +0 -0
  58. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/call/__init__.py +0 -0
  59. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/call/local.py +0 -0
  60. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/call/main.py +0 -0
  61. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/call/remote.py +0 -0
  62. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/gen/__init__.py +0 -0
  63. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/gen/compile.py +0 -0
  64. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/gen/init.py +0 -0
  65. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/gen/main.py +0 -0
  66. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/gen/watch.py +0 -0
  67. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/init/__init__.py +0 -0
  68. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/init/main.py +0 -0
  69. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/inspect/__init__.py +0 -0
  70. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/inspect/main.py +0 -0
  71. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/inspect/requirements.py +0 -0
  72. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/inspect/templates.py +0 -0
  73. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/inspect/variables.py +0 -0
  74. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/__init__.py +0 -0
  75. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/build.py +0 -0
  76. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/init.py +0 -0
  77. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/main.py +0 -0
  78. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/stage.py +0 -0
  79. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/utils.py +0 -0
  80. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/validate.py +0 -0
  81. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/kabinet/wizard.py +0 -0
  82. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/manifest/__init__.py +0 -0
  83. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/manifest/inspect.py +0 -0
  84. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/manifest/main.py +0 -0
  85. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/manifest/scopes.py +0 -0
  86. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/manifest/version.py +0 -0
  87. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/manifest/wizard.py +0 -0
  88. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/run/__init__.py +0 -0
  89. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/run/dev.py +0 -0
  90. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/run/main.py +0 -0
  91. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/run/prod.py +0 -0
  92. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/commands/run/utils.py +0 -0
  93. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/configs/base.yaml +0 -0
  94. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/constants.py +0 -0
  95. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile +0 -0
  96. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/errors.py +0 -0
  97. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/inspect.py +0 -0
  98. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/io.py +0 -0
  99. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/main.py +0 -0
  100. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/options.py +0 -0
  101. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/fluss.schema.graphql +0 -0
  102. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/gucker.schema.graphql +0 -0
  103. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/kabinet.schema.graphql +0 -0
  104. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/kluster.schema.graphql +0 -0
  105. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/konviktion.schema.graphql +0 -0
  106. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/kuay.schema.graphql +0 -0
  107. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/mikro.schema.graphql +0 -0
  108. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/mikro_next.schema.graphql +0 -0
  109. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/napari.schema.graphql +0 -0
  110. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/omero_ark.schema.graphql +0 -0
  111. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/port.schema.graphql +0 -0
  112. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/rekuest.schema.graphql +0 -0
  113. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql +0 -0
  114. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/schemas/unlok.schema.graphql +0 -0
  115. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/templates/filter.py +0 -0
  116. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/templates/simple.py +0 -0
  117. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/texts.py +0 -0
  118. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/types.py +0 -0
  119. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/ui.py +0 -0
  120. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/utils.py +0 -0
  121. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/validators.py +0 -0
  122. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/vars.py +0 -0
  123. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/cli/versions/v1.yaml +0 -0
  124. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/constants.py +0 -0
  125. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/model.py +0 -0
  126. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/__init__.py +0 -0
  127. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/dark/gear.png +0 -0
  128. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/dark/green pulse.gif +0 -0
  129. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/dark/orange pulse.gif +0 -0
  130. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/dark/pink pulse.gif +0 -0
  131. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/dark/red pulse.gif +0 -0
  132. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/light/gear.png +0 -0
  133. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/light/green pulse.gif +0 -0
  134. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/light/orange pulse.gif +0 -0
  135. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/light/pink pulse.gif +0 -0
  136. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/assets/light/red pulse.gif +0 -0
  137. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/builders.py +0 -0
  138. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/magic_bar.py +0 -0
  139. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/types.py +0 -0
  140. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/qt/utils.py +0 -0
  141. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/tqdm.py +0 -0
  142. {arkitekt_next-0.8.3 → arkitekt_next-0.8.5}/arkitekt_next/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arkitekt-next
3
- Version: 0.8.3
3
+ Version: 0.8.5
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -11,7 +11,7 @@ from arkitekt_next.apps.service.herre import build_arkitekt_next_herre
11
11
  from .utils import create_arkitekt_next_folder
12
12
  from .model import Manifest
13
13
  from .apps.types import App
14
- from .service_registry import ServiceBuilderRegistry, check_and_import_services
14
+ from .service_registry import ServiceBuilderRegistry, check_and_import_services, check_and_return_already_imported_services
15
15
  from arkitekt_next.constants import DEFAULT_ARKITEKT_URL
16
16
 
17
17
 
@@ -96,7 +96,7 @@ def easy(
96
96
  NextApp
97
97
  A built app, that can be used to interact with the ArkitektNext server
98
98
  """
99
- registry = registry or check_and_import_services()
99
+ registry = registry or check_and_return_already_imported_services()
100
100
 
101
101
  url = os.getenv("FAKTS_URL", url)
102
102
  token = os.getenv("FAKTS_TOKEN", token)
@@ -87,7 +87,6 @@ def publish(ctx: Context, build: str, tag: str) -> None:
87
87
  deployment_run,
88
88
  build_model,
89
89
  tag,
90
- definitions=[],
91
90
  )
92
91
 
93
92
  md = Panel(
@@ -76,9 +76,9 @@ def check_and_import_services() -> ServiceBuilderRegistry:
76
76
  rekuest_module.init_services(service_builder_registry)
77
77
  logging.info(f"Called init_service function from {module_name}")
78
78
  else:
79
- logging.debug(f"No init_services function in {module_name}.__arkitekt__. Skipping.")
79
+ print(f"No init_services function in {module_name}.__arkitekt__")
80
80
  except Exception as e:
81
- logging.critical(f"Failed to call init_services for {module_name}: {e}")
81
+ print(f"Failed to call init_services for {module_name}: {e}")
82
82
  traceback.print_exc()
83
83
 
84
84
  # Check local modules in the current working directory
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "arkitekt-next"
3
- version = "0.8.3"
3
+ version = "0.8.5"
4
4
  description = "client for the arkitekt_next platform"
5
5
  authors = ["jhnnsrs <jhnnsrs@gmail.com>"]
6
6
  license = "MIT"
@@ -1,107 +0,0 @@
1
- from .types import EasyApp
2
- from typing import Optional, List
3
-
4
-
5
- def build_arkitekt_app(
6
- manifest: Manifest,
7
- url=None,
8
- no_cache=False,
9
- headless=False,
10
- instance_id=None,
11
- token=None,
12
- app_kind="development",
13
- redeem_token=None,
14
- ):
15
- if redeem_token:
16
- fakts = build_arkitekt_next_redeem_fakts_next(
17
- manifest=manifest,
18
- redeem_token=redeem_token,
19
- url=url,
20
- no_cache=no_cache,
21
- headless=headless,
22
- )
23
- else:
24
- fakts = build_arkitekt_next_fakts_next(
25
- manifest=manifest,
26
- url=url,
27
- no_cache=no_cache,
28
- headless=headless,
29
- client_kind=app_kind,
30
- )
31
-
32
- herre = build_arkitekt_next_herre(fakts=fakts)
33
-
34
- try:
35
- from arkitekt_next_next.apps.service.rekuest_next import (
36
- build_arkitekt_next_rekuest_next,
37
- )
38
-
39
- rekuest = build_arkitekt_next_rekuest_next(
40
- fakts=fakts, herre=herre, instance_id=instance_id
41
- )
42
- except ImportError as e:
43
- rekuest = ImportException(import_exception=e, install_library="rekuest_next")
44
-
45
- try:
46
- from arkitekt_next_next.apps.service.mikro_next import (
47
- build_arkitekt_next_mikro_next,
48
- )
49
-
50
- mikro = build_arkitekt_next_mikro_next(fakts=fakts, herre=herre)
51
- except ImportError as e:
52
- raise e
53
- mikro = ImportException(import_exception=e, install_library="mikro_next")
54
-
55
- try:
56
- from arkitekt_next_next.apps.service.fluss_next import build_arkitekt_next_fluss
57
-
58
- fluss = build_arkitekt_next_fluss(herre=herre, fakts=fakts)
59
- except ImportError as e:
60
- raise e
61
- fluss = ImportException(import_exception=e, install_library="fluss_next")
62
-
63
- try:
64
- from arkitekt_next_next.apps.service.unlok_next import (
65
- build_arkitekt_next_unlok_next,
66
- )
67
-
68
- unlok = build_arkitekt_next_unlok_next(herre=herre, fakts=fakts)
69
- except ImportError as e:
70
- raise e
71
- fluss = ImportException(import_exception=e, install_library="fluss_next")
72
-
73
- try:
74
- from arkitekt_next_next.apps.service.omero_ark import (
75
- build_arkitekt_next_omero_ark,
76
- )
77
-
78
- omero_ark = build_arkitekt_next_omero_ark(herre=herre, fakts=fakts)
79
- except ImportError as e:
80
- omero_ark = ImportException(import_exception=e, install_library="omero_ark")
81
-
82
- try:
83
- from arkitekt_next_next.apps.service.kluster import build_arkitekt_next_kluster
84
-
85
- kluster = build_arkitekt_next_kluster(herre=herre, fakts=fakts)
86
- except ImportError as e:
87
- kluster = ImportException(import_exception=e, install_library="kluster")
88
-
89
- try:
90
- from arkitekt_next_next.apps.service.kabinet import build_arkitekt_next_kabinet
91
-
92
- kabinet = build_arkitekt_next_kabinet(herre=herre, fakts=fakts)
93
- except ImportError as e:
94
- kabinet = ImportException(import_exception=e, install_library="kluster")
95
-
96
- return NextApp(
97
- manifest=manifest,
98
- fakts=fakts,
99
- herre=herre,
100
- rekuest=rekuest,
101
- mikro=mikro,
102
- kabinet=kabinet,
103
- unlok=unlok,
104
- fluss=fluss,
105
- kluster=kluster,
106
- omero_ark=omero_ark,
107
- )
@@ -1,39 +0,0 @@
1
- from arkitekt_next_next.apps.fallbacks import ImportException
2
- from arkitekt_next_next.apps.service.fakts_next import (
3
- build_arkitekt_next_fakts_next,
4
- build_arkitekt_next_redeem_fakts_next,
5
- )
6
- from arkitekt_next_next.apps.service.herre import build_arkitekt_next_herre
7
- from arkitekt_next_next.model import Manifest
8
-
9
- from .types import NextApp
10
-
11
-
12
- def build_next_app(
13
- manifest: Manifest,
14
- url=None,
15
- no_cache=False,
16
- headless=False,
17
- instance_id=None,
18
- token=None,
19
- app_kind="development",
20
- redeem_token=None,
21
- ):
22
- if redeem_token:
23
- fakts = build_arkitekt_next_redeem_fakts_next(
24
- manifest=manifest,
25
- redeem_token=redeem_token,
26
- url=url,
27
- no_cache=no_cache,
28
- headless=headless,
29
- )
30
- else:
31
- fakts = build_arkitekt_next_fakts_next(
32
- manifest=manifest,
33
- url=url,
34
- no_cache=no_cache,
35
- headless=headless,
36
- client_kind=app_kind,
37
- )
38
-
39
- herre = build_arkitekt_next_herre(fakts=fakts)
@@ -1,103 +0,0 @@
1
- from arkitekt_next_next.model import Manifest
2
- from arkitekt_next_next.apps.types import QtApp
3
- from arkitekt_next_next.apps.fallbacks import ImportException, InstallModuleException
4
- from typing import Any, Optional
5
-
6
-
7
- def build_arkitekt_next_qt_app(
8
- manifest: Manifest,
9
- no_cache: bool = False,
10
- instance_id: Optional[str] = None,
11
- beacon_widget: Any = None,
12
- login_widget: Any = None,
13
- parent: Any = None,
14
- settings: Any = None,
15
- ):
16
- try:
17
- from koil.composition.qt import QtPedanticKoil
18
- from qtpy import QtCore
19
-
20
- settings = settings or QtCore.QSettings()
21
- except ImportError as e:
22
- raise InstallModuleException(
23
- "Please install qtpy to use arkitekt_next_qt"
24
- ) from e
25
-
26
- try:
27
- from arkitekt_next_next.apps.service.fakts_qt import (
28
- build_arkitekt_next_qt_fakts,
29
- )
30
-
31
- fakts = build_arkitekt_next_qt_fakts(
32
- manifest=manifest,
33
- no_cache=no_cache,
34
- beacon_widget=beacon_widget,
35
- parent=parent,
36
- settings=settings,
37
- )
38
- except ImportError as e:
39
- fakts = ImportException(import_exception=e, install_library="qtpy")
40
-
41
- try:
42
- from arkitekt_next_next.apps.service.herre_qt import (
43
- build_arkitekt_next_qt_herre,
44
- )
45
-
46
- herre = build_arkitekt_next_qt_herre(
47
- manifest=manifest,
48
- fakts=fakts,
49
- login_widget=login_widget,
50
- parent=parent,
51
- settings=settings,
52
- )
53
- except ImportError as e:
54
- herre = ImportException(import_exception=e, install_library="qtpy")
55
-
56
- try:
57
- from arkitekt_next_next.apps.service.rekuest import build_arkitekt_next_rekuest
58
-
59
- rekuest = build_arkitekt_next_rekuest(
60
- fakts=fakts, herre=herre, instance_id=instance_id or "main"
61
- )
62
- except ImportError as e:
63
- rekuest = ImportException(import_exception=e, install_library="rekuest")
64
-
65
- try:
66
- from arkitekt_next_next.apps.service.mikro import build_arkitekt_next_mikro
67
-
68
- mikro = build_arkitekt_next_mikro(fakts=fakts, herre=herre)
69
- except ImportError as e:
70
- mikro = ImportException(import_exception=e, install_library="mikro")
71
-
72
- try:
73
- from arkitekt_next_next.apps.service.unlok import build_arkitekt_next_unlok
74
-
75
- unlok = build_arkitekt_next_unlok(herre=herre, fakts=fakts)
76
- except ImportError as e:
77
- unlok = ImportException(import_exception=e, install_library="unlok")
78
-
79
- try:
80
- from arkitekt_next_next.apps.service.fluss import build_arkitekt_next_fluss
81
-
82
- fluss = build_arkitekt_next_fluss(herre=herre, fakts=fakts)
83
- except ImportError as e:
84
- fluss = ImportException(import_exception=e, install_library="fluss")
85
-
86
- try:
87
- from arkitekt_next_next.apps.service.kluster import build_arkitekt_next_kluster
88
-
89
- kluster = build_arkitekt_next_kluster(herre=herre, fakts=fakts)
90
- except ImportError as e:
91
- kluster = ImportException(import_exception=e, install_library="kluster")
92
-
93
- return QtApp(
94
- koil=QtPedanticKoil(parent=parent),
95
- manifest=manifest,
96
- fakts=fakts,
97
- herre=herre,
98
- rekuest=rekuest,
99
- mikro=mikro,
100
- unlok=unlok,
101
- fluss=fluss,
102
- kluster=kluster,
103
- )
@@ -1,89 +0,0 @@
1
- from fakts.fakts import Fakts
2
- from fakts.fakts import Fakts
3
- from typing import Optional
4
- from fakts.grants.remote.discovery.well_known import WellKnownDiscovery
5
- from fakts.grants.remote import RemoteGrant
6
- from fakts.grants.remote.demanders.auto_save import AutoSaveDemander
7
- from fakts.grants.remote.demanders.cache import CacheTokenStore
8
- from fakts.grants.remote.demanders.static import StaticDemander
9
- from fakts.grants.remote.demanders.device_code import DeviceCodeDemander
10
- from fakts.grants.remote.claimers.post import ClaimEndpointClaimer
11
- from fakts.grants.remote.demanders.redeem import RedeemDemander
12
- from arkitekt_next_next.model import Manifest
13
-
14
-
15
- class ArkitektNextFaktsQt(Fakts):
16
- grant: RemoteGrant
17
-
18
-
19
- class ArkitektNextFakts(Fakts):
20
- pass
21
-
22
-
23
- def build_arkitekt_next_fakts(
24
- manifest: Manifest,
25
- url: Optional[str] = None,
26
- no_cache: bool = False,
27
- headless: bool = False,
28
- ) -> ArkitektNextFakts:
29
- identifier = manifest.identifier
30
- version = manifest.version
31
-
32
- if no_cache:
33
- demander = DeviceCodeDemander(
34
- manifest=manifest,
35
- redirect_uri="http://127.0.0.1:6767",
36
- open_browser=not headless,
37
- )
38
-
39
- else:
40
- demander = AutoSaveDemander(
41
- demander=DeviceCodeDemander(
42
- manifest=manifest,
43
- redirect_uri="http://127.0.0.1:6767",
44
- open_browser=not headless,
45
- ),
46
- store=CacheTokenStore(
47
- cache_file=f".arkitekt_next/cache/{identifier}-{version}_fakts_cache.json"
48
- ),
49
- )
50
-
51
- return ArkitektNextFakts(
52
- grant=RemoteGrant(
53
- demander=demander,
54
- discovery=WellKnownDiscovery(url=url, auto_protocols=["https", "http"]),
55
- claimer=ClaimEndpointClaimer(),
56
- )
57
- )
58
-
59
-
60
- def build_arkitekt_next_token_fakts(
61
- manifest: Manifest,
62
- token: str,
63
- url,
64
- no_cache: Optional[bool] = False,
65
- headless=False,
66
- ):
67
- return ArkitektNextFakts(
68
- grant=RemoteGrant(
69
- demander=StaticDemander(token=token),
70
- discovery=WellKnownDiscovery(url=url, auto_protocols=["https", "http"]),
71
- claimer=ClaimEndpointClaimer(),
72
- )
73
- )
74
-
75
-
76
- def build_arkitekt_next_redeem_fakts(
77
- manifest: Manifest,
78
- redeem_token: str,
79
- url,
80
- no_cache: Optional[bool] = False,
81
- headless=False,
82
- ):
83
- return ArkitektNextFakts(
84
- grant=RemoteGrant(
85
- demander=RedeemDemander(token=redeem_token, manifest=manifest),
86
- discovery=WellKnownDiscovery(url=url, auto_protocols=["https", "http"]),
87
- claimer=ClaimEndpointClaimer(),
88
- )
89
- )
File without changes
File without changes