arkitekt-next 0.16.0__tar.gz → 0.18.0__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 (148) hide show
  1. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/PKG-INFO +8 -8
  2. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/app/fakts.py +32 -1
  3. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/builders.py +3 -0
  4. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/call/local.py +1 -1
  5. arkitekt_next-0.18.0/arkitekt_next/cli/commands/call/main.py +28 -0
  6. arkitekt_next-0.18.0/arkitekt_next/cli/templates/filter.py +26 -0
  7. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/templates/simple.py +4 -1
  8. arkitekt_next-0.18.0/arkitekt_next/py.typed +0 -0
  9. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/pyproject.toml +14 -10
  10. arkitekt_next-0.16.0/arkitekt_next/__blok__.py +0 -58
  11. arkitekt_next-0.16.0/arkitekt_next/bloks/__init__.py +0 -1
  12. arkitekt_next-0.16.0/arkitekt_next/bloks/admin.py +0 -43
  13. arkitekt_next-0.16.0/arkitekt_next/bloks/alpaka.py +0 -139
  14. arkitekt_next-0.16.0/arkitekt_next/bloks/arkitekt.py +0 -55
  15. arkitekt_next-0.16.0/arkitekt_next/bloks/base.py +0 -217
  16. arkitekt_next-0.16.0/arkitekt_next/bloks/channel.py +0 -27
  17. arkitekt_next-0.16.0/arkitekt_next/bloks/config.py +0 -43
  18. arkitekt_next-0.16.0/arkitekt_next/bloks/elektro.py +0 -42
  19. arkitekt_next-0.16.0/arkitekt_next/bloks/fluss.py +0 -33
  20. arkitekt_next-0.16.0/arkitekt_next/bloks/gateway.py +0 -224
  21. arkitekt_next-0.16.0/arkitekt_next/bloks/internal_docker.py +0 -90
  22. arkitekt_next-0.16.0/arkitekt_next/bloks/kabinet.py +0 -46
  23. arkitekt_next-0.16.0/arkitekt_next/bloks/kraph.py +0 -45
  24. arkitekt_next-0.16.0/arkitekt_next/bloks/livekit.py +0 -85
  25. arkitekt_next-0.16.0/arkitekt_next/bloks/lok.py +0 -415
  26. arkitekt_next-0.16.0/arkitekt_next/bloks/lovekit.py +0 -202
  27. arkitekt_next-0.16.0/arkitekt_next/bloks/mikro.py +0 -42
  28. arkitekt_next-0.16.0/arkitekt_next/bloks/minio.py +0 -178
  29. arkitekt_next-0.16.0/arkitekt_next/bloks/mount.py +0 -34
  30. arkitekt_next-0.16.0/arkitekt_next/bloks/namegen.py +0 -34
  31. arkitekt_next-0.16.0/arkitekt_next/bloks/ollama.py +0 -90
  32. arkitekt_next-0.16.0/arkitekt_next/bloks/orkestrator.py +0 -122
  33. arkitekt_next-0.16.0/arkitekt_next/bloks/postgres.py +0 -134
  34. arkitekt_next-0.16.0/arkitekt_next/bloks/redis.py +0 -79
  35. arkitekt_next-0.16.0/arkitekt_next/bloks/rekuest.py +0 -30
  36. arkitekt_next-0.16.0/arkitekt_next/bloks/secret.py +0 -32
  37. arkitekt_next-0.16.0/arkitekt_next/bloks/self_signed.py +0 -91
  38. arkitekt_next-0.16.0/arkitekt_next/bloks/services/__init__.py +0 -27
  39. arkitekt_next-0.16.0/arkitekt_next/bloks/services/admin.py +0 -21
  40. arkitekt_next-0.16.0/arkitekt_next/bloks/services/certer.py +0 -14
  41. arkitekt_next-0.16.0/arkitekt_next/bloks/services/channel.py +0 -12
  42. arkitekt_next-0.16.0/arkitekt_next/bloks/services/config.py +0 -13
  43. arkitekt_next-0.16.0/arkitekt_next/bloks/services/db.py +0 -23
  44. arkitekt_next-0.16.0/arkitekt_next/bloks/services/gateway.py +0 -39
  45. arkitekt_next-0.16.0/arkitekt_next/bloks/services/livekit.py +0 -20
  46. arkitekt_next-0.16.0/arkitekt_next/bloks/services/lok.py +0 -24
  47. arkitekt_next-0.16.0/arkitekt_next/bloks/services/mount.py +0 -9
  48. arkitekt_next-0.16.0/arkitekt_next/bloks/services/name.py +0 -11
  49. arkitekt_next-0.16.0/arkitekt_next/bloks/services/ollama.py +0 -21
  50. arkitekt_next-0.16.0/arkitekt_next/bloks/services/redis.py +0 -19
  51. arkitekt_next-0.16.0/arkitekt_next/bloks/services/s3.py +0 -21
  52. arkitekt_next-0.16.0/arkitekt_next/bloks/services/secret.py +0 -16
  53. arkitekt_next-0.16.0/arkitekt_next/bloks/services/socket.py +0 -13
  54. arkitekt_next-0.16.0/arkitekt_next/bloks/socket.py +0 -40
  55. arkitekt_next-0.16.0/arkitekt_next/bloks/tailscale.py +0 -90
  56. arkitekt_next-0.16.0/arkitekt_next/cli/commands/call/main.py +0 -21
  57. arkitekt_next-0.16.0/arkitekt_next/cli/templates/filter.py +0 -26
  58. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/.gitignore +0 -0
  59. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/LICENSE +0 -0
  60. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/README.md +0 -0
  61. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/__init__.py +0 -0
  62. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/app/__init__.py +0 -0
  63. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/app/app.py +0 -0
  64. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/__init__.py +0 -0
  65. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/call/__init__.py +0 -0
  66. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/call/remote.py +0 -0
  67. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/gen/__init__.py +0 -0
  68. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/gen/compile.py +0 -0
  69. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/gen/init.py +0 -0
  70. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/gen/main.py +0 -0
  71. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/gen/watch.py +0 -0
  72. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/init/__init__.py +0 -0
  73. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/init/main.py +0 -0
  74. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/inspect/__init__.py +0 -0
  75. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/inspect/implementations.py +0 -0
  76. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/inspect/main.py +0 -0
  77. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/inspect/requirements.py +0 -0
  78. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/inspect/variables.py +0 -0
  79. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/__init__.py +0 -0
  80. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/build.py +0 -0
  81. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/init.py +0 -0
  82. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/io.py +0 -0
  83. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/main.py +0 -0
  84. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/publish.py +0 -0
  85. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/stage.py +0 -0
  86. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/types.py +0 -0
  87. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/utils.py +0 -0
  88. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/kabinet/validate.py +0 -0
  89. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/manifest/__init__.py +0 -0
  90. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/manifest/inspect.py +0 -0
  91. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/manifest/main.py +0 -0
  92. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/manifest/scopes.py +0 -0
  93. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/manifest/version.py +0 -0
  94. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/run/__init__.py +0 -0
  95. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/run/dev.py +0 -0
  96. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/run/main.py +0 -0
  97. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/run/prod.py +0 -0
  98. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/commands/run/utils.py +0 -0
  99. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/constants.py +0 -0
  100. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile +0 -0
  101. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/errors.py +0 -0
  102. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/inspect.py +0 -0
  103. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/io.py +0 -0
  104. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/main.py +0 -0
  105. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/options.py +0 -0
  106. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/fluss.schema.graphql +0 -0
  107. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/gucker.schema.graphql +0 -0
  108. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/kabinet.schema.graphql +0 -0
  109. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/kluster.schema.graphql +0 -0
  110. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/konviktion.schema.graphql +0 -0
  111. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/kuay.schema.graphql +0 -0
  112. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/mikro.schema.graphql +0 -0
  113. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/mikro_next.schema.graphql +0 -0
  114. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/napari.schema.graphql +0 -0
  115. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/omero_ark.schema.graphql +0 -0
  116. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/port.schema.graphql +0 -0
  117. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/rekuest.schema.graphql +0 -0
  118. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql +0 -0
  119. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/schemas/unlok.schema.graphql +0 -0
  120. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/texts.py +0 -0
  121. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/types.py +0 -0
  122. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/ui.py +0 -0
  123. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/utils.py +0 -0
  124. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/validators.py +0 -0
  125. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/vars.py +0 -0
  126. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/cli/versions/v1.yaml +0 -0
  127. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/constants.py +0 -0
  128. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/init_registry.py +0 -0
  129. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/inspect.py +0 -0
  130. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/protocols.py +0 -0
  131. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/__init__.py +0 -0
  132. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/dark/gear.png +0 -0
  133. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/dark/green pulse.gif +0 -0
  134. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/dark/orange pulse.gif +0 -0
  135. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/dark/pink pulse.gif +0 -0
  136. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/dark/red pulse.gif +0 -0
  137. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/light/gear.png +0 -0
  138. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/light/green pulse.gif +0 -0
  139. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/light/orange pulse.gif +0 -0
  140. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/light/pink pulse.gif +0 -0
  141. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/assets/light/red pulse.gif +0 -0
  142. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/builders.py +0 -0
  143. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/magic_bar.py +0 -0
  144. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/types.py +0 -0
  145. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/qt/utils.py +0 -0
  146. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/service_registry.py +0 -0
  147. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/tqdm.py +0 -0
  148. {arkitekt_next-0.16.0 → arkitekt_next-0.18.0}/arkitekt_next/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arkitekt-next
3
- Version: 0.16.0
3
+ Version: 0.18.0
4
4
  Summary: client for the arkitekt_next platform
5
5
  Author-email: jhnnsrs <jhnnsrs@gmail.com>
6
6
  License-Expression: MIT
@@ -8,18 +8,18 @@ License-File: LICENSE
8
8
  Requires-Python: <4,>=3.11
9
9
  Requires-Dist: click>=8.2.0
10
10
  Requires-Dist: dokker>=2.1.2
11
- Requires-Dist: fakts-next>=2
12
- Requires-Dist: kabinet>=0.5
11
+ Requires-Dist: fakts-next>=2.1
12
+ Requires-Dist: kabinet>=0.6
13
13
  Requires-Dist: koil>=2.0.4
14
14
  Requires-Dist: rath>=3.4
15
- Requires-Dist: rekuest-next>=0.11.1
15
+ Requires-Dist: rekuest-next>=0.13
16
16
  Requires-Dist: rich-click>=1.8.8
17
17
  Requires-Dist: semver>=3.0.4
18
18
  Requires-Dist: watchfiles>=1.0.5
19
19
  Provides-Extra: all
20
20
  Requires-Dist: fluss-next>=0.2.0; extra == 'all'
21
- Requires-Dist: kabinet>=0.2.0; extra == 'all'
22
- Requires-Dist: mikro-next>=0.6; extra == 'all'
21
+ Requires-Dist: kabinet>=0.6.0; extra == 'all'
22
+ Requires-Dist: mikro-next>=0.7.2; extra == 'all'
23
23
  Requires-Dist: reaktion-next>=0.2.0; extra == 'all'
24
24
  Requires-Dist: rekuest-next>=0.7; extra == 'all'
25
25
  Requires-Dist: rich-click>=1.6.1; extra == 'all'
@@ -41,13 +41,13 @@ Requires-Dist: kraph>=0.2.0; extra == 'extended'
41
41
  Provides-Extra: fluss
42
42
  Requires-Dist: fluss-next>=0.2.0; extra == 'fluss'
43
43
  Provides-Extra: kabinet
44
- Requires-Dist: kabinet>=0.4.0; extra == 'kabinet'
44
+ Requires-Dist: kabinet>=0.6.0; extra == 'kabinet'
45
45
  Provides-Extra: kraph
46
46
  Requires-Dist: kraph>=0.2.0; extra == 'kraph'
47
47
  Provides-Extra: lovekit
48
48
  Requires-Dist: lovekit>=0.2.0; extra == 'lovekit'
49
49
  Provides-Extra: mikro
50
- Requires-Dist: mikro-next>=0.6.0; extra == 'mikro'
50
+ Requires-Dist: mikro-next>=0.7.2; extra == 'mikro'
51
51
  Provides-Extra: reaktion
52
52
  Requires-Dist: reaktion-next>=0.2.0; extra == 'reaktion'
53
53
  Provides-Extra: unlok
@@ -7,6 +7,9 @@ from fakts_next.grants.remote.demanders.static import StaticDemander
7
7
  from fakts_next.grants.remote.demanders.device_code import (
8
8
  ClientKind,
9
9
  DeviceCodeDemander,
10
+ DeviceCodeHook,
11
+ display_in_terminal,
12
+
10
13
  )
11
14
  from fakts_next.grants.remote.claimers.post import ClaimEndpointClaimer
12
15
  from fakts_next.grants.remote.demanders.redeem import RedeemDemander
@@ -19,7 +22,17 @@ def build_device_code_fakts(
19
22
  url: Optional[str] = None,
20
23
  no_cache: bool = False,
21
24
  headless: bool = False,
25
+ device_code_hook: Optional[DeviceCodeHook] = None,
22
26
  ) -> Fakts:
27
+ """ Builds a Fakts instance for device code authentication.
28
+
29
+ This is used when the user wants to authenticate an application
30
+ using a device code. The user will be prompted to open a browser
31
+ and enter a code to authenticate the application.
32
+
33
+
34
+
35
+ """
23
36
  identifier = manifest.identifier
24
37
  version = manifest.version
25
38
  if url is None:
@@ -29,6 +42,7 @@ def build_device_code_fakts(
29
42
  manifest=manifest,
30
43
  open_browser=not headless,
31
44
  requested_client_kind=ClientKind.DEVELOPMENT,
45
+ device_code_hook=device_code_hook if device_code_hook else display_in_terminal,
32
46
  )
33
47
 
34
48
  return Fakts(
@@ -46,6 +60,15 @@ def build_device_code_fakts(
46
60
 
47
61
 
48
62
  def build_redeem_fakts(manifest: Manifest, redeem_token: str, url: str) -> Fakts:
63
+ """ Builds a Fakts instance for redeeming a token.
64
+
65
+ A redeem token is used to register an application with the
66
+ fakts server, and to claim the configuration for the application.
67
+
68
+ Instead of using a device code, the user can redeem an application
69
+ without user interaction.
70
+
71
+ """
49
72
  identifier = manifest.identifier
50
73
  version = manifest.version
51
74
 
@@ -67,7 +90,15 @@ def build_token_fakts(
67
90
  manifest: Manifest,
68
91
  token: str,
69
92
  url: str,
70
- ):
93
+ ) -> Fakts:
94
+ """ Builds a Fakts instance for token-based authentication.
95
+
96
+ This is used when an appllication was previously authenticated
97
+ and the user has a (claim) token to use for authentication.
98
+
99
+ E.g. when deploying an application through the kabinet deployer
100
+
101
+ """
71
102
  identifier = manifest.identifier
72
103
  version = manifest.version
73
104
 
@@ -9,6 +9,7 @@ from arkitekt_next.app.fakts import (
9
9
  )
10
10
  from .utils import create_arkitekt_next_folder
11
11
  from fakts_next.models import Manifest
12
+ from fakts_next.grants.remote.demanders.device_code import DeviceCodeHook
12
13
  from .app import App
13
14
  from .service_registry import ServiceBuilderRegistry, get_default_service_registry
14
15
  from .init_registry import InitHookRegistry, get_default_init_hook_registry
@@ -29,6 +30,7 @@ def easy(
29
30
  service_registry: Optional[ServiceBuilderRegistry] = None,
30
31
  init_hook_registry: Optional[InitHookRegistry] = None,
31
32
  instance_id: str = "main",
33
+ device_code_hook: DeviceCodeHook | None = None,
32
34
  ) -> App:
33
35
  """Creates a next app
34
36
 
@@ -132,6 +134,7 @@ def easy(
132
134
  url=url,
133
135
  no_cache=no_cache,
134
136
  headless=headless,
137
+ device_code_hook=device_code_hook,
135
138
  )
136
139
 
137
140
  params = {
@@ -1,4 +1,4 @@
1
-
1
+ """ Calls a function in a local app, without needing to use rekuest or fakts."""
2
2
  from click import Context
3
3
  import rich_click as click
4
4
  from arkitekt_next.cli.options import *
@@ -0,0 +1,28 @@
1
+ """ Calling functions in your arkitekt_next app"""
2
+
3
+ from click import Context
4
+ import rich_click as click
5
+
6
+
7
+ from .remote import remote
8
+
9
+
10
+ @click.group()
11
+ @click.pass_context
12
+ def call(ctx: Context) -> None:
13
+ """Call functions in your arkitekt_next app.
14
+
15
+ This command allows you to call functions in your app
16
+ either locally or remotely.
17
+
18
+ Locally, you can call functions that are defined in your app
19
+ without needing to use rekuest or fakts. (No Server for assignment needed)
20
+
21
+ Remotely, you can call functions that are defined in your app
22
+ using rekuest or fakts. This goes through a rekuest server to
23
+ remote call the function.
24
+
25
+ """
26
+
27
+
28
+ call.add_command(remote, "remote")
@@ -0,0 +1,26 @@
1
+ from arkitekt_next import register
2
+ from mikro_next.api.schema import Image, from_array_like, PartialDerivedViewInput
3
+
4
+
5
+ @register
6
+ def max_intensity_projection(image: Image) -> Image:
7
+ """Z-Project the Maximum Intensity
8
+
9
+ This function projects the maximum intensity of the input image
10
+ along the z-axis
11
+
12
+ Parameters
13
+ ----------
14
+ image : Image
15
+ The input image
16
+
17
+ Returns
18
+ -------
19
+ Image
20
+ The projected image
21
+
22
+ """
23
+ image_data = image.data.max(dim="z")
24
+ return from_array_like(
25
+ image_data, name="Max Intensity Projection" + image.name, derived_views=[PartialDerivedViewInput(originImage=image)]
26
+ )
@@ -1,9 +1,12 @@
1
+ """ An example of a simple template for Arkitekt Next"""
2
+
1
3
  from arkitekt_next import register
2
4
  import time
5
+ from typing import Generator
3
6
 
4
7
 
5
8
  @register
6
- def generate_n_string(n: int = 10, timeout: int = 2) -> str:
9
+ def generate_n_string(n: int = 10, timeout: int = 2) -> Generator[str, None, None]:
7
10
  """Generate N Strings
8
11
 
9
12
  This function generates {{n}} strings with a {{timeout}} ms timeout between each string
File without changes
@@ -1,19 +1,19 @@
1
1
  [project]
2
2
  name = "arkitekt-next"
3
- version = "0.16.0"
3
+ version = "0.18.0"
4
4
  description = "client for the arkitekt_next platform"
5
5
  authors = [{ name = "jhnnsrs", email = "jhnnsrs@gmail.com" }]
6
6
  requires-python = ">=3.11,<4"
7
7
  readme = "README.md"
8
8
  license = "MIT"
9
9
  dependencies = [
10
- "fakts-next>=2",
10
+ "fakts-next>=2.1",
11
11
  "dokker>=2.1.2",
12
12
  "koil>=2.0.4",
13
13
  "rath>=3.4",
14
14
  "click>=8.2.0",
15
- "rekuest-next>=0.11.1",
16
- "kabinet>=0.5",
15
+ "rekuest-next>=0.13",
16
+ "kabinet>=0.6",
17
17
  "semver>=3.0.4",
18
18
  "rich-click>=1.8.8",
19
19
  "watchfiles>=1.0.5",
@@ -25,8 +25,8 @@ cli = [
25
25
  ]
26
26
  alpaka = ["alpaka>=0.2.0"]
27
27
  kraph = ["kraph>=0.2.0"]
28
- mikro = ["mikro-next>=0.6.0"]
29
- kabinet = ["kabinet>=0.4.0"]
28
+ mikro = ["mikro-next>=0.7.2"]
29
+ kabinet = ["kabinet>=0.6.0"]
30
30
  elektro = ["elektro>=0.5.0"]
31
31
  fluss = ["fluss-next>=0.2.0"]
32
32
  reaktion = ["reaktion-next>=0.2.0"]
@@ -39,8 +39,8 @@ all = [
39
39
  "semver>=3.0.1",
40
40
  "reaktion-next>=0.2.0",
41
41
  "rekuest-next>=0.7",
42
- "mikro-next>=0.6",
43
- "kabinet>=0.2.0",
42
+ "mikro-next>=0.7.2",
43
+ "kabinet>=0.6.0",
44
44
  "fluss-next>=0.2.0",
45
45
  "unlok-next>=1.1.1",
46
46
  ]
@@ -58,13 +58,17 @@ arkitekt-next = "arkitekt_next.cli.main:cli"
58
58
  [tool.uv]
59
59
  dev-dependencies = [
60
60
  "autoflake>=1.7.7,<2",
61
- "pytest>=7.2.0,<8",
61
+ "pytest>=8.3.0,<9",
62
62
  "pytest-asyncio>=0.20.2,<0.21",
63
63
  "pytest-cov>=4.0.0,<5",
64
64
  "pytest-aiohttp>=1.0.4,<2",
65
65
  "rich-click>=1.8",
66
- "mikro-next>=0.3.1",
66
+ "mikro-next>=0.7.2",
67
67
  "python-semantic-release>=9.21.1",
68
+ "qtpy>=2.4.3",
69
+ "arkitekt-server>=1.3",
70
+ "dokker>=2.2",
71
+ "numpy>=1,<2",
68
72
  ]
69
73
 
70
74
  [tool.hatch.build.targets.sdist]
@@ -1,58 +0,0 @@
1
- from arkitekt_next.bloks.admin import AdminBlok
2
- from arkitekt_next.bloks.arkitekt import ArkitektBlok
3
- from arkitekt_next.bloks.mikro import MikroBlok
4
- from arkitekt_next.bloks.fluss import FlussBlok
5
- from arkitekt_next.bloks.orkestrator import OrkestratorBlok
6
- from arkitekt_next.bloks.redis import RedisBlok
7
- from arkitekt_next.bloks.gateway import CaddyBlok
8
- from arkitekt_next.bloks.livekit import LocalLiveKitBlok
9
- from arkitekt_next.bloks.postgres import PostgresBlok
10
- from arkitekt_next.bloks.minio import MinioBlok
11
- from arkitekt_next.bloks.kabinet import KabinetBlok
12
- from arkitekt_next.bloks.lok import LokBlok
13
- from arkitekt_next.bloks.alpaka import AlpakaBlok
14
- from arkitekt_next.bloks.lovekit import LovekitBlok
15
- from arkitekt_next.bloks.config import ConfigBlok
16
- from arkitekt_next.bloks.mount import MountBlok
17
- from arkitekt_next.bloks.internal_docker import InternalDockerBlok
18
- from arkitekt_next.bloks.socket import DockerSocketBlok
19
- from arkitekt_next.bloks.rekuest import RekuestBlok
20
- from arkitekt_next.bloks.tailscale import TailscaleBlok
21
- from arkitekt_next.bloks.secret import SecretBlok
22
- from arkitekt_next.bloks.namegen import PreformedNamesBlok
23
- from arkitekt_next.bloks.ollama import OllamaBlok
24
- from arkitekt_next.bloks.self_signed import SelfSignedBlok
25
- from arkitekt_next.bloks.kraph import KraphBlok
26
- from arkitekt_next.bloks.elektro import ElektroBlok
27
- from blok.blok import Blok
28
-
29
-
30
- def get_bloks() -> list[Blok]:
31
- return [
32
- AdminBlok(),
33
- ArkitektBlok(),
34
- MikroBlok(),
35
- FlussBlok(),
36
- RedisBlok(),
37
- CaddyBlok(),
38
- AlpakaBlok(),
39
- LovekitBlok(),
40
- LocalLiveKitBlok(),
41
- PostgresBlok(),
42
- MinioBlok(),
43
- OllamaBlok(),
44
- LokBlok(),
45
- SelfSignedBlok(),
46
- KabinetBlok(),
47
- MountBlok(),
48
- ConfigBlok(),
49
- KraphBlok(),
50
- InternalDockerBlok(),
51
- DockerSocketBlok(),
52
- RekuestBlok(),
53
- TailscaleBlok(),
54
- SecretBlok(),
55
- PreformedNamesBlok(),
56
- OrkestratorBlok(),
57
- ElektroBlok(),
58
- ]
@@ -1 +0,0 @@
1
- from .admin import AdminBlok
@@ -1,43 +0,0 @@
1
- from blok import blok, InitContext, Option
2
- from arkitekt_next.bloks.services.admin import AdminService, AdminCredentials
3
-
4
-
5
- @blok(AdminService, description="Admin credentials for the application")
6
- class AdminBlok:
7
- def __init__(self) -> None:
8
- self.password = "admin"
9
- self.username = "admin"
10
- self.email = "admin@admin.com"
11
-
12
- def preflight(self, init: InitContext):
13
- for key, value in init.kwargs.items():
14
- setattr(self, key, value)
15
-
16
- def retrieve(self):
17
- return AdminCredentials(
18
- password=self.password,
19
- username=self.username,
20
- email=self.email,
21
- )
22
-
23
- def get_options(self):
24
- with_username = Option(
25
- subcommand="username",
26
- help="Which admin username to use",
27
- default=self.username,
28
- show_default=True,
29
- )
30
- with_username = Option(
31
- subcommand="password",
32
- help="Which password to use",
33
- default=self.password,
34
- show_default=True,
35
- )
36
- with_email = Option(
37
- subcommand="password",
38
- help="Which password to use",
39
- default=self.password,
40
- show_default=True,
41
- )
42
-
43
- return [with_username, with_username, with_email]
@@ -1,139 +0,0 @@
1
- from dataclasses import asdict
2
- from typing import Dict, Any
3
- import secrets
4
-
5
-
6
- from arkitekt_next.bloks.services.admin import AdminService
7
- from arkitekt_next.bloks.services.channel import ChannelService
8
- from arkitekt_next.bloks.services.config import ConfigService
9
- from arkitekt_next.bloks.services.db import DBService
10
- from arkitekt_next.bloks.services.gateway import GatewayService
11
- from arkitekt_next.bloks.services.lok import LokService
12
- from arkitekt_next.bloks.services.mount import MountService
13
- from arkitekt_next.bloks.services.ollama import OllamaService
14
- from arkitekt_next.bloks.services.redis import RedisService
15
- from arkitekt_next.bloks.services.s3 import S3Service
16
- from arkitekt_next.bloks.services.secret import SecretService
17
- from blok import blok, InitContext, ExecutionContext, Option
18
- from blok.bloks.services.dns import DnsService
19
- from blok.tree import Repo, YamlFile
20
- from arkitekt_next.bloks.base import BaseArkitektService
21
-
22
-
23
- @blok("live.arkitekt.alpaka", description="a container and app management service")
24
- class AlpakaBlok(BaseArkitektService):
25
- def get_builder(self):
26
- return "arkitekt.generic"
27
-
28
- def __init__(self) -> None:
29
- self.dev = False
30
- self.host = "alpaka"
31
- self.command = "bash run-debug.sh"
32
- self.repo = "https://github.com/arkitektio/alpaka-server"
33
- self.scopes = {
34
- "alpaka_pull": "Pull new Models",
35
- "alpaka_chat": "Add repositories to the database",
36
- }
37
- self.mount_repo = False
38
- self.build_repo = False
39
- self.buckets = ["media"]
40
- self.secret_key = secrets.token_hex(16)
41
- self.image = "jhnnsrs/alpaka:nightly"
42
-
43
- def preflight(
44
- self,
45
- lok: LokService,
46
- db: DBService,
47
- redis: RedisService,
48
- s3: S3Service,
49
- config: ConfigService,
50
- ollama: OllamaService,
51
- mount: MountService,
52
- admin: AdminService,
53
- secret: SecretService,
54
- gateway: GatewayService,
55
- mount_repo: bool = False,
56
- host: str = "",
57
- image: str = "",
58
- secret_key: str = "",
59
- build_repo: bool = False,
60
- command: str = "",
61
- repo: str = "",
62
- disable: bool = False,
63
- dev: bool = False,
64
- ):
65
- lok.register_scopes(self.scopes)
66
-
67
- path_name = self.host
68
-
69
- gateway_path = gateway.expose_service(path_name, 80, self.host)
70
- lok.register_service_on_subpath(
71
- self.get_blok_meta().service_identifier, gateway_path, "ht"
72
- )
73
-
74
- postgress_access = db.register_db(self.host)
75
- redis_access = redis.register()
76
- lok_access = lok.retrieve_credentials()
77
- admin_access = admin.retrieve()
78
- minio_access = s3.create_buckets(self.buckets)
79
- lok_labels = lok.retrieve_labels("live.arkitekt.alpaka", self.get_builder())
80
- ollama_access = ollama.get_access()
81
-
82
- django_secret = secret.retrieve_secret()
83
-
84
- csrf_trusted_origins = []
85
-
86
- configuration = YamlFile(
87
- **{
88
- "db": asdict(postgress_access),
89
- "django": {
90
- "admin": asdict(admin_access),
91
- "debug": True,
92
- "hosts": ["*"],
93
- "secret_key": django_secret,
94
- },
95
- "redis": asdict(redis_access),
96
- "lok": asdict(lok_access),
97
- "s3": asdict(minio_access),
98
- "scopes": self.scopes,
99
- "force_script_name": path_name,
100
- "csrf_trusted_origins": csrf_trusted_origins,
101
- **self.get_additional_config(),
102
- }
103
- )
104
-
105
- config_mount = config.register_config(f"{self.host}.yaml", configuration)
106
-
107
- depends_on = []
108
-
109
- if redis_access.dependency:
110
- depends_on.append(redis_access.dependency)
111
-
112
- if postgress_access.dependency:
113
- depends_on.append(postgress_access.dependency)
114
-
115
- if minio_access.dependency:
116
- depends_on.append(minio_access.dependency)
117
-
118
- if ollama_access.dependency:
119
- depends_on.append(ollama_access.dependency)
120
-
121
- service = {
122
- "labels": lok_labels,
123
- "volumes": [f"{config_mount}:/workspace/config.yaml"],
124
- "depends_on": depends_on,
125
- }
126
-
127
- if mount_repo or dev:
128
- mount = mount.register_mount(self.host, Repo(repo))
129
- service["volumes"].extend([f"{mount}:/workspace"])
130
-
131
- if build_repo or dev:
132
- mount = mount.register_mount(self.host, Repo(repo))
133
- service["build"] = mount
134
- else:
135
- service["image"] = image
136
-
137
- service["command"] = command
138
-
139
- self.service = service
@@ -1,55 +0,0 @@
1
- from typing import Any, Dict, Optional
2
-
3
- from pydantic import BaseModel
4
-
5
- from arkitekt_next.bloks.kraph import KraphBlok
6
- from arkitekt_next.bloks.lok import LokBlok
7
- from arkitekt_next.bloks.tailscale import TailscaleBlok
8
- from blok import InitContext, Panel, Renderer, blok
9
-
10
- from .fluss import FlussBlok
11
- from .internal_docker import InternalDockerBlok
12
- from .kabinet import KabinetBlok
13
- from .mikro import MikroBlok
14
- from .orkestrator import OrkestratorBlok
15
- from .rekuest import RekuestBlok
16
- from .ollama import OllamaBlok
17
- from .elektro import ElektroBlok
18
- from .alpaka import AlpakaBlok
19
- from .lovekit import LovekitBlok
20
-
21
-
22
- class AdminCredentials(BaseModel):
23
- password: str
24
- username: str
25
- email: str
26
-
27
-
28
- @blok(
29
- "live.arkitekt",
30
- dependencies=[
31
- LokBlok.as_dependency(True, True),
32
- MikroBlok.as_dependency(True, True),
33
- KabinetBlok.as_dependency(True, True),
34
- RekuestBlok.as_dependency(True, True),
35
- FlussBlok.as_dependency(True, True),
36
- InternalDockerBlok.as_dependency(True, True),
37
- KraphBlok.as_dependency(True, True),
38
- AlpakaBlok.as_dependency(True, True),
39
- ElektroBlok.as_dependency(True, True),
40
- LovekitBlok.as_dependency(True, True),
41
- ],
42
- )
43
- class ArkitektBlok:
44
- def entry(self, renderer: Renderer):
45
- renderer.render(
46
- Panel(
47
- f"""This is the arkitekt build that allows you to setup a full stack arkitekt application. You can use this to setup a full stack application with the following services""",
48
- expand=False,
49
- title="Welcome to Arkitekt!",
50
- style="bold magenta",
51
- )
52
- )
53
-
54
- def build(self, cwd):
55
- pass