arkitekt-next 0.7.39__tar.gz → 0.7.41__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 (151) hide show
  1. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/PKG-INFO +5 -5
  2. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/lok.py +5 -12
  3. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/main.py +0 -2
  4. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/pyproject.toml +1 -5
  5. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/__init__.py +0 -0
  6. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/down.py +0 -56
  7. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/init.py +0 -15
  8. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/inspect.py +0 -59
  9. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/main.py +0 -33
  10. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/open.py +0 -66
  11. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/remove.py +0 -60
  12. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/stop.py +0 -56
  13. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/up.py +0 -70
  14. arkitekt_next-0.7.39/arkitekt_next/cli/commands/server/utils.py +0 -33
  15. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/LICENSE +0 -0
  16. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/README.md +0 -0
  17. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/__blok__.py +0 -0
  18. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/__init__.py +0 -0
  19. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/__init__.py +0 -0
  20. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/easy.py +0 -0
  21. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/next.py +0 -0
  22. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/qt.py +0 -0
  23. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/service/__init__.py +0 -0
  24. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/service/fakts.py +0 -0
  25. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/service/fakts_next.py +0 -0
  26. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/service/fakts_qt.py +0 -0
  27. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/service/grant_registry.py +0 -0
  28. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/service/herre.py +0 -0
  29. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/service/herre_qt.py +0 -0
  30. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/apps/types.py +0 -0
  31. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/__init__.py +0 -0
  32. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/admin.py +0 -0
  33. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/arkitekt.py +0 -0
  34. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/config.py +0 -0
  35. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/fluss.py +0 -0
  36. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/funcs.py +0 -0
  37. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/gateway.py +0 -0
  38. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/internal_docker.py +0 -0
  39. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/kabinet.py +0 -0
  40. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/livekit.py +0 -0
  41. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/mikro.py +0 -0
  42. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/minio.py +0 -0
  43. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/mount.py +0 -0
  44. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/namegen.py +0 -0
  45. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/postgres.py +0 -0
  46. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/redis.py +0 -0
  47. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/rekuest.py +0 -0
  48. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/secret.py +0 -0
  49. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/__init__.py +0 -0
  50. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/admin.py +0 -0
  51. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/config.py +0 -0
  52. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/db.py +0 -0
  53. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/gateway.py +0 -0
  54. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/livekit.py +0 -0
  55. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/lok.py +0 -0
  56. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/mount.py +0 -0
  57. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/name.py +0 -0
  58. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/redis.py +0 -0
  59. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/s3.py +0 -0
  60. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/secret.py +0 -0
  61. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/services/socket.py +0 -0
  62. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/socket.py +0 -0
  63. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/bloks/tailscale.py +0 -0
  64. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/builders.py +0 -0
  65. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/__init__.py +0 -0
  66. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/call/__init__.py +0 -0
  67. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/call/local.py +0 -0
  68. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/call/main.py +0 -0
  69. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/call/remote.py +0 -0
  70. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/gen/__init__.py +0 -0
  71. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/gen/compile.py +0 -0
  72. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/gen/init.py +0 -0
  73. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/gen/main.py +0 -0
  74. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/gen/watch.py +0 -0
  75. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/init/__init__.py +0 -0
  76. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/init/main.py +0 -0
  77. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/inspect/__init__.py +0 -0
  78. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/inspect/main.py +0 -0
  79. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/inspect/requirements.py +0 -0
  80. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/inspect/templates.py +0 -0
  81. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/inspect/variables.py +0 -0
  82. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/__init__.py +0 -0
  83. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/build.py +0 -0
  84. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/init.py +0 -0
  85. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/main.py +0 -0
  86. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/publish.py +0 -0
  87. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/stage.py +0 -0
  88. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/utils.py +0 -0
  89. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/validate.py +0 -0
  90. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/kabinet/wizard.py +0 -0
  91. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/manifest/__init__.py +0 -0
  92. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/manifest/inspect.py +0 -0
  93. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/manifest/main.py +0 -0
  94. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/manifest/scopes.py +0 -0
  95. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/manifest/version.py +0 -0
  96. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/manifest/wizard.py +0 -0
  97. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/run/__init__.py +0 -0
  98. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/run/dev.py +0 -0
  99. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/run/main.py +0 -0
  100. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/run/prod.py +0 -0
  101. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/commands/run/utils.py +0 -0
  102. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/configs/base.yaml +0 -0
  103. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/constants.py +0 -0
  104. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile +0 -0
  105. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/errors.py +0 -0
  106. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/inspect.py +0 -0
  107. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/io.py +0 -0
  108. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/options.py +0 -0
  109. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/fluss.schema.graphql +0 -0
  110. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/gucker.schema.graphql +0 -0
  111. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/kabinet.schema.graphql +0 -0
  112. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/kluster.schema.graphql +0 -0
  113. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/konviktion.schema.graphql +0 -0
  114. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/kuay.schema.graphql +0 -0
  115. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/mikro.schema.graphql +0 -0
  116. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/mikro_next.schema.graphql +0 -0
  117. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/napari.schema.graphql +0 -0
  118. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/omero_ark.schema.graphql +0 -0
  119. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/port.schema.graphql +0 -0
  120. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/rekuest.schema.graphql +0 -0
  121. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql +0 -0
  122. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/schemas/unlok.schema.graphql +0 -0
  123. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/templates/filter.py +0 -0
  124. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/templates/simple.py +0 -0
  125. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/texts.py +0 -0
  126. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/types.py +0 -0
  127. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/ui.py +0 -0
  128. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/utils.py +0 -0
  129. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/validators.py +0 -0
  130. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/vars.py +0 -0
  131. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/cli/versions/v1.yaml +0 -0
  132. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/constants.py +0 -0
  133. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/model.py +0 -0
  134. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/__init__.py +0 -0
  135. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/dark/gear.png +0 -0
  136. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/dark/green pulse.gif +0 -0
  137. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/dark/orange pulse.gif +0 -0
  138. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/dark/pink pulse.gif +0 -0
  139. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/dark/red pulse.gif +0 -0
  140. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/light/gear.png +0 -0
  141. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/light/green pulse.gif +0 -0
  142. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/light/orange pulse.gif +0 -0
  143. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/light/pink pulse.gif +0 -0
  144. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/assets/light/red pulse.gif +0 -0
  145. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/builders.py +0 -0
  146. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/magic_bar.py +0 -0
  147. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/types.py +0 -0
  148. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/qt/utils.py +0 -0
  149. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/service_registry.py +0 -0
  150. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/arkitekt_next/tqdm.py +0 -0
  151. {arkitekt_next-0.7.39 → arkitekt_next-0.7.41}/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.39
3
+ Version: 0.7.41
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -16,8 +16,8 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Provides-Extra: all
17
17
  Provides-Extra: blok
18
18
  Provides-Extra: cli
19
- Requires-Dist: blok (>=0.0.9) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all" or extra == "blok")
20
- Requires-Dist: cryptography (>=40.0.8) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all" or extra == "blok")
19
+ Requires-Dist: blok (>=0.0.9) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "blok")
20
+ Requires-Dist: cryptography (>=40.0.8) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "blok")
21
21
  Requires-Dist: dokker (>=0.1.21)
22
22
  Requires-Dist: fakts (>=0.5.0)
23
23
  Requires-Dist: fluss-next (>=0.1.70) ; extra == "all"
@@ -25,8 +25,8 @@ Requires-Dist: herre (>=0.4.3)
25
25
  Requires-Dist: kabinet (>=0.1.8) ; (python_version >= "3.9" and python_version < "4.0") and (extra == "all")
26
26
  Requires-Dist: koil (>=0.3.6)
27
27
  Requires-Dist: mikro-next (>=0.1.25) ; (python_version >= "3.10" and python_version < "4.0") and (extra == "all")
28
- Requires-Dist: namegenerator (>=1.0.6) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all" or extra == "blok")
29
- Requires-Dist: netifaces (>=0.11.0) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all" or extra == "blok")
28
+ Requires-Dist: namegenerator (>=1.0.6) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "blok")
29
+ Requires-Dist: netifaces (>=0.11.0) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "blok")
30
30
  Requires-Dist: reaktion-next (>=0.1.59) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all")
31
31
  Requires-Dist: rekuest-next (>=0.2.14) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "cli" or extra == "all")
32
32
  Requires-Dist: rich-click (>=1.6.1) ; extra == "cli" or extra == "all"
@@ -132,7 +132,11 @@ class LokBlok:
132
132
  self.tokens = []
133
133
  self.groups = []
134
134
  self.secret_key = secrets.token_hex(16)
135
- self.scopes = {"openid": "The open id connect scope"}
135
+ self.scopes = {
136
+ "openid": "The open id connect scope",
137
+ "read": "A generic read access",
138
+ "write": "A generic write access",
139
+ }
136
140
  self.key = None
137
141
  self.deployment_name = "default"
138
142
  self.token_expiry_seconds = 700000
@@ -169,7 +173,6 @@ class LokBlok:
169
173
  secrets: SecretBlok,
170
174
  livekit: LivekitService,
171
175
  dns: DnsService,
172
- scopes: list[Dict[str, str]],
173
176
  ):
174
177
  for key, value in init.kwargs.items():
175
178
  setattr(self, key, value)
@@ -177,8 +180,6 @@ class LokBlok:
177
180
  assert self.public_key, "Public key is required"
178
181
  assert self.private_key, "Private key is required"
179
182
 
180
- self.scopes = {scope["scope"]: scope["description"] for scope in scopes}
181
-
182
183
  gateway.expose("lok", 80, self.host, strip_prefix=False)
183
184
  gateway.expose_mapped(".well-known", 80, self.host, "lok")
184
185
 
@@ -302,13 +303,6 @@ class LokBlok:
302
303
  type=GROUP,
303
304
  show_default=True,
304
305
  )
305
- with_scopes = Option(
306
- subcommand="scopes",
307
- help="Additional scopes that should be created (normally handled by the bloks)",
308
- default=[f"{key}:{value}" for key, value in self.scopes.items()],
309
- multiple=True,
310
- type=SCOPE,
311
- )
312
306
  with_repo = Option(
313
307
  subcommand="with_repo",
314
308
  help="Which repo should we use when building the service? Only active if build_repo or mount_repo is active",
@@ -371,7 +365,6 @@ class LokBlok:
371
365
  with_host,
372
366
  with_private_key,
373
367
  with_public_key,
374
- with_scopes,
375
368
  with_secret_key,
376
369
  ]
377
370
 
@@ -16,7 +16,6 @@ from arkitekt_next.cli.constants import *
16
16
  from arkitekt_next.cli.texts import *
17
17
  from arkitekt_next.cli.commands.run.main import run
18
18
  from arkitekt_next.cli.commands.gen.main import gen
19
- from arkitekt_next.cli.commands.server.main import server
20
19
  from arkitekt_next.cli.commands.kabinet.main import kabinet
21
20
  from arkitekt_next.cli.commands.init.main import init
22
21
  from arkitekt_next.cli.commands.manifest.main import manifest
@@ -76,7 +75,6 @@ cli.add_command(gen, "gen")
76
75
  cli.add_command(kabinet, "kabinet")
77
76
  cli.add_command(manifest, "manifest")
78
77
  cli.add_command(inspect, "inspect")
79
- cli.add_command(server, "server")
80
78
  cli.add_command(call, "call")
81
79
 
82
80
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "arkitekt-next"
3
- version = "0.7.39"
3
+ version = "0.7.41"
4
4
  description = "client for the arkitekt_next platform"
5
5
  authors = ["jhnnsrs <jhnnsrs@gmail.com>"]
6
6
  license = "MIT"
@@ -41,10 +41,6 @@ all = [
41
41
  "mikro-next",
42
42
  "kabinet",
43
43
  "fluss-next",
44
- "netifaces",
45
- "blok",
46
- "cryptography",
47
- "namegenerator",
48
44
  ]
49
45
  blok = ["netifaces", "blok", "cryptography", "namegenerator"]
50
46
 
@@ -1,56 +0,0 @@
1
- import rich_click as click
2
- from click import Context
3
- from dokker.projects.dokker import DokkerProject
4
- from dokker.loggers.print import PrintLogger
5
- from dokker.deployment import Deployment
6
- from typing import Optional
7
- import os
8
- from .utils import compile_options
9
-
10
-
11
- @click.command()
12
- @click.option(
13
- "--name",
14
- help="The name of the deployment",
15
- default=None,
16
- required=False,
17
- type=click.Choice(compile_options()),
18
- )
19
- @click.pass_context
20
- def down(
21
- ctx: Context,
22
- name: Optional[str] = None,
23
- ) -> None:
24
- """
25
- Down a deployment
26
-
27
- Removing a deployment will stop all containers and call docker compose down
28
- on the project. This will remove all containers and networks created by the
29
- deployment. The deployment will still be available in the .dokker folder
30
- However (depending on your settings) data that was stored in volumes managed
31
- by the deployment will be removed.
32
-
33
- If you want to simple Stop the deployment, use the stop command instead.
34
-
35
- """
36
- if not name:
37
- options = compile_options()
38
- if not options:
39
- raise click.ClickException(
40
- "No deployments found. Please run arkitekt_next server init first"
41
- )
42
-
43
- name = options[0]
44
-
45
- print(f"Running {name}")
46
-
47
- project = DokkerProject(
48
- name=name,
49
- )
50
-
51
- deployment = Deployment(project=project, logger=PrintLogger())
52
- with deployment:
53
- deployment.down()
54
- print("Shutting down...")
55
-
56
- print("Done")
@@ -1,15 +0,0 @@
1
- import rich_click as click
2
- from click import Context
3
- from blok.cli import create_cli
4
- import asyncio
5
- from typing import Optional
6
- import os
7
- from arkitekt_next.cli.vars import get_console
8
- from arkitekt_next.__blok__ import get_bloks
9
-
10
-
11
-
12
- bloks = get_bloks()
13
-
14
- init = create_cli(*bloks)
15
-
@@ -1,59 +0,0 @@
1
- import rich_click as click
2
- from click import Context
3
- from dokker.projects.dokker import DokkerProject
4
- from dokker.loggers.print import PrintLogger
5
- from dokker.deployment import Deployment
6
- from typing import Optional
7
- import os
8
- from .utils import compile_options
9
- from rich.table import Table
10
- from rich.live import Live
11
- from arkitekt_next.cli.vars import get_console
12
- import json
13
-
14
- DEFAULT_REPO_URL = (
15
- "https://raw.githubusercontent.com/jhnnsrs/konstruktor/master/repo/channels.json"
16
- )
17
-
18
-
19
- @click.command()
20
- @click.option(
21
- "--name",
22
- help="The name of the deployment",
23
- default=None,
24
- required=False,
25
- type=click.Choice(compile_options()),
26
- )
27
- @click.pass_context
28
- def inspect(
29
- ctx: Context,
30
- name: Optional[str] = None,
31
- ) -> None:
32
- """
33
- Inspect a deployment
34
-
35
- Inspect helps you find information about a deployment. It will show you
36
- information about the containers, networks and volumes created by the
37
- deployment. If you have not run arkitekt_next server init before, this will
38
- fail.
39
-
40
- """
41
- if not name:
42
- options = compile_options()
43
- if not options:
44
- raise click.ClickException(
45
- "No deployments found. Please run arkitekt_next server init first"
46
- )
47
-
48
- name = options[0]
49
-
50
- project = DokkerProject(
51
- name=name,
52
- )
53
-
54
- console = get_console(ctx)
55
-
56
- deployment = Deployment(project=project)
57
-
58
- with deployment:
59
- print(json.dumps(deployment.inspect().dict(), indent=4))
@@ -1,33 +0,0 @@
1
- import rich_click as click
2
- from .init import init
3
- from .up import up
4
- from .down import down
5
- from .inspect import inspect
6
- from .remove import remove
7
- from .open import open
8
- from .stop import stop
9
- from click import Context
10
-
11
-
12
- @click.group()
13
- @click.pass_context
14
- def server(ctx: Context) -> None:
15
- """Manages your arkitekt_next deployments
16
-
17
- You can directly deploy your app to a server with the arkitekt_next server command. This will
18
- create a local docker-compose.yml file and a .arkitekt_next folder in your project. You can then
19
- use the arkitekt_next server build command to build your app for port and the arkitekt_next server run
20
- command to run your app on the server.
21
-
22
- """
23
-
24
- pass
25
-
26
-
27
- server.add_command(init, "init")
28
- server.add_command(up, "up")
29
- server.add_command(down, "down")
30
- server.add_command(remove, "remove")
31
- server.add_command(inspect, "inspect")
32
- server.add_command(open, "open")
33
- server.add_command(stop, "stop")
@@ -1,66 +0,0 @@
1
- import rich_click as click
2
- from click import Context
3
- from dokker.projects.dokker import DokkerProject
4
- from dokker.loggers.print import PrintLogger
5
- from dokker.deployment import Deployment
6
- from typing import Optional, List
7
- import os
8
- from .utils import compile_options
9
- from rich.table import Table
10
- from rich.live import Live
11
- from arkitekt_next.cli.vars import get_console
12
- import webbrowser
13
-
14
- DEFAULT_REPO_URL = (
15
- "https://raw.githubusercontent.com/jhnnsrs/konstruktor/master/repo/channels.json"
16
- )
17
-
18
-
19
- @click.command()
20
- @click.option(
21
- "--name",
22
- help="The name of the deployment",
23
- default=None,
24
- required=False,
25
- type=click.Choice(compile_options()),
26
- )
27
- @click.argument("services", nargs=-1, required=False)
28
- @click.pass_context
29
- def open(
30
- ctx: Context,
31
- name: Optional[str] = None,
32
- services: List[str] = None,
33
- ) -> None:
34
- """
35
- Opens a service in the browser
36
-
37
- This will open the service in the browser. If you have not run arkitekt_next server init
38
- before, this will fail.
39
-
40
-
41
- """
42
- if not name:
43
- options = compile_options()
44
- if not options:
45
- raise click.ClickException(
46
- "No deployments found. Please run arkitekt_next server init first"
47
- )
48
-
49
- name = options[0]
50
-
51
- project = DokkerProject(
52
- name=name,
53
- )
54
-
55
- console = get_console(ctx)
56
-
57
- deployment = Deployment(project=project)
58
-
59
- if not services:
60
- services = ["orkestrator"]
61
-
62
- with deployment:
63
- for service in services:
64
- link = deployment.inspect().find_service(service).get_label("arkitekt_next.link")
65
- console.print(f"Opening {service} at [link={link}]{link}[/link]")
66
- webbrowser.open(link)
@@ -1,60 +0,0 @@
1
- import rich_click as click
2
- from click import Context
3
- from dokker.projects.dokker import DokkerProject
4
- from dokker.loggers.print import PrintLogger
5
- from dokker.deployment import Deployment
6
- from typing import Optional
7
- import os
8
- from .utils import compile_options
9
-
10
-
11
- @click.command()
12
- @click.option(
13
- "--name",
14
- help="The name of the deployment",
15
- default=None,
16
- required=False,
17
- type=click.Choice(compile_options()),
18
- )
19
- @click.pass_context
20
- def remove(
21
- ctx: Context,
22
- name: Optional[str] = None,
23
- ) -> None:
24
- """
25
- Remove a deployment
26
-
27
- Removing a deployment will stop all containers and call docker compose down
28
- on the project. This will remove all containers and networks created by the
29
- deployment. As opposed to the down command, the deployment will also be
30
- removed from the .dokker folder, and all data stored in volumes managed by
31
- the deployment will be removed.
32
-
33
- This step is irreversible, so use with caution.
34
-
35
- """
36
- if not name:
37
- options = compile_options()
38
- if not options:
39
- raise click.ClickException(
40
- "No deployments found. Please run arkitekt_next server init first"
41
- )
42
-
43
- name = options[0]
44
-
45
- print(f"Running {name}")
46
-
47
- project = DokkerProject(
48
- name=name,
49
- )
50
-
51
- deployment = Deployment(project=project, logger=PrintLogger())
52
-
53
- with deployment:
54
- print("Shutting down...")
55
- deployment.down()
56
-
57
- print("Removing...")
58
- deployment.remove()
59
-
60
- print("Done")
@@ -1,56 +0,0 @@
1
- import rich_click as click
2
- from click import Context
3
- from dokker.projects.dokker import DokkerProject
4
- from dokker.loggers.print import PrintLogger
5
- from dokker.deployment import Deployment
6
- from typing import Optional
7
- import os
8
- from .utils import compile_options
9
-
10
-
11
- @click.command()
12
- @click.option(
13
- "--name",
14
- help="The name of the deployment",
15
- default=None,
16
- required=False,
17
- type=click.Choice(compile_options()),
18
- )
19
- @click.pass_context
20
- def stop(
21
- ctx: Context,
22
- name: Optional[str] = None,
23
- ) -> None:
24
- """
25
- Stop a deployment
26
-
27
- Stopping a deployment will stop all containers and call docker compose stop
28
- on the project. This will stop all containers and networks created by the
29
- deployment. The deployment will still be available in the .dokker folder
30
-
31
- This should not be confused with the down command, which will remove all
32
- containers and remove all networks created by the deployment.
33
-
34
- """
35
- if not name:
36
- options = compile_options()
37
- if not options:
38
- raise click.ClickException(
39
- "No deployments found. Please run arkitekt_next server init first"
40
- )
41
-
42
- name = options[0]
43
-
44
- print(f"Stopping {name}")
45
-
46
- project = DokkerProject(
47
- name=name,
48
- )
49
-
50
- deployment = Deployment(project=project, logger=PrintLogger())
51
-
52
- with deployment:
53
- print("Shutting down...")
54
- deployment.stop()
55
-
56
- print("Done")
@@ -1,70 +0,0 @@
1
- import rich_click as click
2
- from click import Context
3
- from dokker.projects.dokker import DokkerProject
4
- from dokker.loggers.print import PrintLogger
5
- from dokker.deployment import Deployment
6
- from typing import Optional
7
- import os
8
- from .utils import compile_options
9
- from rich.table import Table
10
- from rich.live import Live
11
- from arkitekt_next.cli.vars import get_console
12
-
13
-
14
- DEFAULT_REPO_URL = (
15
- "https://raw.githubusercontent.com/jhnnsrs/konstruktor/master/repo/channels.json"
16
- )
17
-
18
-
19
- @click.command()
20
- @click.option(
21
- "--name",
22
- help="The name of the deployment",
23
- default=None,
24
- required=False,
25
- type=click.Choice(compile_options()),
26
- )
27
- @click.pass_context
28
- def up(
29
- ctx: Context,
30
- name: Optional[str] = None,
31
- ) -> None:
32
- """
33
- Ups a deployment
34
-
35
- Up starts your deployment. This will create all containers and networks
36
- needed for your deployment. If you have not run arkitekt_next server init
37
- before, this will fail.
38
-
39
-
40
- """
41
- if not name:
42
- options = compile_options()
43
- if not options:
44
- raise click.ClickException(
45
- "No deployments found. Please run arkitekt_next server init first"
46
- )
47
-
48
- name = options[0]
49
-
50
- print(f"Running {name}")
51
-
52
- project = DokkerProject(
53
- name=name,
54
- )
55
-
56
- console = get_console(ctx)
57
-
58
- logger = PrintLogger(print_function=lambda x: console.log(x))
59
-
60
- deployment = Deployment(project=project, logger=logger)
61
-
62
- with deployment:
63
- port = deployment.inspect().find_service("lok").get_label("arkitekt_next.link")
64
-
65
- status = console.status(
66
- f"[bold green]Running on the Lok Server Port {port} Press Ctrl+c once to cancel..."
67
- )
68
-
69
- with status:
70
- x = deployment.up(detach=False)
@@ -1,33 +0,0 @@
1
- import os
2
- from typing import List
3
-
4
-
5
- def compile_options() -> List[str]:
6
- """Compiles the available options for the server up and down commands:
7
-
8
- All deployments in the .arkitekt_next/deployments folder
9
- """
10
- deployments = os.path.join(os.getcwd(), ".dokker")
11
-
12
- available_deployments = []
13
-
14
- if not os.path.exists(deployments):
15
- return available_deployments
16
-
17
- for deployment in os.listdir(deployments):
18
- if os.path.isdir(os.path.join(deployments, deployment)):
19
- available_deployments.append(deployment)
20
-
21
- return available_deployments
22
-
23
-
24
- def build_server_path(name: str) -> str:
25
- """Builds the path to the server
26
-
27
- Args:
28
- name (str): The name of the server
29
-
30
- Returns:
31
- str: The path to the server
32
- """
33
- return os.path.join(os.getcwd(), ".arkitekt_next", "servers", name)
File without changes
File without changes