arkitekt-next 0.7.33__py3-none-any.whl → 0.7.35__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 +14 -2
- arkitekt_next/bloks/__init__.py +1 -0
- arkitekt_next/bloks/admin.py +7 -15
- arkitekt_next/bloks/arkitekt.py +10 -23
- arkitekt_next/bloks/config.py +42 -0
- arkitekt_next/bloks/fluss.py +20 -70
- arkitekt_next/bloks/funcs.py +86 -0
- arkitekt_next/bloks/gateway.py +53 -33
- arkitekt_next/bloks/internal_docker.py +80 -0
- arkitekt_next/bloks/kabinet.py +20 -70
- arkitekt_next/bloks/livekit.py +33 -12
- arkitekt_next/bloks/lok.py +69 -33
- arkitekt_next/bloks/mikro.py +19 -73
- arkitekt_next/bloks/minio.py +28 -28
- arkitekt_next/bloks/mount.py +35 -0
- arkitekt_next/bloks/postgres.py +13 -19
- arkitekt_next/bloks/redis.py +8 -17
- arkitekt_next/bloks/rekuest.py +93 -0
- arkitekt_next/bloks/services/__init__.py +0 -0
- arkitekt_next/bloks/services/admin.py +22 -0
- arkitekt_next/bloks/services/config.py +18 -0
- arkitekt_next/bloks/services/db.py +27 -0
- arkitekt_next/bloks/services/gateway.py +20 -0
- arkitekt_next/bloks/services/livekit.py +19 -0
- arkitekt_next/bloks/services/lok.py +27 -0
- arkitekt_next/bloks/services/mount.py +15 -0
- arkitekt_next/bloks/services/redis.py +28 -0
- arkitekt_next/bloks/services/s3.py +26 -0
- arkitekt_next/bloks/services/socket.py +16 -0
- arkitekt_next/bloks/socket.py +38 -0
- arkitekt_next/cli/commands/server/init.py +4 -63
- {arkitekt_next-0.7.33.dist-info → arkitekt_next-0.7.35.dist-info}/METADATA +1 -1
- {arkitekt_next-0.7.33.dist-info → arkitekt_next-0.7.35.dist-info}/RECORD +36 -20
- arkitekt_next/bloks/services.py +0 -2
- {arkitekt_next-0.7.33.dist-info → arkitekt_next-0.7.35.dist-info}/LICENSE +0 -0
- {arkitekt_next-0.7.33.dist-info → arkitekt_next-0.7.35.dist-info}/WHEEL +0 -0
- {arkitekt_next-0.7.33.dist-info → arkitekt_next-0.7.35.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from pydantic import BaseModel
|
|
2
|
+
from typing import Dict, Any
|
|
3
|
+
from blok import blok, InitContext, Option, ExecutionContext
|
|
4
|
+
from blok.tree import YamlFile
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AdminCredentials(BaseModel):
|
|
8
|
+
password: str
|
|
9
|
+
username: str
|
|
10
|
+
email: str
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@blok("live.arkitekt.docker_socket")
|
|
14
|
+
class DockerSocketBlok:
|
|
15
|
+
def __init__(self) -> None:
|
|
16
|
+
self.docker_socket = "/var/run/docker.sock"
|
|
17
|
+
self.registered_configs = {}
|
|
18
|
+
|
|
19
|
+
def preflight(self, init: InitContext):
|
|
20
|
+
for key, value in init.kwargs.items():
|
|
21
|
+
setattr(self, key, value)
|
|
22
|
+
|
|
23
|
+
def register_socket(self, name: str) -> str:
|
|
24
|
+
self.registered_configs[name] = name
|
|
25
|
+
return self.docker_socket
|
|
26
|
+
|
|
27
|
+
def build(self, ex: ExecutionContext):
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
def get_options(self):
|
|
31
|
+
config_path = Option(
|
|
32
|
+
subcommand="docker_socket",
|
|
33
|
+
help="Which docker_socket to use for configs",
|
|
34
|
+
default=self.docker_socket,
|
|
35
|
+
show_default=True,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return [config_path]
|
|
@@ -1,74 +1,15 @@
|
|
|
1
1
|
import rich_click as click
|
|
2
2
|
from click import Context
|
|
3
|
-
from
|
|
3
|
+
from blok.cli import create_cli
|
|
4
4
|
import asyncio
|
|
5
5
|
from typing import Optional
|
|
6
6
|
import os
|
|
7
7
|
from arkitekt_next.cli.vars import get_console
|
|
8
|
+
from arkitekt_next.__blok__ import get_bloks
|
|
8
9
|
|
|
9
|
-
DEFAULT_REPO_URL = "https://arkitekt_next.live/repo.json"
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
@click.option(
|
|
14
|
-
"--repo-url",
|
|
15
|
-
help="The repo to use",
|
|
16
|
-
default=DEFAULT_REPO_URL,
|
|
17
|
-
prompt="What repo do you want to use?",
|
|
18
|
-
)
|
|
19
|
-
@click.option(
|
|
20
|
-
"--channel",
|
|
21
|
-
help="The channel to use",
|
|
22
|
-
default="beta",
|
|
23
|
-
prompt="What channel do you want to use?",
|
|
24
|
-
)
|
|
25
|
-
@click.option(
|
|
26
|
-
"--name",
|
|
27
|
-
help="The name of the deployment",
|
|
28
|
-
default=None,
|
|
29
|
-
required=False,
|
|
30
|
-
)
|
|
31
|
-
@click.option(
|
|
32
|
-
"--overwrite",
|
|
33
|
-
help="Should we overwrite the old deployment?",
|
|
34
|
-
default=False,
|
|
35
|
-
is_flag=True,
|
|
36
|
-
)
|
|
37
|
-
@click.option(
|
|
38
|
-
"--setup",
|
|
39
|
-
"-s",
|
|
40
|
-
"setup",
|
|
41
|
-
help="Additional setup variables",
|
|
42
|
-
type=(str, str),
|
|
43
|
-
multiple=True,
|
|
44
|
-
)
|
|
45
|
-
@click.pass_context
|
|
46
|
-
def init(
|
|
47
|
-
ctx: Context,
|
|
48
|
-
channel: str,
|
|
49
|
-
repo_url: str,
|
|
50
|
-
overwrite: bool = False,
|
|
51
|
-
setup: Optional[list] = None,
|
|
52
|
-
name: Optional[str] = None,
|
|
53
|
-
) -> None:
|
|
54
|
-
"""
|
|
55
|
-
Initializes a new server
|
|
12
|
+
bloks = get_bloks()
|
|
56
13
|
|
|
57
|
-
|
|
14
|
+
init = create_cli(*bloks)
|
|
58
15
|
|
|
59
|
-
extra_content = dict(setup or [])
|
|
60
|
-
|
|
61
|
-
project = KonstruktorProject(
|
|
62
|
-
channel=channel,
|
|
63
|
-
repo=RemoteRepo(url=repo_url),
|
|
64
|
-
reinit_if_exists=overwrite,
|
|
65
|
-
name=name,
|
|
66
|
-
extra_context=extra_content,
|
|
67
|
-
)
|
|
68
|
-
|
|
69
|
-
try:
|
|
70
|
-
asyncio.run(project.ainititialize())
|
|
71
|
-
get_console(ctx).print("Done :)")
|
|
72
|
-
except Exception as e:
|
|
73
|
-
get_console(ctx).print_exception()
|
|
74
|
-
raise click.ClickException("Failed to initialize project") from e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
arkitekt_next/__blok__.py,sha256=
|
|
1
|
+
arkitekt_next/__blok__.py,sha256=k4ZLfVMDgdkGXHrG3ilX7G-siKG3g0wSzat-c6eMciw,1234
|
|
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
|
|
@@ -12,19 +12,35 @@ arkitekt_next/apps/service/grant_registry.py,sha256=3om8YoVf_HFWEJbpjQCin1Zvm8Sz
|
|
|
12
12
|
arkitekt_next/apps/service/herre.py,sha256=DuIhyEujgXrYzhG2tKTMUgHkTScfg6UCX5eCV1vUPYI,760
|
|
13
13
|
arkitekt_next/apps/service/herre_qt.py,sha256=GntkKHmwcQqEFab02SWwdd3xONo0fLVGEPQMKH6tlCE,1628
|
|
14
14
|
arkitekt_next/apps/types.py,sha256=cKRqHyKlNcGamPUxzvY0wyz0sEI4sBPa4CnvFnT1sTo,1140
|
|
15
|
-
arkitekt_next/bloks/__init__.py,sha256=
|
|
16
|
-
arkitekt_next/bloks/admin.py,sha256=
|
|
17
|
-
arkitekt_next/bloks/arkitekt.py,sha256
|
|
18
|
-
arkitekt_next/bloks/
|
|
19
|
-
arkitekt_next/bloks/
|
|
20
|
-
arkitekt_next/bloks/
|
|
21
|
-
arkitekt_next/bloks/
|
|
22
|
-
arkitekt_next/bloks/
|
|
23
|
-
arkitekt_next/bloks/
|
|
24
|
-
arkitekt_next/bloks/
|
|
25
|
-
arkitekt_next/bloks/
|
|
26
|
-
arkitekt_next/bloks/
|
|
27
|
-
arkitekt_next/bloks/
|
|
15
|
+
arkitekt_next/bloks/__init__.py,sha256=gXny6-WJ3alV1__xveI_0wcvgDuglR1WB7v7-8h1Olo,30
|
|
16
|
+
arkitekt_next/bloks/admin.py,sha256=MlUQUYCHxCWtSD75mVHgs3DcDa0s8_D6_AIBslnYjZw,1300
|
|
17
|
+
arkitekt_next/bloks/arkitekt.py,sha256=-ZITnWpkzpniUZQ7ZPjCH_RVqyCNPBtYnXWNTHd4eYw,1185
|
|
18
|
+
arkitekt_next/bloks/config.py,sha256=SqJg9kB0AQ62b_WpIKgJ8Jpcqpc-AKN7gdEj87O-UGY,1268
|
|
19
|
+
arkitekt_next/bloks/fluss.py,sha256=0It4jxafGH-ehzXvd1eC9Tq9ZP4Kjra24eaHBCIaHJM,2820
|
|
20
|
+
arkitekt_next/bloks/funcs.py,sha256=6QImH3eOSd6KXd8XfaulexAzy16A_J8GJi58Q18MQms,2641
|
|
21
|
+
arkitekt_next/bloks/gateway.py,sha256=pym9pw8ycGgTzeskirkUZ19akvCitLabgQlU1r-wZdM,5021
|
|
22
|
+
arkitekt_next/bloks/internal_docker.py,sha256=HWGgt4Jjr1ftEFwkYiw7m02eTiNAK5vaRYVtn0Jskd8,2255
|
|
23
|
+
arkitekt_next/bloks/kabinet.py,sha256=ELGAkBQWarS5A-leTE2tXLgwrcXQBPz_FgLbMkYdJcU,3002
|
|
24
|
+
arkitekt_next/bloks/livekit.py,sha256=Es0CJcQJJjyYD4OBa3_6K8bHmQRsikrECgnPflFCO4E,2694
|
|
25
|
+
arkitekt_next/bloks/lok.py,sha256=7Fxk8U-hX7MgnIj1C1vGTA7yPBDTnqRLL31vPzAbEVE,11996
|
|
26
|
+
arkitekt_next/bloks/mikro.py,sha256=A0Q3SkVpZYYp1nhQFiW6gCzv5D0h8fKm_p8KdoJauXI,2817
|
|
27
|
+
arkitekt_next/bloks/minio.py,sha256=XkhApIyM7wwI1NPFBZWi5ES0grzDXPbe_RwEHCCxZcs,5823
|
|
28
|
+
arkitekt_next/bloks/mount.py,sha256=d14w7bMiaWbl5wgvanh4PwfIqEYsDEsw91360xfX0fU,1031
|
|
29
|
+
arkitekt_next/bloks/postgres.py,sha256=FRUF2fobUlU6OmK1VC7aN_WuX1NctLmZhzJJA1uOOeY,2773
|
|
30
|
+
arkitekt_next/bloks/redis.py,sha256=XKuujfu1j85IZEab9ZG2m0G09g7Jba8o28q2PIBg_0I,2134
|
|
31
|
+
arkitekt_next/bloks/rekuest.py,sha256=NfYbobDzlpTfPf88_-YwEDTwgOCg-OTLwiaWw5vssNU,3007
|
|
32
|
+
arkitekt_next/bloks/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
+
arkitekt_next/bloks/services/admin.py,sha256=OXMAHph5lABNPFsXm8aboWffJ7CzSSNvke7xpmj9raI,463
|
|
34
|
+
arkitekt_next/bloks/services/config.py,sha256=BLtbKXRRWmuZxvaaksuxt9EiDcazYwKL_IUIRhXBin8,393
|
|
35
|
+
arkitekt_next/bloks/services/db.py,sha256=jMO751KJYjNmvHD0tOTWgkkemwTXc6mLHAge_i68JSA,600
|
|
36
|
+
arkitekt_next/bloks/services/gateway.py,sha256=3tA1pS2vniVC3LhJ4O6chGRG6wUA44EPLAML4aiHm3k,530
|
|
37
|
+
arkitekt_next/bloks/services/livekit.py,sha256=5u-GThgKsgXiiobEL4arm3JJOgNTZae15Q-75i-4D8g,366
|
|
38
|
+
arkitekt_next/bloks/services/lok.py,sha256=OYC5BVr3MxeP8AuARO56UFL4490Yygcscdm5DQq-fVs,517
|
|
39
|
+
arkitekt_next/bloks/services/mount.py,sha256=MDlwHl5cTfBO8IgkofuFjQBbfIMKDm_R9suWkiyVG48,289
|
|
40
|
+
arkitekt_next/bloks/services/redis.py,sha256=d5cSk2v6A6CvYULocwd2Cnx9RkHKYHmZT1mZmZQNKgs,633
|
|
41
|
+
arkitekt_next/bloks/services/s3.py,sha256=njXlLzUssj46w90bMdqO-7HSAVQtZHH2r1yVNlR-mfU,492
|
|
42
|
+
arkitekt_next/bloks/services/socket.py,sha256=eXACQPldS9I1xGVDcbF6LrVkHHsBcjvG1VtlvHnM-14,427
|
|
43
|
+
arkitekt_next/bloks/socket.py,sha256=YIrSKfQezrsKwRKDPdT1aXhlQzjgnx_UaNaQ9LiEfGY,1008
|
|
28
44
|
arkitekt_next/builders.py,sha256=8HeQsNqyxpbFsnTrA9AAm0_BqxGjU1_ylS1Z-hbjAFw,6074
|
|
29
45
|
arkitekt_next/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
46
|
arkitekt_next/cli/commands/call/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -65,7 +81,7 @@ arkitekt_next/cli/commands/run/prod.py,sha256=5wbpKt8atp_Cz81v3iRUcOWCInStzlmlA2
|
|
|
65
81
|
arkitekt_next/cli/commands/run/utils.py,sha256=zH-MNNEfKgyOYQvwP6Ph8KUHVqH48fw3ZI6tiQ9unwQ,325
|
|
66
82
|
arkitekt_next/cli/commands/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
83
|
arkitekt_next/cli/commands/server/down.py,sha256=POFe9OtzhSdlwWY7JBakGqVDZvQ9LrsiFDRSik2Hn2U,1490
|
|
68
|
-
arkitekt_next/cli/commands/server/init.py,sha256=
|
|
84
|
+
arkitekt_next/cli/commands/server/init.py,sha256=mVXjXWILuQaeqsmrtTrFRL1qVVMCUv-Bf4zeTquNccg,281
|
|
69
85
|
arkitekt_next/cli/commands/server/inspect.py,sha256=3K9OVMJmzD_HJH6e2OJZSIbyVG5QWttQxefvx265n7M,1493
|
|
70
86
|
arkitekt_next/cli/commands/server/main.py,sha256=z9Z2C4BSNZcrXbRsr6x4LqWSXnj6_u9Hgp7WXosfWZ8,945
|
|
71
87
|
arkitekt_next/cli/commands/server/open.py,sha256=gvId-pnmsCrKDCCS8KZZoEkXoghtLHbyjPbLtCJCZeg,1711
|
|
@@ -124,8 +140,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
|
|
|
124
140
|
arkitekt_next/service_registry.py,sha256=pczUuP_Nve7OYwB7-oDBLIw6bkjZPnzL3xFca5TF1io,3405
|
|
125
141
|
arkitekt_next/tqdm.py,sha256=DlrxPluHao7TvW-Cqgt0UokRS-fM2_ZNiWiddqvCqCc,1488
|
|
126
142
|
arkitekt_next/utils.py,sha256=gmKWy9M51vimohmmaoIpAJ0CaB22TFP0w3JszRrwiak,2379
|
|
127
|
-
arkitekt_next-0.7.
|
|
128
|
-
arkitekt_next-0.7.
|
|
129
|
-
arkitekt_next-0.7.
|
|
130
|
-
arkitekt_next-0.7.
|
|
131
|
-
arkitekt_next-0.7.
|
|
143
|
+
arkitekt_next-0.7.35.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
|
|
144
|
+
arkitekt_next-0.7.35.dist-info/METADATA,sha256=xCnta1qQtU-CexVP_QiIJIA0cGNX2CyRBjmny2jQN0k,5500
|
|
145
|
+
arkitekt_next-0.7.35.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
146
|
+
arkitekt_next-0.7.35.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
|
|
147
|
+
arkitekt_next-0.7.35.dist-info/RECORD,,
|
arkitekt_next/bloks/services.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|