arkitekt-next 0.7.11__tar.gz → 0.7.13__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.
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/PKG-INFO +6 -5
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/inspect/main.py +2 -2
- arkitekt_next-0.7.13/arkitekt_next/cli/commands/inspect/templates.py +90 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/build.py +6 -8
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/main.py +7 -7
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/main.py +2 -2
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/pyproject.toml +6 -5
- arkitekt_next-0.7.11/arkitekt_next/cli/commands/inspect/definitions.py +0 -53
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/LICENSE +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/README.md +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/easy.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/next.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/qt.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/fakts.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/fakts_next.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/fakts_qt.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/fluss_next.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/grant_registry.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/herre.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/herre_qt.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/kabinet.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/mikro_next.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/rekuest_next.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/service/unlok_next.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/apps/types.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/builders.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/call/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/call/local.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/call/main.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/call/remote.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/gen/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/gen/compile.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/gen/init.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/gen/main.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/gen/watch.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/init/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/init/main.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/inspect/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/inspect/variables.py +0 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/manifest → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/__init__.py +0 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/init.py +0 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/publish.py +0 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/stage.py +0 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/utils.py +0 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/validate.py +0 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/kabinet}/wizard.py +0 -0
- {arkitekt_next-0.7.11/arkitekt_next/cli/commands/port → arkitekt_next-0.7.13/arkitekt_next/cli/commands/manifest}/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/manifest/inspect.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/manifest/main.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/manifest/scopes.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/manifest/version.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/manifest/wizard.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/run/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/run/dev.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/run/main.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/run/prod.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/run/utils.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/down.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/init.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/inspect.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/main.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/open.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/remove.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/stop.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/up.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/server/utils.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/configs/base.yaml +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/constants.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/errors.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/inspect.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/io.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/options.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/fluss.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/gucker.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/kabinet.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/kluster.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/konviktion.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/kuay.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/mikro.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/mikro_next.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/napari.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/omero_ark.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/port.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/rekuest.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/unlok.schema.graphql +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/templates/filter.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/templates/simple.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/texts.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/types.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/ui.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/utils.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/validators.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/vars.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/versions/v1.yaml +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/constants.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/model.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/__init__.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/dark/gear.png +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/dark/green pulse.gif +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/dark/orange pulse.gif +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/dark/pink pulse.gif +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/dark/red pulse.gif +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/light/gear.png +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/light/green pulse.gif +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/light/orange pulse.gif +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/light/pink pulse.gif +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/light/red pulse.gif +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/magic_bar.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/utils.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/service_registry.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/tqdm.py +0 -0
- {arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/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.
|
|
3
|
+
Version: 0.7.13
|
|
4
4
|
Summary: client for the arkitekt_next platform
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: jhnnsrs
|
|
@@ -17,12 +17,13 @@ Provides-Extra: all
|
|
|
17
17
|
Provides-Extra: cli
|
|
18
18
|
Requires-Dist: dokker (>=0.1.21)
|
|
19
19
|
Requires-Dist: fakts (>=0.5.0)
|
|
20
|
-
Requires-Dist: fluss-next (>=0.1.
|
|
20
|
+
Requires-Dist: fluss-next (>=0.1.63) ; extra == "all"
|
|
21
21
|
Requires-Dist: herre (>=0.4.3)
|
|
22
|
-
Requires-Dist: kabinet (>=0.1.
|
|
22
|
+
Requires-Dist: kabinet (>=0.1.2) ; extra == "all"
|
|
23
23
|
Requires-Dist: koil (>=0.3.6)
|
|
24
|
-
Requires-Dist: mikro-next (>=0.1.
|
|
25
|
-
Requires-Dist: reaktion-next (>=0.1.
|
|
24
|
+
Requires-Dist: mikro-next (>=0.1.9) ; (python_version >= "3.10" and python_version < "4.0") and (extra == "all")
|
|
25
|
+
Requires-Dist: reaktion-next (>=0.1.53) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all")
|
|
26
|
+
Requires-Dist: rekuest-next (>=0.2.4) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "cli" or extra == "all")
|
|
26
27
|
Requires-Dist: rich-click (>=1.6.1) ; extra == "cli" or extra == "all"
|
|
27
28
|
Requires-Dist: semver (>=3.0.1) ; extra == "cli" or extra == "all"
|
|
28
29
|
Requires-Dist: turms (>=0.5.0) ; (python_version >= "3.9" and python_version < "4.0") and (extra == "cli" or extra == "all")
|
|
@@ -3,7 +3,7 @@ import rich_click as click
|
|
|
3
3
|
|
|
4
4
|
import rich_click as click
|
|
5
5
|
from .variables import variables
|
|
6
|
-
from .
|
|
6
|
+
from .templates import templates
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
@click.group()
|
|
@@ -19,4 +19,4 @@ def inspect(ctx):
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
inspect.add_command(variables, "variables")
|
|
22
|
-
inspect.add_command(
|
|
22
|
+
inspect.add_command(templates, "templates")
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import rich_click as click
|
|
2
|
+
from importlib import import_module
|
|
3
|
+
from arkitekt_next.apps.types import App
|
|
4
|
+
from arkitekt_next.cli.commands.run.utils import import_builder
|
|
5
|
+
from arkitekt_next.cli.vars import get_console, get_manifest
|
|
6
|
+
from arkitekt_next.cli.options import with_builder
|
|
7
|
+
import json
|
|
8
|
+
import os
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
async def run_app(app):
|
|
12
|
+
async with app:
|
|
13
|
+
await app.rekuest.run()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@click.command("prod")
|
|
17
|
+
@click.pass_context
|
|
18
|
+
@click.option(
|
|
19
|
+
"--pretty",
|
|
20
|
+
"-p",
|
|
21
|
+
help="Should we just output json?",
|
|
22
|
+
is_flag=True,
|
|
23
|
+
default=False,
|
|
24
|
+
)
|
|
25
|
+
@click.option(
|
|
26
|
+
"--machine-readable",
|
|
27
|
+
"-mr",
|
|
28
|
+
help="Should we just output json?",
|
|
29
|
+
is_flag=True,
|
|
30
|
+
default=False,
|
|
31
|
+
)
|
|
32
|
+
@with_builder
|
|
33
|
+
def templates(
|
|
34
|
+
ctx,
|
|
35
|
+
pretty: bool,
|
|
36
|
+
machine_readable: bool,
|
|
37
|
+
builder: str = "arkitekt_next.builders.easy",
|
|
38
|
+
):
|
|
39
|
+
"""Runs the app in production mode
|
|
40
|
+
|
|
41
|
+
\n
|
|
42
|
+
You can specify the builder to use with the --builder flag. By default, the easy builder is used, which is designed to be easy to use and to get started with.
|
|
43
|
+
|
|
44
|
+
"""
|
|
45
|
+
from rekuest.definition.registry import get_default_definition_registry
|
|
46
|
+
|
|
47
|
+
manifest = get_manifest(ctx)
|
|
48
|
+
console = get_console(ctx)
|
|
49
|
+
|
|
50
|
+
entrypoint = manifest.entrypoint
|
|
51
|
+
identifier = manifest.identifier
|
|
52
|
+
entrypoint_file = f"{manifest.entrypoint}.py"
|
|
53
|
+
os.path.realpath(entrypoint_file)
|
|
54
|
+
|
|
55
|
+
builder_func = import_builder(builder)
|
|
56
|
+
|
|
57
|
+
entrypoint = manifest.entrypoint
|
|
58
|
+
|
|
59
|
+
with console.status("Loading entrypoint module..."):
|
|
60
|
+
try:
|
|
61
|
+
import_module(entrypoint)
|
|
62
|
+
except ModuleNotFoundError as e:
|
|
63
|
+
console.print(f"Could not find entrypoint module {entrypoint}")
|
|
64
|
+
raise e
|
|
65
|
+
|
|
66
|
+
app: App = builder_func(
|
|
67
|
+
identifier=identifier,
|
|
68
|
+
version="dev",
|
|
69
|
+
logo=manifest.logo,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
rekuest = app.services.get("rekuest")
|
|
73
|
+
if rekuest is None:
|
|
74
|
+
console.print("No rekuest service found in app")
|
|
75
|
+
return
|
|
76
|
+
|
|
77
|
+
x = {
|
|
78
|
+
key: item.dict()
|
|
79
|
+
for key, item in rekuest.agent.extensions[
|
|
80
|
+
"default"
|
|
81
|
+
].definition_registry.templates.items()
|
|
82
|
+
}
|
|
83
|
+
if machine_readable:
|
|
84
|
+
print("--START_TEMPLATES--" + json.dumps(x) + "--END_TEMPLATES--")
|
|
85
|
+
|
|
86
|
+
else:
|
|
87
|
+
if pretty:
|
|
88
|
+
console.print(json.dumps(x, indent=2))
|
|
89
|
+
else:
|
|
90
|
+
print(json.dumps(x))
|
|
@@ -93,7 +93,7 @@ def inspect_definitions(build_id: str) -> Inspection:
|
|
|
93
93
|
try:
|
|
94
94
|
# Run 'docker inspect' with the container ID or name
|
|
95
95
|
result = subprocess.run(
|
|
96
|
-
["docker", "run", build_id, "
|
|
96
|
+
["docker", "run", build_id, "arkitekt-next", "inspect", "templates", "-mr"],
|
|
97
97
|
stdout=subprocess.PIPE,
|
|
98
98
|
stderr=subprocess.PIPE,
|
|
99
99
|
check=True,
|
|
@@ -101,21 +101,19 @@ def inspect_definitions(build_id: str) -> Inspection:
|
|
|
101
101
|
)
|
|
102
102
|
|
|
103
103
|
# Parse the JSON output
|
|
104
|
+
correct_part = result.stdout.split("--START_TEMPLATES--")[1].split(
|
|
105
|
+
"--END_TEMPLATES--"
|
|
106
|
+
)[0]
|
|
104
107
|
|
|
105
108
|
try:
|
|
106
|
-
output = json.loads(
|
|
109
|
+
output = json.loads(correct_part)
|
|
107
110
|
except json.decoder.JSONDecodeError as e:
|
|
108
111
|
combined_error = result.stdout + result.stderr
|
|
109
112
|
raise InspectionError(
|
|
110
113
|
f"Could not decode JSON output of docker inspect. {combined_error}"
|
|
111
114
|
) from e
|
|
112
115
|
|
|
113
|
-
|
|
114
|
-
raise InspectionError(
|
|
115
|
-
"Container not found or invalid JSON output for definitions"
|
|
116
|
-
)
|
|
117
|
-
|
|
118
|
-
return output["definitions"]
|
|
116
|
+
return output
|
|
119
117
|
except subprocess.CalledProcessError as e:
|
|
120
118
|
combined_error = e.stdout + e.stderr
|
|
121
119
|
|
|
@@ -10,7 +10,7 @@ from click import Context
|
|
|
10
10
|
|
|
11
11
|
@click.group()
|
|
12
12
|
@click.pass_context
|
|
13
|
-
def
|
|
13
|
+
def kabinet(ctx: Context) -> None:
|
|
14
14
|
"""Deploy the arkitekt_next app with Port
|
|
15
15
|
|
|
16
16
|
The port deployer is an arkitekt_next plugin service, which allows you to deploy your arkitekt_next app to
|
|
@@ -23,9 +23,9 @@ def port(ctx: Context) -> None:
|
|
|
23
23
|
pass
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
kabinet.add_command(build, "build")
|
|
27
|
+
kabinet.add_command(init, "init")
|
|
28
|
+
kabinet.add_command(validate, "validate")
|
|
29
|
+
kabinet.add_command(publish, "publish")
|
|
30
|
+
kabinet.add_command(stage, "stage")
|
|
31
|
+
kabinet.add_command(wizard, "wizard")
|
|
@@ -17,7 +17,7 @@ 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
19
|
from arkitekt_next.cli.commands.server.main import server
|
|
20
|
-
from arkitekt_next.cli.commands.
|
|
20
|
+
from arkitekt_next.cli.commands.kabinet.main import kabinet
|
|
21
21
|
from arkitekt_next.cli.commands.init.main import init
|
|
22
22
|
from arkitekt_next.cli.commands.manifest.main import manifest
|
|
23
23
|
from arkitekt_next.cli.commands.inspect.main import inspect
|
|
@@ -73,7 +73,7 @@ def cli(ctx):
|
|
|
73
73
|
cli.add_command(init, "init")
|
|
74
74
|
cli.add_command(run, "run")
|
|
75
75
|
cli.add_command(gen, "gen")
|
|
76
|
-
cli.add_command(
|
|
76
|
+
cli.add_command(kabinet, "kabinet")
|
|
77
77
|
cli.add_command(manifest, "manifest")
|
|
78
78
|
cli.add_command(inspect, "inspect")
|
|
79
79
|
cli.add_command(server, "server")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "arkitekt-next"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.13"
|
|
4
4
|
description = "client for the arkitekt_next platform"
|
|
5
5
|
authors = ["jhnnsrs <jhnnsrs@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -11,10 +11,11 @@ readme = "README.md"
|
|
|
11
11
|
python = "^3.8"
|
|
12
12
|
herre = ">=0.4.3"
|
|
13
13
|
fakts = ">=0.5.0"
|
|
14
|
-
mikro-next = { version = ">=0.1.
|
|
15
|
-
kabinet = { version = ">=0.1.
|
|
16
|
-
fluss-next = { version = ">=0.1.
|
|
17
|
-
reaktion-next= { version = ">=0.1.
|
|
14
|
+
mikro-next = { version = ">=0.1.9", python = "^3.10", optional = true }
|
|
15
|
+
kabinet = { version = ">=0.1.2", optional = true }
|
|
16
|
+
fluss-next = { version = ">=0.1.63", optional = true }
|
|
17
|
+
reaktion-next= { version = ">=0.1.53", python = "^3.8", optional = true }
|
|
18
|
+
rekuest-next= { version = ">=0.2.4", python = "^3.8", optional = true }
|
|
18
19
|
rich-click = { version = ">=1.6.1", optional = true }
|
|
19
20
|
watchfiles = { version = ">=0.18.1", optional = true }
|
|
20
21
|
turms = { version = ">=0.5.0", python = "^3.9", optional = true }
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import rich_click as click
|
|
2
|
-
from importlib import import_module
|
|
3
|
-
from arkitekt_next.cli.vars import get_console, get_manifest
|
|
4
|
-
from arkitekt_next.cli.options import with_builder
|
|
5
|
-
import json
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
async def run_app(app):
|
|
9
|
-
async with app:
|
|
10
|
-
await app.rekuest.run()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@click.command("prod")
|
|
14
|
-
@click.pass_context
|
|
15
|
-
@click.option(
|
|
16
|
-
"--pretty",
|
|
17
|
-
"-p",
|
|
18
|
-
help="Should we just output json?",
|
|
19
|
-
is_flag=True,
|
|
20
|
-
default=False,
|
|
21
|
-
)
|
|
22
|
-
@with_builder
|
|
23
|
-
def definitions(
|
|
24
|
-
ctx,
|
|
25
|
-
pretty: bool,
|
|
26
|
-
builder=None,
|
|
27
|
-
):
|
|
28
|
-
"""Runs the app in production mode
|
|
29
|
-
|
|
30
|
-
\n
|
|
31
|
-
You can specify the builder to use with the --builder flag. By default, the easy builder is used, which is designed to be easy to use and to get started with.
|
|
32
|
-
|
|
33
|
-
"""
|
|
34
|
-
from rekuest.definition.registry import get_default_definition_registry
|
|
35
|
-
|
|
36
|
-
manifest = get_manifest(ctx)
|
|
37
|
-
console = get_console(ctx)
|
|
38
|
-
|
|
39
|
-
entrypoint = manifest.entrypoint
|
|
40
|
-
|
|
41
|
-
with console.status("Loading entrypoint module..."):
|
|
42
|
-
try:
|
|
43
|
-
import_module(entrypoint)
|
|
44
|
-
except ModuleNotFoundError as e:
|
|
45
|
-
console.print(f"Could not find entrypoint module {entrypoint}")
|
|
46
|
-
raise e
|
|
47
|
-
|
|
48
|
-
definitions = get_default_definition_registry().dump()
|
|
49
|
-
|
|
50
|
-
if pretty:
|
|
51
|
-
console.print(json.dumps(definitions, indent=2))
|
|
52
|
-
else:
|
|
53
|
-
print(json.dumps(definitions))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/inspect/__init__.py
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/inspect/variables.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/manifest/inspect.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/commands/manifest/version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/fluss.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/gucker.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/kabinet.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/kluster.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/konviktion.schema.graphql
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/mikro.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/mikro_next.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/napari.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/omero_ark.schema.graphql
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/rekuest.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/cli/schemas/unlok.schema.graphql
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.11 → arkitekt_next-0.7.13}/arkitekt_next/qt/assets/light/orange pulse.gif
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|