arkitekt-next 0.8.72__py3-none-any.whl → 0.8.74__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.

@@ -1,3 +1,4 @@
1
+ from arkitekt_next import get_current_service_registry
1
2
  import rich_click as click
2
3
  from importlib import import_module
3
4
  from arkitekt_next.apps.types import App
@@ -29,12 +30,10 @@ async def run_app(app):
29
30
  is_flag=True,
30
31
  default=False,
31
32
  )
32
- @with_builder
33
33
  def requirements(
34
34
  ctx,
35
35
  pretty: bool,
36
36
  machine_readable: bool,
37
- builder: str = "arkitekt_next.builders.easy",
38
37
  ):
39
38
  """Checks the requirements of the app
40
39
 
@@ -49,7 +48,6 @@ def requirements(
49
48
  entrypoint_file = f"{manifest.entrypoint}.py"
50
49
  os.path.realpath(entrypoint_file)
51
50
 
52
- builder_func = import_builder(builder)
53
51
 
54
52
  entrypoint = manifest.entrypoint
55
53
 
@@ -60,13 +58,14 @@ def requirements(
60
58
  console.print(f"Could not find entrypoint module {entrypoint}")
61
59
  raise e
62
60
 
63
- app: App = builder_func(
64
- identifier=identifier,
65
- version="dev",
66
- logo=manifest.logo,
67
- )
68
61
 
69
- x = [item.model_dump(by_alias=True) for item in app.manifest.requirements]
62
+ service_registry = get_current_service_registry()
63
+
64
+
65
+
66
+ x = [item.model_dump(by_alias=True) for item in service_registry.get_requirements()]
67
+
68
+
70
69
  if machine_readable:
71
70
  print("--START_REQUIREMENTS--" + json.dumps(x) + "--END_REQUIREMENTS--")
72
71
 
@@ -11,10 +11,8 @@ import os
11
11
 
12
12
  from arkitekt_next.constants import DEFAULT_ARKITEKT_URL
13
13
 
14
+ from rekuest_next.agents.registry import get_default_extension_registry
14
15
 
15
- async def run_app_inspection(app):
16
- async with app:
17
- return await app.services.get("rekuest").agent.adump_registry()
18
16
 
19
17
 
20
18
  @click.command("prod")
@@ -33,14 +31,6 @@ async def run_app_inspection(app):
33
31
  is_flag=True,
34
32
  default=False,
35
33
  )
36
- @click.option(
37
- "--url",
38
- "-u",
39
- help="The fakts_next server to use",
40
- type=str,
41
- default=DEFAULT_ARKITEKT_URL,
42
- )
43
- @with_builder
44
34
  def templates(
45
35
  ctx,
46
36
  pretty: bool,
@@ -83,17 +73,35 @@ def templates(
83
73
  )
84
74
 
85
75
  rekuest = app.services.get("rekuest")
76
+
77
+ registry = get_default_extension_registry()
78
+
79
+ global_list = []
80
+
81
+ for extension in registry.agent_extensions.values():
82
+
83
+ definition_registry = extension.get_definition_registry()
84
+
85
+ to_be_created_templates = tuple(
86
+ x.model_dump() for x in definition_registry.templates.values()
87
+ )
88
+ global_list.extend(to_be_created_templates)
89
+
90
+
91
+
92
+
93
+
94
+ console.print(f"Templates to be created: {len(global_list)}")
95
+
86
96
  if rekuest is None:
87
97
  console.print("No rekuest service found in app")
88
98
  return
89
99
 
90
- x = asyncio.run(run_app_inspection(app))
91
-
92
100
  if machine_readable:
93
- print("--START_TEMPLATES--" + json.dumps(x) + "--END_TEMPLATES--")
101
+ print("--START_TEMPLATES--" + json.dumps(global_list) + "--END_TEMPLATES--")
94
102
 
95
103
  else:
96
104
  if pretty:
97
- console.print(json.dumps(x, indent=2))
105
+ console.print(json.dumps(global_list, indent=2))
98
106
  else:
99
- print(json.dumps(x))
107
+ print(json.dumps(global_list))
@@ -53,7 +53,7 @@ def scan_module(module_path):
53
53
 
54
54
  @click.command()
55
55
  @click.pass_context
56
- def variables(ctx, entrypoint):
56
+ def variables(ctx):
57
57
  """Scans your arkitekt_next app for unsafe variables
58
58
 
59
59
  When designing an ArkitektNext app, you should not have variables in your
@@ -66,10 +66,8 @@ def variables(ctx, entrypoint):
66
66
  """
67
67
 
68
68
  console = get_console(ctx)
69
-
70
- if not entrypoint:
71
- manifest = get_manifest(ctx)
72
- entrypoint = manifest.entrypoint
69
+ manifest = get_manifest(ctx)
70
+ entrypoint = manifest.entrypoint
73
71
 
74
72
  variables = scan_module(entrypoint)
75
73
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arkitekt-next
3
- Version: 0.8.72
3
+ Version: 0.8.74
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -33,17 +33,17 @@ Requires-Dist: cryptography (>=40.0.8) ; (python_version >= "3.9") and (extra ==
33
33
  Requires-Dist: dokker (>=1.0.0)
34
34
  Requires-Dist: elektro (>=0.4.1) ; (python_version >= "3.9") and (extra == "elektro")
35
35
  Requires-Dist: fakts-next (>=1.0.5)
36
- Requires-Dist: fluss-next (>=0.1.96) ; (python_version >= "3.9") and (extra == "fluss" or extra == "all")
36
+ Requires-Dist: fluss-next (>=0.1.97) ; (python_version >= "3.9") and (extra == "fluss" or extra == "all")
37
37
  Requires-Dist: herre-next (>=1.0.2)
38
- Requires-Dist: kabinet (>=0.1.47) ; (python_version >= "3.9" and python_version < "4.0") and (extra == "kabinet" or extra == "all")
38
+ Requires-Dist: kabinet (>=0.1.48) ; (python_version >= "3.9" and python_version < "4.0") and (extra == "kabinet" or extra == "all")
39
39
  Requires-Dist: koil (>=1.0.3)
40
40
  Requires-Dist: kraph (>=0.1.104) ; (python_version >= "3.9") and (extra == "kraph" or extra == "extended")
41
41
  Requires-Dist: lovekit (>=0.1.19) ; (python_version >= "3.10") and (extra == "lovekit" or extra == "stream")
42
42
  Requires-Dist: mikro-next (>=0.1.60) ; (python_version >= "3.11" and python_version < "4.0") and (extra == "mikro" or extra == "all")
43
43
  Requires-Dist: namegenerator (>=1.0.6) ; (python_version >= "3.9") and (extra == "blok")
44
44
  Requires-Dist: netifaces (>=0.11.0) ; (python_version >= "3.9") and (extra == "blok")
45
- Requires-Dist: reaktion-next (>=0.1.87) ; (python_version >= "3.9") and (extra == "reaktion" or extra == "all")
46
- Requires-Dist: rekuest-next (>=0.2.70) ; (python_version >= "3.9") and (extra == "cli" or extra == "rekuest" or extra == "all")
45
+ Requires-Dist: reaktion-next (>=0.1.88) ; (python_version >= "3.9") and (extra == "reaktion" or extra == "all")
46
+ Requires-Dist: rekuest-next (>=0.2.72) ; (python_version >= "3.9") and (extra == "cli" or extra == "rekuest" or extra == "all")
47
47
  Requires-Dist: rich-click (>=1.6.1) ; extra == "cli" or extra == "all" or extra == "blok"
48
48
  Requires-Dist: semver (>=3.0.1) ; extra == "cli" or extra == "all"
49
49
  Requires-Dist: turms (>=0.8.2) ; (python_version >= "3.9") and (extra == "cli" or extra == "all")
@@ -68,9 +68,9 @@ arkitekt_next/cli/commands/init/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
68
68
  arkitekt_next/cli/commands/init/main.py,sha256=1ZbZDBECZRxlcnulycdS15s-uQ5ngx4xP3T1v-gkJ3U,5435
69
69
  arkitekt_next/cli/commands/inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
70
  arkitekt_next/cli/commands/inspect/main.py,sha256=Bu1vAZudkFCtjDnZAB8yQLDt-UKY9pJGhLBlEfDqtkw,626
71
- arkitekt_next/cli/commands/inspect/requirements.py,sha256=bLYaWddScW2_qQFCwRtCFUZNM3N-ZnS26ee9xXQAi14,1862
72
- arkitekt_next/cli/commands/inspect/templates.py,sha256=SE3V4eK0NL81eIWsGdEDfDp76B542O8niW8lxh9t4Oc,2481
73
- arkitekt_next/cli/commands/inspect/variables.py,sha256=LonDlbS2qH1v-jD6RfEhTv-mxmgeBMKqD3oO2iDJRjE,2698
71
+ arkitekt_next/cli/commands/inspect/requirements.py,sha256=7RFrflByOSJ40Ac-EDiLkQGvQTuENNL8Ox7cxeVUA6A,1774
72
+ arkitekt_next/cli/commands/inspect/templates.py,sha256=zJYOOeFUd1Enblfy6YOUD-ET4bjp2pOfDV_2J1gRwUY,2759
73
+ arkitekt_next/cli/commands/inspect/variables.py,sha256=sBVTKCI98BWAUiqhF5xRu_jQDgwk8sGfcyEozpAnDwg,2654
74
74
  arkitekt_next/cli/commands/kabinet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
75
  arkitekt_next/cli/commands/kabinet/build.py,sha256=ntDM0bcjDLJI6KUC3IiCj8Y-cwQ8NcFr7Fz_qV-UQE8,9956
76
76
  arkitekt_next/cli/commands/kabinet/init.py,sha256=otVakPcD6bC-7VtmqiLWNZKi3BE9evtMVv0TOGRnaD4,3583
@@ -142,8 +142,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
142
142
  arkitekt_next/service_registry.py,sha256=gMXyFftwuSoda9V13QEiNqFuwSBB2ss62dOjnXOetK0,4973
143
143
  arkitekt_next/tqdm.py,sha256=lQcJI5Q6Py7Gy88hOCiJujjPEEGd8G2k1mOVJJ6oYe8,1531
144
144
  arkitekt_next/utils.py,sha256=Cf7B1-E7_NgBnV2vxIIfZRStiCYPopQqNJFjJwU3Uog,2403
145
- arkitekt_next-0.8.72.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
146
- arkitekt_next-0.8.72.dist-info/METADATA,sha256=XA3BpaH2JE_GiFvRf_loADd1S_r5uIy4Ai-CuzgR2m8,6639
147
- arkitekt_next-0.8.72.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
148
- arkitekt_next-0.8.72.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
149
- arkitekt_next-0.8.72.dist-info/RECORD,,
145
+ arkitekt_next-0.8.74.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
146
+ arkitekt_next-0.8.74.dist-info/METADATA,sha256=NFLQBVac0hopVQ_Simq7reu5LEHu95KkMRuzNxR-emQ,6639
147
+ arkitekt_next-0.8.74.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
148
+ arkitekt_next-0.8.74.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
149
+ arkitekt_next-0.8.74.dist-info/RECORD,,