arkitekt-next 0.15.0__tar.gz → 0.17.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 (149) hide show
  1. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/PKG-INFO +3 -3
  2. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/app/fakts.py +27 -1
  3. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/call/local.py +1 -1
  4. arkitekt_next-0.17.0/arkitekt_next/cli/commands/call/main.py +28 -0
  5. arkitekt_next-0.17.0/arkitekt_next/cli/templates/filter.py +26 -0
  6. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/templates/simple.py +4 -1
  7. arkitekt_next-0.17.0/arkitekt_next/py.typed +0 -0
  8. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/pyproject.toml +4 -3
  9. arkitekt_next-0.15.0/arkitekt_next/__blok__.py +0 -58
  10. arkitekt_next-0.15.0/arkitekt_next/bloks/__init__.py +0 -1
  11. arkitekt_next-0.15.0/arkitekt_next/bloks/admin.py +0 -43
  12. arkitekt_next-0.15.0/arkitekt_next/bloks/alpaka.py +0 -136
  13. arkitekt_next-0.15.0/arkitekt_next/bloks/arkitekt.py +0 -55
  14. arkitekt_next-0.15.0/arkitekt_next/bloks/base.py +0 -215
  15. arkitekt_next-0.15.0/arkitekt_next/bloks/channel.py +0 -27
  16. arkitekt_next-0.15.0/arkitekt_next/bloks/config.py +0 -43
  17. arkitekt_next-0.15.0/arkitekt_next/bloks/elektro.py +0 -42
  18. arkitekt_next-0.15.0/arkitekt_next/bloks/fluss.py +0 -33
  19. arkitekt_next-0.15.0/arkitekt_next/bloks/gateway.py +0 -230
  20. arkitekt_next-0.15.0/arkitekt_next/bloks/internal_docker.py +0 -95
  21. arkitekt_next-0.15.0/arkitekt_next/bloks/kabinet.py +0 -46
  22. arkitekt_next-0.15.0/arkitekt_next/bloks/kraph.py +0 -45
  23. arkitekt_next-0.15.0/arkitekt_next/bloks/l.py +0 -136
  24. arkitekt_next-0.15.0/arkitekt_next/bloks/livekit.py +0 -89
  25. arkitekt_next-0.15.0/arkitekt_next/bloks/lok.py +0 -354
  26. arkitekt_next-0.15.0/arkitekt_next/bloks/lovekit.py +0 -199
  27. arkitekt_next-0.15.0/arkitekt_next/bloks/mikro.py +0 -42
  28. arkitekt_next-0.15.0/arkitekt_next/bloks/minio.py +0 -176
  29. arkitekt_next-0.15.0/arkitekt_next/bloks/mount.py +0 -34
  30. arkitekt_next-0.15.0/arkitekt_next/bloks/namegen.py +0 -34
  31. arkitekt_next-0.15.0/arkitekt_next/bloks/ollama.py +0 -94
  32. arkitekt_next-0.15.0/arkitekt_next/bloks/orkestrator.py +0 -122
  33. arkitekt_next-0.15.0/arkitekt_next/bloks/postgres.py +0 -136
  34. arkitekt_next-0.15.0/arkitekt_next/bloks/redis.py +0 -79
  35. arkitekt_next-0.15.0/arkitekt_next/bloks/rekuest.py +0 -30
  36. arkitekt_next-0.15.0/arkitekt_next/bloks/secret.py +0 -32
  37. arkitekt_next-0.15.0/arkitekt_next/bloks/self_signed.py +0 -91
  38. arkitekt_next-0.15.0/arkitekt_next/bloks/services/__init__.py +0 -27
  39. arkitekt_next-0.15.0/arkitekt_next/bloks/services/admin.py +0 -21
  40. arkitekt_next-0.15.0/arkitekt_next/bloks/services/certer.py +0 -14
  41. arkitekt_next-0.15.0/arkitekt_next/bloks/services/channel.py +0 -12
  42. arkitekt_next-0.15.0/arkitekt_next/bloks/services/config.py +0 -13
  43. arkitekt_next-0.15.0/arkitekt_next/bloks/services/db.py +0 -23
  44. arkitekt_next-0.15.0/arkitekt_next/bloks/services/gateway.py +0 -29
  45. arkitekt_next-0.15.0/arkitekt_next/bloks/services/livekit.py +0 -20
  46. arkitekt_next-0.15.0/arkitekt_next/bloks/services/lok.py +0 -20
  47. arkitekt_next-0.15.0/arkitekt_next/bloks/services/mount.py +0 -9
  48. arkitekt_next-0.15.0/arkitekt_next/bloks/services/name.py +0 -11
  49. arkitekt_next-0.15.0/arkitekt_next/bloks/services/ollama.py +0 -21
  50. arkitekt_next-0.15.0/arkitekt_next/bloks/services/redis.py +0 -19
  51. arkitekt_next-0.15.0/arkitekt_next/bloks/services/s3.py +0 -21
  52. arkitekt_next-0.15.0/arkitekt_next/bloks/services/secret.py +0 -16
  53. arkitekt_next-0.15.0/arkitekt_next/bloks/services/socket.py +0 -13
  54. arkitekt_next-0.15.0/arkitekt_next/bloks/socket.py +0 -40
  55. arkitekt_next-0.15.0/arkitekt_next/bloks/tailscale.py +0 -90
  56. arkitekt_next-0.15.0/arkitekt_next/cli/commands/call/main.py +0 -21
  57. arkitekt_next-0.15.0/arkitekt_next/cli/templates/filter.py +0 -26
  58. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/.gitignore +0 -0
  59. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/LICENSE +0 -0
  60. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/README.md +0 -0
  61. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/__init__.py +0 -0
  62. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/app/__init__.py +0 -0
  63. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/app/app.py +0 -0
  64. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/builders.py +0 -0
  65. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/__init__.py +0 -0
  66. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/call/__init__.py +0 -0
  67. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/call/remote.py +0 -0
  68. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/gen/__init__.py +0 -0
  69. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/gen/compile.py +0 -0
  70. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/gen/init.py +0 -0
  71. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/gen/main.py +0 -0
  72. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/gen/watch.py +0 -0
  73. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/init/__init__.py +0 -0
  74. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/init/main.py +0 -0
  75. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/inspect/__init__.py +0 -0
  76. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/inspect/implementations.py +0 -0
  77. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/inspect/main.py +0 -0
  78. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/inspect/requirements.py +0 -0
  79. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/inspect/variables.py +0 -0
  80. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/__init__.py +0 -0
  81. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/build.py +0 -0
  82. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/init.py +0 -0
  83. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/io.py +0 -0
  84. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/main.py +0 -0
  85. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/publish.py +0 -0
  86. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/stage.py +0 -0
  87. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/types.py +0 -0
  88. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/utils.py +0 -0
  89. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/kabinet/validate.py +0 -0
  90. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/manifest/__init__.py +0 -0
  91. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/manifest/inspect.py +0 -0
  92. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/manifest/main.py +0 -0
  93. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/manifest/scopes.py +0 -0
  94. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/manifest/version.py +0 -0
  95. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/run/__init__.py +0 -0
  96. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/run/dev.py +0 -0
  97. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/run/main.py +0 -0
  98. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/run/prod.py +0 -0
  99. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/commands/run/utils.py +0 -0
  100. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/constants.py +0 -0
  101. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile +0 -0
  102. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/errors.py +0 -0
  103. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/inspect.py +0 -0
  104. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/io.py +0 -0
  105. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/main.py +0 -0
  106. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/options.py +0 -0
  107. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/fluss.schema.graphql +0 -0
  108. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/gucker.schema.graphql +0 -0
  109. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/kabinet.schema.graphql +0 -0
  110. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/kluster.schema.graphql +0 -0
  111. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/konviktion.schema.graphql +0 -0
  112. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/kuay.schema.graphql +0 -0
  113. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/mikro.schema.graphql +0 -0
  114. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/mikro_next.schema.graphql +0 -0
  115. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/napari.schema.graphql +0 -0
  116. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/omero_ark.schema.graphql +0 -0
  117. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/port.schema.graphql +0 -0
  118. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/rekuest.schema.graphql +0 -0
  119. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql +0 -0
  120. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/schemas/unlok.schema.graphql +0 -0
  121. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/texts.py +0 -0
  122. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/types.py +0 -0
  123. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/ui.py +0 -0
  124. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/utils.py +0 -0
  125. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/validators.py +0 -0
  126. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/vars.py +0 -0
  127. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/cli/versions/v1.yaml +0 -0
  128. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/constants.py +0 -0
  129. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/init_registry.py +0 -0
  130. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/inspect.py +0 -0
  131. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/protocols.py +0 -0
  132. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/__init__.py +0 -0
  133. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/dark/gear.png +0 -0
  134. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/dark/green pulse.gif +0 -0
  135. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/dark/orange pulse.gif +0 -0
  136. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/dark/pink pulse.gif +0 -0
  137. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/dark/red pulse.gif +0 -0
  138. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/light/gear.png +0 -0
  139. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/light/green pulse.gif +0 -0
  140. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/light/orange pulse.gif +0 -0
  141. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/light/pink pulse.gif +0 -0
  142. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/assets/light/red pulse.gif +0 -0
  143. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/builders.py +0 -0
  144. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/magic_bar.py +0 -0
  145. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/types.py +0 -0
  146. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/qt/utils.py +0 -0
  147. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/service_registry.py +0 -0
  148. {arkitekt_next-0.15.0 → arkitekt_next-0.17.0}/arkitekt_next/tqdm.py +0 -0
  149. {arkitekt_next-0.15.0 → arkitekt_next-0.17.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.15.0
3
+ Version: 0.17.0
4
4
  Summary: client for the arkitekt_next platform
5
5
  Author-email: jhnnsrs <jhnnsrs@gmail.com>
6
6
  License-Expression: MIT
@@ -19,7 +19,7 @@ Requires-Dist: watchfiles>=1.0.5
19
19
  Provides-Extra: all
20
20
  Requires-Dist: fluss-next>=0.2.0; extra == 'all'
21
21
  Requires-Dist: kabinet>=0.2.0; extra == 'all'
22
- Requires-Dist: mikro-next>=0.4; extra == 'all'
22
+ Requires-Dist: mikro-next>=0.6; 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'
@@ -47,7 +47,7 @@ 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.4.0; extra == 'mikro'
50
+ Requires-Dist: mikro-next>=0.6.0; extra == 'mikro'
51
51
  Provides-Extra: reaktion
52
52
  Requires-Dist: reaktion-next>=0.2.0; extra == 'reaktion'
53
53
  Provides-Extra: unlok
@@ -20,6 +20,15 @@ def build_device_code_fakts(
20
20
  no_cache: bool = False,
21
21
  headless: bool = False,
22
22
  ) -> Fakts:
23
+ """ Builds a Fakts instance for device code authentication.
24
+
25
+ This is used when the user wants to authenticate an application
26
+ using a device code. The user will be prompted to open a browser
27
+ and enter a code to authenticate the application.
28
+
29
+
30
+
31
+ """
23
32
  identifier = manifest.identifier
24
33
  version = manifest.version
25
34
  if url is None:
@@ -46,6 +55,15 @@ def build_device_code_fakts(
46
55
 
47
56
 
48
57
  def build_redeem_fakts(manifest: Manifest, redeem_token: str, url: str) -> Fakts:
58
+ """ Builds a Fakts instance for redeeming a token.
59
+
60
+ A redeem token is used to register an application with the
61
+ fakts server, and to claim the configuration for the application.
62
+
63
+ Instead of using a device code, the user can redeem an application
64
+ without user interaction.
65
+
66
+ """
49
67
  identifier = manifest.identifier
50
68
  version = manifest.version
51
69
 
@@ -67,7 +85,15 @@ def build_token_fakts(
67
85
  manifest: Manifest,
68
86
  token: str,
69
87
  url: str,
70
- ):
88
+ ) -> Fakts:
89
+ """ Builds a Fakts instance for token-based authentication.
90
+
91
+ This is used when an appllication was previously authenticated
92
+ and the user has a (claim) token to use for authentication.
93
+
94
+ E.g. when deploying an application through the kabinet deployer
95
+
96
+ """
71
97
  identifier = manifest.identifier
72
98
  version = manifest.version
73
99
 
@@ -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,6 +1,6 @@
1
1
  [project]
2
2
  name = "arkitekt-next"
3
- version = "0.15.0"
3
+ version = "0.17.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"
@@ -25,7 +25,7 @@ cli = [
25
25
  ]
26
26
  alpaka = ["alpaka>=0.2.0"]
27
27
  kraph = ["kraph>=0.2.0"]
28
- mikro = ["mikro-next>=0.4.0"]
28
+ mikro = ["mikro-next>=0.6.0"]
29
29
  kabinet = ["kabinet>=0.4.0"]
30
30
  elektro = ["elektro>=0.5.0"]
31
31
  fluss = ["fluss-next>=0.2.0"]
@@ -39,7 +39,7 @@ all = [
39
39
  "semver>=3.0.1",
40
40
  "reaktion-next>=0.2.0",
41
41
  "rekuest-next>=0.7",
42
- "mikro-next>=0.4",
42
+ "mikro-next>=0.6",
43
43
  "kabinet>=0.2.0",
44
44
  "fluss-next>=0.2.0",
45
45
  "unlok-next>=1.1.1",
@@ -65,6 +65,7 @@ dev-dependencies = [
65
65
  "rich-click>=1.8",
66
66
  "mikro-next>=0.3.1",
67
67
  "python-semantic-release>=9.21.1",
68
+ "qtpy>=2.4.3",
68
69
  ]
69
70
 
70
71
  [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,136 +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.expose(path_name, 80, self.host)
70
-
71
- postgress_access = db.register_db(self.host)
72
- redis_access = redis.register()
73
- lok_access = lok.retrieve_credentials()
74
- admin_access = admin.retrieve()
75
- minio_access = s3.create_buckets(self.buckets)
76
- lok_labels = lok.retrieve_labels("live.arkitekt.alpaka", self.get_builder())
77
- ollama_access = ollama.get_access()
78
-
79
- django_secret = secret.retrieve_secret()
80
-
81
- csrf_trusted_origins = []
82
-
83
- configuration = YamlFile(
84
- **{
85
- "db": asdict(postgress_access),
86
- "django": {
87
- "admin": asdict(admin_access),
88
- "debug": True,
89
- "hosts": ["*"],
90
- "secret_key": django_secret,
91
- },
92
- "redis": asdict(redis_access),
93
- "lok": asdict(lok_access),
94
- "s3": asdict(minio_access),
95
- "scopes": self.scopes,
96
- "force_script_name": path_name,
97
- "csrf_trusted_origins": csrf_trusted_origins,
98
- **self.get_additional_config(),
99
- }
100
- )
101
-
102
- config_mount = config.register_config(f"{self.host}.yaml", configuration)
103
-
104
- depends_on = []
105
-
106
- if redis_access.dependency:
107
- depends_on.append(redis_access.dependency)
108
-
109
- if postgress_access.dependency:
110
- depends_on.append(postgress_access.dependency)
111
-
112
- if minio_access.dependency:
113
- depends_on.append(minio_access.dependency)
114
-
115
- if ollama_access.dependency:
116
- depends_on.append(ollama_access.dependency)
117
-
118
- service = {
119
- "labels": lok_labels,
120
- "volumes": [f"{config_mount}:/workspace/config.yaml"],
121
- "depends_on": depends_on,
122
- }
123
-
124
- if mount_repo or dev:
125
- mount = mount.register_mount(self.host, Repo(repo))
126
- service["volumes"].extend([f"{mount}:/workspace"])
127
-
128
- if build_repo or dev:
129
- mount = mount.register_mount(self.host, Repo(repo))
130
- service["build"] = mount
131
- else:
132
- service["image"] = image
133
-
134
- service["command"] = command
135
-
136
- 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