arkitekt-next 0.7.45__py3-none-any.whl → 0.7.47__py3-none-any.whl
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.
- arkitekt_next/__blok__.py +2 -0
- arkitekt_next/bloks/arkitekt.py +14 -5
- arkitekt_next/bloks/orkestrator.py +28 -23
- {arkitekt_next-0.7.45.dist-info → arkitekt_next-0.7.47.dist-info}/METADATA +2 -2
- {arkitekt_next-0.7.45.dist-info → arkitekt_next-0.7.47.dist-info}/RECORD +8 -8
- {arkitekt_next-0.7.45.dist-info → arkitekt_next-0.7.47.dist-info}/LICENSE +0 -0
- {arkitekt_next-0.7.45.dist-info → arkitekt_next-0.7.47.dist-info}/WHEEL +0 -0
- {arkitekt_next-0.7.45.dist-info → arkitekt_next-0.7.47.dist-info}/entry_points.txt +0 -0
arkitekt_next/__blok__.py
CHANGED
|
@@ -2,6 +2,7 @@ from arkitekt_next.bloks.admin import AdminBlok
|
|
|
2
2
|
from arkitekt_next.bloks.arkitekt import ArkitektBlok
|
|
3
3
|
from arkitekt_next.bloks.mikro import MikroBlok
|
|
4
4
|
from arkitekt_next.bloks.fluss import FlussBlok
|
|
5
|
+
from arkitekt_next.bloks.orkestrator import OrkestratorBlok
|
|
5
6
|
from arkitekt_next.bloks.redis import RedisBlok
|
|
6
7
|
from arkitekt_next.bloks.gateway import GatewayBlok
|
|
7
8
|
from arkitekt_next.bloks.livekit import LocalLiveKitBlok
|
|
@@ -40,4 +41,5 @@ def get_bloks():
|
|
|
40
41
|
TailscaleBlok(),
|
|
41
42
|
SecretBlok(),
|
|
42
43
|
PreformedNamesBlok(),
|
|
44
|
+
OrkestratorBlok(),
|
|
43
45
|
]
|
arkitekt_next/bloks/arkitekt.py
CHANGED
|
@@ -9,6 +9,7 @@ from .rekuest import RekuestBlok
|
|
|
9
9
|
from .fluss import FlussBlok
|
|
10
10
|
from .gateway import GatewayBlok
|
|
11
11
|
from .internal_docker import InternalDockerBlok
|
|
12
|
+
from .orkestrator import OrkestratorBlok
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
class AdminCredentials(BaseModel):
|
|
@@ -19,7 +20,6 @@ class AdminCredentials(BaseModel):
|
|
|
19
20
|
|
|
20
21
|
@blok("live.arkitekt")
|
|
21
22
|
class ArkitektBlok:
|
|
22
|
-
|
|
23
23
|
def entry(self, renderer: Renderer):
|
|
24
24
|
renderer.render(
|
|
25
25
|
Panel(
|
|
@@ -30,10 +30,19 @@ class ArkitektBlok:
|
|
|
30
30
|
)
|
|
31
31
|
)
|
|
32
32
|
|
|
33
|
-
def preflight(
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
def preflight(
|
|
34
|
+
self,
|
|
35
|
+
lok: LocalLiveKitBlok,
|
|
36
|
+
mikro: MikroBlok,
|
|
37
|
+
kabinet: KabinetBlok,
|
|
38
|
+
rekuest: RekuestBlok,
|
|
39
|
+
fluss: FlussBlok,
|
|
40
|
+
gateway: GatewayBlok,
|
|
41
|
+
internal_engine: InternalDockerBlok,
|
|
42
|
+
scale: TailscaleBlok,
|
|
43
|
+
orkestrator: OrkestratorBlok,
|
|
44
|
+
):
|
|
45
|
+
print(lok, mikro, kabinet, rekuest, fluss, gateway, internal_engine)
|
|
36
46
|
|
|
37
47
|
def build(self, cwd):
|
|
38
48
|
pass
|
|
39
|
-
|
|
@@ -6,7 +6,8 @@ from arkitekt_next.bloks.funcs import (
|
|
|
6
6
|
create_default_service_dependencies,
|
|
7
7
|
build_default_service_options,
|
|
8
8
|
)
|
|
9
|
-
from
|
|
9
|
+
from arkitekt_next.bloks.services.mount import MountService
|
|
10
|
+
from blok import blok, InitContext, ExecutionContext, Option, Command
|
|
10
11
|
from blok.tree import Repo, YamlFile
|
|
11
12
|
|
|
12
13
|
|
|
@@ -14,42 +15,46 @@ from blok.tree import Repo, YamlFile
|
|
|
14
15
|
class OrkestratorBlok:
|
|
15
16
|
def __init__(self) -> None:
|
|
16
17
|
self.dev = False
|
|
18
|
+
self.disable = True
|
|
17
19
|
self.repo = "https://github.com/arkitektio/orkestrator-next"
|
|
18
|
-
self.
|
|
19
|
-
|
|
20
|
-
"kabinet_add_repo": "Add repositories to the database",
|
|
21
|
-
}
|
|
22
|
-
self.build_command = "yarn"
|
|
23
|
-
self.up_command = "yarn start"
|
|
20
|
+
self.build_command = ["yarn"]
|
|
21
|
+
self.up_command = ["yarn", "start"]
|
|
24
22
|
|
|
25
|
-
def
|
|
26
|
-
return "arkitekt.generic"
|
|
27
|
-
|
|
28
|
-
def get_dependencies(self):
|
|
29
|
-
return create_default_service_dependencies()
|
|
30
|
-
|
|
31
|
-
def preflight(self, init: InitContext):
|
|
23
|
+
def preflight(self, init: InitContext, mount: MountService):
|
|
32
24
|
for key, value in init.kwargs.items():
|
|
33
25
|
setattr(self, key, value)
|
|
34
26
|
|
|
35
|
-
self.
|
|
36
|
-
|
|
37
|
-
)
|
|
27
|
+
if self.disable:
|
|
28
|
+
return
|
|
29
|
+
self.mount = mount.register_mount("orkestrator", Repo(self.repo))
|
|
38
30
|
|
|
39
31
|
self.initialized = True
|
|
40
32
|
|
|
41
33
|
def build(self, context: ExecutionContext):
|
|
42
|
-
|
|
34
|
+
if self.disable:
|
|
35
|
+
return
|
|
36
|
+
|
|
37
|
+
context.install_commands.set_nested(
|
|
38
|
+
"orkestrator", Command(self.build_command, cwd=self.mount)
|
|
39
|
+
)
|
|
40
|
+
context.up_commands.set_nested(
|
|
41
|
+
"orkestrator", Command(self.up_command, cwd=self.mount)
|
|
42
|
+
)
|
|
43
|
+
pass
|
|
43
44
|
|
|
44
45
|
def get_options(self):
|
|
45
|
-
def_options = build_default_service_options(self)
|
|
46
46
|
with_repos = Option(
|
|
47
|
-
subcommand="
|
|
48
|
-
help="The default
|
|
49
|
-
default=self.
|
|
47
|
+
subcommand="repo",
|
|
48
|
+
help="The default repo to use for the orkestrator",
|
|
49
|
+
default=self.repo,
|
|
50
|
+
)
|
|
51
|
+
with_disable = Option(
|
|
52
|
+
subcommand="disable",
|
|
53
|
+
help="Should we disable the orkestrator service?",
|
|
54
|
+
default=self.disable,
|
|
50
55
|
)
|
|
51
56
|
|
|
52
57
|
return [
|
|
53
|
-
*def_options,
|
|
54
58
|
with_repos,
|
|
59
|
+
with_disable,
|
|
55
60
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: arkitekt-next
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.47
|
|
4
4
|
Summary: client for the arkitekt_next platform
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: jhnnsrs
|
|
@@ -16,7 +16,7 @@ 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.
|
|
19
|
+
Requires-Dist: blok (>=0.0.11) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "blok")
|
|
20
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)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
arkitekt_next/__blok__.py,sha256=
|
|
1
|
+
arkitekt_next/__blok__.py,sha256=gQqlPrUPSeB-b3XkvXRwDoRWMfG-vYN-3a2pWHNjz_E,1563
|
|
2
2
|
arkitekt_next/__init__.py,sha256=KFM_HlnIQWX7hXSZnYba3rdmZrsBE69K58rwh8ewxoM,970
|
|
3
3
|
arkitekt_next/apps/__init__.py,sha256=cx_5Y-RkJFkSQJH-hUEC_L3eW1jU2E426c4e6_csIyM,42
|
|
4
4
|
arkitekt_next/apps/easy.py,sha256=8eu-0DCWit2Ok4SPw_QCyriBZHPnLc1oK9qxPUxnElg,3135
|
|
@@ -14,7 +14,7 @@ arkitekt_next/apps/service/herre_qt.py,sha256=GntkKHmwcQqEFab02SWwdd3xONo0fLVGEP
|
|
|
14
14
|
arkitekt_next/apps/types.py,sha256=cKRqHyKlNcGamPUxzvY0wyz0sEI4sBPa4CnvFnT1sTo,1140
|
|
15
15
|
arkitekt_next/bloks/__init__.py,sha256=gXny6-WJ3alV1__xveI_0wcvgDuglR1WB7v7-8h1Olo,30
|
|
16
16
|
arkitekt_next/bloks/admin.py,sha256=MlUQUYCHxCWtSD75mVHgs3DcDa0s8_D6_AIBslnYjZw,1300
|
|
17
|
-
arkitekt_next/bloks/arkitekt.py,sha256=
|
|
17
|
+
arkitekt_next/bloks/arkitekt.py,sha256=N0WcdEr_x2TzDdpIW_WP8lVodYxRbOU4I5IP-aKGLLQ,1417
|
|
18
18
|
arkitekt_next/bloks/config.py,sha256=SqJg9kB0AQ62b_WpIKgJ8Jpcqpc-AKN7gdEj87O-UGY,1268
|
|
19
19
|
arkitekt_next/bloks/fluss.py,sha256=5-luL5EeCb2DE9aRcjUTxjz5fu2EwgIoBWGGmdlypkc,1487
|
|
20
20
|
arkitekt_next/bloks/funcs.py,sha256=IdiMNUkQN5frHpgsiXJJfJib1lFhUEVwGYjJugpSlds,5350
|
|
@@ -27,7 +27,7 @@ arkitekt_next/bloks/mikro.py,sha256=JpWqEsV1-LktxSuWhEleZnDOdecHPZDqSR49VbcGxRo,
|
|
|
27
27
|
arkitekt_next/bloks/minio.py,sha256=k7t1J46lO3eaBO9KdP7iYF--Go-m25dEmOwisbbOoVQ,5496
|
|
28
28
|
arkitekt_next/bloks/mount.py,sha256=d14w7bMiaWbl5wgvanh4PwfIqEYsDEsw91360xfX0fU,1031
|
|
29
29
|
arkitekt_next/bloks/namegen.py,sha256=0k4PYya5J4EQyt3XZ3UKhDlO_k29pmUEQSaklZGN8MA,1035
|
|
30
|
-
arkitekt_next/bloks/orkestrator.py,sha256=
|
|
30
|
+
arkitekt_next/bloks/orkestrator.py,sha256=D0WrSrVawy4wUZy1IrNk55xCSSTC73mt_efwkFg-9Q4,1756
|
|
31
31
|
arkitekt_next/bloks/postgres.py,sha256=FRUF2fobUlU6OmK1VC7aN_WuX1NctLmZhzJJA1uOOeY,2773
|
|
32
32
|
arkitekt_next/bloks/redis.py,sha256=_ddmcD3WwX7VA7zzzQ7-yjSM7f4reV0C8Pl70s7R2k8,2130
|
|
33
33
|
arkitekt_next/bloks/rekuest.py,sha256=X1U_5xEUt_Eb3E6UkOt52m78tn5zTsueXxTScvHNKks,1551
|
|
@@ -136,8 +136,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
|
|
|
136
136
|
arkitekt_next/service_registry.py,sha256=pczUuP_Nve7OYwB7-oDBLIw6bkjZPnzL3xFca5TF1io,3405
|
|
137
137
|
arkitekt_next/tqdm.py,sha256=DlrxPluHao7TvW-Cqgt0UokRS-fM2_ZNiWiddqvCqCc,1488
|
|
138
138
|
arkitekt_next/utils.py,sha256=gmKWy9M51vimohmmaoIpAJ0CaB22TFP0w3JszRrwiak,2379
|
|
139
|
-
arkitekt_next-0.7.
|
|
140
|
-
arkitekt_next-0.7.
|
|
141
|
-
arkitekt_next-0.7.
|
|
142
|
-
arkitekt_next-0.7.
|
|
143
|
-
arkitekt_next-0.7.
|
|
139
|
+
arkitekt_next-0.7.47.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
|
|
140
|
+
arkitekt_next-0.7.47.dist-info/METADATA,sha256=U0GHm68JJm8NNBWAt69g3pktVhF_c6HcR-ZV0Y0VM8A,5974
|
|
141
|
+
arkitekt_next-0.7.47.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
142
|
+
arkitekt_next-0.7.47.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
|
|
143
|
+
arkitekt_next-0.7.47.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|