arkitekt-next 0.8.11__py3-none-any.whl → 0.8.12__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 pydantic import BaseModel
1
2
  import rich_click as click
2
3
  from importlib import import_module
3
4
  from arkitekt_next.apps.types import App
@@ -72,9 +73,9 @@ def templates(
72
73
  if rekuest is None:
73
74
  console.print("No rekuest service found in app")
74
75
  return
75
-
76
+
76
77
  x = {
77
- key: item.dict(by_alias=True)
78
+ key: item.model_dump(by_alias=True)
78
79
  for key, item in rekuest.agent.extensions[
79
80
  "default"
80
81
  ].definition_registry.templates.items()
@@ -110,7 +110,7 @@ def init(
110
110
  panel = Panel(
111
111
  title=f"Created new flavour [bold]{flavour}[/bold]\n",
112
112
  renderable="You can now edit the Dockerfile and add selectors to the config.yaml file\n"
113
- + "To learn more about selectors and how flavours work, please visit [link=https://arkitekt_next.live]https://arkitekt_next.live[/link]",
113
+ + "To learn more about selectors and how flavours work, please visit [link=https://arkitekt.live]https://arkitekt.live[/link]",
114
114
  style="green",
115
115
  )
116
116
 
@@ -19,7 +19,7 @@ def version(ctx):
19
19
  ArkitektNext manifests versioning follow [link=https://semver.org]semver[/link] and are used to version the app.
20
20
  This provides an orthogonal way to version the app, beyond node versioning. The version is used to
21
21
  track changes and to provide a way to update the app in the platform. For more information, please visit
22
- [link=https://arkitekt_next.live]https://arkitekt_next.live[/link]
22
+ [link=https://arkitekt.live]https://arkitekt.live[/link]
23
23
 
24
24
  """
25
25
 
arkitekt_next/cli/main.py CHANGED
@@ -52,7 +52,7 @@ def cli(ctx):
52
52
 
53
53
  This is the CLI for the ArkitektNext Python SDK. It allows you to create and deploy ArkitektNext Apps from your python code
54
54
  as well as to run them locally for testing and development. For more information about ArkitektNext, please visit
55
- [link=https://arkitekt_next.live]https://arkitekt_next.live[/link]
55
+ [link=https://arkitekt.live]https://arkitekt.live[/link]
56
56
  """
57
57
  sys.path.append(os.getcwd())
58
58
 
@@ -6,7 +6,7 @@ WELCOME_MESSAGE = (
6
6
  )
7
7
 
8
8
 
9
- LOGO = """
9
+ LOGO = r"""
10
10
  _ _ _ _ _
11
11
  __ _ _ __| | _(_) |_ ___| | _| |_
12
12
  / _` | '__| |/ / | __/ _ \ |/ / __|
@@ -15,4 +15,4 @@ LOGO = """
15
15
 
16
16
  """
17
17
 
18
- ERROR_EPILOGUE = "To find out more, visit [link=https://arkitekt_next.live]https://arkitekt_next.live[/link]"
18
+ ERROR_EPILOGUE = "To find out more, visit [link=https://arkitekt.live]https://arkitekt.live[/link]"
@@ -1,5 +1,5 @@
1
1
  from importlib.metadata import version
2
- from pydantic import BaseModel, Field, validator
2
+ from pydantic import BaseModel, Field, field_validator
3
3
  import datetime
4
4
  from typing import List, Optional, Union, Literal, Dict
5
5
  from enum import Enum
@@ -41,7 +41,7 @@ class Manifest(BaseModel):
41
41
  scopes: List[str]
42
42
  created_at: datetime.datetime = Field(default_factory=datetime.datetime.now)
43
43
 
44
- @validator("version", pre=True)
44
+ @field_validator("version", mode="before")
45
45
  def version_must_be_semver(cls, v) -> str:
46
46
  """Checks that the version is a valid semver version"""
47
47
  if isinstance(v, str):
@@ -233,16 +233,18 @@ class Flavour(BaseModel):
233
233
  ]
234
234
  )
235
235
 
236
- @validator("build_command", each_item=True, always=True)
237
- def check_valid_template_name(cls, v):
238
- """Checks that the template name is valid"""
239
- for literal_text, field_name, format_spec, conversion in Formatter().parse(v):
240
- if field_name is not None:
241
- assert (
242
- field_name in ALLOWED_BUILDER_KEYS
243
- ), f"Invalid template key {field_name}. Allowed keys are {ALLOWED_BUILDER_KEYS}"
236
+ @field_validator("build_command", mode="before")
237
+ def check_valid_template_name(cls, value):
238
+ """Checks that the build_command templates are valid"""
244
239
 
245
- return v
240
+ for v in value:
241
+ for literal_text, field_name, format_spec, conversion in Formatter().parse(v):
242
+ if field_name is not None:
243
+ assert (
244
+ field_name in ALLOWED_BUILDER_KEYS
245
+ ), f"Invalid template key {field_name}. Allowed keys are {ALLOWED_BUILDER_KEYS}"
246
+
247
+ return value
246
248
 
247
249
  def generate_build_command(self, tag: str, relative_dir: str):
248
250
  """Generates the build command for this flavour"""
@@ -1,4 +1,4 @@
1
- REPO_URL = "https://arkitekt_next.live/repo.json"
1
+ REPO_URL = "https://arkitekt.live/repo.json"
2
2
 
3
3
 
4
4
  DEFAULT_ARKITEKT_URL = "http://127.0.0.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arkitekt-next
3
- Version: 0.8.11
3
+ Version: 0.8.12
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -52,7 +52,7 @@ streaming analysis for mikroscopy
52
52
 
53
53
  arkitekt_next is the python client for the arkitekt_next platform. It allows you to utilize the full extent of the platform from your python code.
54
54
  To understand the idea behind arkitekt_next, you need to understand the idea behind the arkitekt_next platform.
55
- (More on this in the [documentation](https://arkitekt_next.live))
55
+ (More on this in the [documentation](https://arkitekt.live))
56
56
 
57
57
  ## Features
58
58
 
@@ -69,14 +69,12 @@ pip install arkitekt-next[all]
69
69
 
70
70
  This installs all dependencies for the arkitekt_next platform, inlcuding the arkitekt_next CLI, which can be used to develop and create apps, containerize them and deploy t
71
71
 
72
-
73
72
  arkitekt_next is relying heavily on asyncio patters and therfore supports python 3.8 and above. It also relies on the pydantic stack for serialization.
74
73
 
75
-
76
- ## App
74
+ ## App
77
75
 
78
76
  You can use the cli to create python based apps for the arkitekt_next platform, profiting from a battery of features like easy GUI creation based on
79
- type annotations, orchestration of real-time (in memoery) workflows, data hosting, easy packaging and distribution in docker containers, etc...
77
+ type annotations, orchestration of real-time (in memoery) workflows, data hosting, easy packaging and distribution in docker containers, etc...
80
78
 
81
79
  To get started create a directory and run
82
80
 
@@ -108,8 +106,7 @@ Run example:
108
106
  arkitekt-next run dev
109
107
  ```
110
108
 
111
-
112
- For more details on how to create an app follow the tutorials on https://arkitekt_next.live.
109
+ For more details on how to create an app follow the tutorials on https://arkitekt.live.
113
110
 
114
111
  ## Usage with complex Datastructures
115
112
 
@@ -156,8 +153,5 @@ def complex_call(x: ComplexStrucuture) -> int:
156
153
 
157
154
  ```
158
155
 
159
-
160
-
161
- Check out the arkitekt_next [documentation](https://arkitekt_next.live) for usage of this libary
162
-
156
+ Check out the arkitekt_next [documentation](https://arkitekt.live) for usage of this libary
163
157
 
@@ -60,11 +60,11 @@ arkitekt_next/cli/commands/init/main.py,sha256=1ZbZDBECZRxlcnulycdS15s-uQ5ngx4xP
60
60
  arkitekt_next/cli/commands/inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
61
  arkitekt_next/cli/commands/inspect/main.py,sha256=Bu1vAZudkFCtjDnZAB8yQLDt-UKY9pJGhLBlEfDqtkw,626
62
62
  arkitekt_next/cli/commands/inspect/requirements.py,sha256=Pj1akKhEtlbtat7Ug2UbqXYbDeYXubW35uKRoOew6wc,1902
63
- arkitekt_next/cli/commands/inspect/templates.py,sha256=lc0lGwhMeDKWbKvWW7Vs6McqZ02vadtHWKMbPIyx_7E,2249
63
+ arkitekt_next/cli/commands/inspect/templates.py,sha256=f_jzqvwLGhfcRcHr1bxUR248H-ylkTyF6Y1bygNg2ls,2290
64
64
  arkitekt_next/cli/commands/inspect/variables.py,sha256=LonDlbS2qH1v-jD6RfEhTv-mxmgeBMKqD3oO2iDJRjE,2698
65
65
  arkitekt_next/cli/commands/kabinet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  arkitekt_next/cli/commands/kabinet/build.py,sha256=Yr368xRyIXrD7bZ-NI-NFoXGU5ulydQ_SSyFFoU_cRw,8677
67
- arkitekt_next/cli/commands/kabinet/init.py,sha256=8GDGUGQgoWv7Vcee7vhFcGqvJzP7hUvUrX7RMt_IZGs,3610
67
+ arkitekt_next/cli/commands/kabinet/init.py,sha256=YcxXlMick7Xd2XUjmA9vyku0QDGACw1PEWpfJum42E8,3600
68
68
  arkitekt_next/cli/commands/kabinet/main.py,sha256=U5EWekRTsMZZ34abWFfwilhzrd-zZtpZbl8RsLN_bC8,1008
69
69
  arkitekt_next/cli/commands/kabinet/publish.py,sha256=uPgDAlo-NBTL6wLyNWX55JJ7T5ZcRNKMLd9RRbhOod4,3568
70
70
  arkitekt_next/cli/commands/kabinet/stage.py,sha256=bXpC8fDmG6qFQVuLhqTCieOJnvFafj3Flg1BdIeciEw,2025
@@ -75,7 +75,7 @@ arkitekt_next/cli/commands/manifest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
75
75
  arkitekt_next/cli/commands/manifest/inspect.py,sha256=eqYYt3M8XiYCJONarikVVa8uK7Hh7DfB2b3fOOQ3dlk,1370
76
76
  arkitekt_next/cli/commands/manifest/main.py,sha256=mOjsZSQeYorm38u4mg3IHsK_h8fTVprYYtvKpbG93V8,662
77
77
  arkitekt_next/cli/commands/manifest/scopes.py,sha256=sw0HRy8GliEcmx3Sh6cPRpBkf1vxAGJwLgIO63ZB_t4,4879
78
- arkitekt_next/cli/commands/manifest/version.py,sha256=tA-a35QlcobUwoPsgGLQL9_D0E-HZvawsfO4l7DoX-Y,4832
78
+ arkitekt_next/cli/commands/manifest/version.py,sha256=3JdcXqiFeCvIaEpsMfeSKWU_uQehDkEawEpdSxWaKSA,4822
79
79
  arkitekt_next/cli/commands/manifest/wizard.py,sha256=a8rIHgtmKuw-L4E3eO3kXwXv0TM2pN4Lq75y2QKXmcA,2498
80
80
  arkitekt_next/cli/commands/run/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
81
81
  arkitekt_next/cli/commands/run/dev.py,sha256=3px8ZulJU7rLonED0ZW2Ec1yFyXAK--b0jrB2yoVj50,10046
@@ -88,7 +88,7 @@ arkitekt_next/cli/dockerfiles/vanilla.dockerfile,sha256=0ujdG22rZ6v2n5TMHNA4HR5f
88
88
  arkitekt_next/cli/errors.py,sha256=zLTjaCbun6qM2nTldjyZd-DvykqKn5A3Gn80uYdx7Vc,93
89
89
  arkitekt_next/cli/inspect.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
90
90
  arkitekt_next/cli/io.py,sha256=uRhq3SCI-sCiRp9TXK_hFqu5xub1h49XNixFqybHCpc,6821
91
- arkitekt_next/cli/main.py,sha256=aMArNPvmreSCJI30UN3plueWfGzVvUL5Fx53Z-5dtkw,2237
91
+ arkitekt_next/cli/main.py,sha256=Ua7sq_OfC491F6r6zNs_oEiR4jVOsZwxLpX0ZXR0Jk0,2227
92
92
  arkitekt_next/cli/options.py,sha256=hSKdSYabK1MuioBRUsADjQIPSp9H2YeczmcyAsFUprI,3791
93
93
  arkitekt_next/cli/schemas/fluss.schema.graphql,sha256=MqrSpOxtWO9kWFCoUn9ySBPhIH3XozFiqrQl2zjEbiQ,35803
94
94
  arkitekt_next/cli/schemas/gucker.schema.graphql,sha256=r_KL-MoFRCGUobbtcBLCnpmFcali2A12TguynqQgmN4,152947
@@ -106,14 +106,14 @@ arkitekt_next/cli/schemas/rekuest_next.schema.graphql,sha256=LcYtS9AjTRlSBPllSIm
106
106
  arkitekt_next/cli/schemas/unlok.schema.graphql,sha256=fXR846snIBIqkuQ-PlYnSkQjkFVmM6NVZLlcMKgbr8E,18216
107
107
  arkitekt_next/cli/templates/filter.py,sha256=mD2jdNEXrZNagC_8WtuTisGJrGIbJDSylCvh19cF49I,650
108
108
  arkitekt_next/cli/templates/simple.py,sha256=IbcThJ5LryXVFQUdzxfHQCtzSNxEQWTxbD__Ygxsp4M,1171
109
- arkitekt_next/cli/texts.py,sha256=080QLAe8dhklkfoA8Yk6fLrQeRoUrTQLgWCZiWl7bNk,689
110
- arkitekt_next/cli/types.py,sha256=JGV0lREJl8WcDZ13y3TRGeFPVzhUlA0gWpB8HSCMjfc,10448
109
+ arkitekt_next/cli/texts.py,sha256=6qK9amHXXHRnXPOgto9QVyl3lwwmWOebL673xFfrUUk,680
110
+ arkitekt_next/cli/types.py,sha256=LLn9Z4_5OQPJO_kpqtN33pVzhWf-9HyvKDAUGpx8Dg8,10521
111
111
  arkitekt_next/cli/ui.py,sha256=BR_AOsBIIHwojI5otBzT_560-ep5Dw1xAHKsO2zOOJQ,3493
112
112
  arkitekt_next/cli/utils.py,sha256=rl1hfQIVzepLHPN_ZWuvfVH-IIVqcSfiFGyfNtL1XCo,445
113
113
  arkitekt_next/cli/validators.py,sha256=XkLrOrDzBJwcG1keTawa_NJPt3QIBhb5KjepeH4N1KA,719
114
114
  arkitekt_next/cli/vars.py,sha256=ev7cKDSPoik8hU9A_ohNpjRZX4FT1GYJaBoGLnxCKjU,982
115
115
  arkitekt_next/cli/versions/v1.yaml,sha256=rv2-F6FQbTZi_H6pSE_csdICdtKBObDdoo_asOFi43Y,12
116
- arkitekt_next/constants.py,sha256=OMNXceT6p9hxo3DLLH-632HtZqOe29E_1vrdeNiP4ZE,94
116
+ arkitekt_next/constants.py,sha256=sJkLlkH21REjbpiSHnXCiW0lWOwWT-2VqGvWlxjQePY,89
117
117
  arkitekt_next/qt/__init__.py,sha256=5tCCd-FA3sMN9Lo5JRUYUM6xgs2zxyHj5YDpdWYbR0w,471
118
118
  arkitekt_next/qt/assets/dark/gear.png,sha256=nYl1JZhcpwd7s5FgG2g-1RpkK7TH_QQRqJMmK6r0BpU,6296
119
119
  arkitekt_next/qt/assets/dark/green pulse.gif,sha256=cUd2F3Qlvjb7SnsU-LjGgeLTa8KoPgu3C-LNrixIQds,105386
@@ -132,8 +132,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
132
132
  arkitekt_next/service_registry.py,sha256=oU1RrvNuDbLutvCS05OhbpKMP8d8gKaRU1ldu-OrWDk,3583
133
133
  arkitekt_next/tqdm.py,sha256=lQcJI5Q6Py7Gy88hOCiJujjPEEGd8G2k1mOVJJ6oYe8,1531
134
134
  arkitekt_next/utils.py,sha256=QETdzn_GIMSw6LdaXL89bqvqp9MGwEBK8Lj54MpnMwc,2396
135
- arkitekt_next-0.8.11.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
136
- arkitekt_next-0.8.11.dist-info/METADATA,sha256=iQgma_7NtP6MOtnIgfgDMV0SfJvTFGOhPtQDLYAjW1k,6085
137
- arkitekt_next-0.8.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
138
- arkitekt_next-0.8.11.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
139
- arkitekt_next-0.8.11.dist-info/RECORD,,
135
+ arkitekt_next-0.8.12.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
136
+ arkitekt_next-0.8.12.dist-info/METADATA,sha256=X9uaFC7UJyNHzmKjNaP2dAb760gUNvrwIZARXUJifLM,6062
137
+ arkitekt_next-0.8.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
138
+ arkitekt_next-0.8.12.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
139
+ arkitekt_next-0.8.12.dist-info/RECORD,,