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

@@ -7,6 +7,9 @@ from fakts_next.grants.remote.demanders.static import StaticDemander
7
7
  from fakts_next.grants.remote.demanders.device_code import (
8
8
  ClientKind,
9
9
  DeviceCodeDemander,
10
+ DeviceCodeHook,
11
+ display_in_terminal,
12
+
10
13
  )
11
14
  from fakts_next.grants.remote.claimers.post import ClaimEndpointClaimer
12
15
  from fakts_next.grants.remote.demanders.redeem import RedeemDemander
@@ -19,6 +22,7 @@ def build_device_code_fakts(
19
22
  url: Optional[str] = None,
20
23
  no_cache: bool = False,
21
24
  headless: bool = False,
25
+ device_code_hook: Optional[DeviceCodeHook] = None,
22
26
  ) -> Fakts:
23
27
  """ Builds a Fakts instance for device code authentication.
24
28
 
@@ -38,6 +42,7 @@ def build_device_code_fakts(
38
42
  manifest=manifest,
39
43
  open_browser=not headless,
40
44
  requested_client_kind=ClientKind.DEVELOPMENT,
45
+ device_code_hook=device_code_hook if device_code_hook else display_in_terminal,
41
46
  )
42
47
 
43
48
  return Fakts(
arkitekt_next/builders.py CHANGED
@@ -9,6 +9,7 @@ from arkitekt_next.app.fakts import (
9
9
  )
10
10
  from .utils import create_arkitekt_next_folder
11
11
  from fakts_next.models import Manifest
12
+ from fakts_next.grants.remote.demanders.device_code import DeviceCodeHook
12
13
  from .app import App
13
14
  from .service_registry import ServiceBuilderRegistry, get_default_service_registry
14
15
  from .init_registry import InitHookRegistry, get_default_init_hook_registry
@@ -29,6 +30,7 @@ def easy(
29
30
  service_registry: Optional[ServiceBuilderRegistry] = None,
30
31
  init_hook_registry: Optional[InitHookRegistry] = None,
31
32
  instance_id: str = "main",
33
+ device_code_hook: DeviceCodeHook | None = None,
32
34
  ) -> App:
33
35
  """Creates a next app
34
36
 
@@ -132,6 +134,7 @@ def easy(
132
134
  url=url,
133
135
  no_cache=no_cache,
134
136
  headless=headless,
137
+ device_code_hook=device_code_hook,
135
138
  )
136
139
 
137
140
  params = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arkitekt-next
3
- Version: 0.17.0
3
+ Version: 0.18.0
4
4
  Summary: client for the arkitekt_next platform
5
5
  Author-email: jhnnsrs <jhnnsrs@gmail.com>
6
6
  License-Expression: MIT
@@ -8,18 +8,18 @@ License-File: LICENSE
8
8
  Requires-Python: <4,>=3.11
9
9
  Requires-Dist: click>=8.2.0
10
10
  Requires-Dist: dokker>=2.1.2
11
- Requires-Dist: fakts-next>=2
12
- Requires-Dist: kabinet>=0.5
11
+ Requires-Dist: fakts-next>=2.1
12
+ Requires-Dist: kabinet>=0.6
13
13
  Requires-Dist: koil>=2.0.4
14
14
  Requires-Dist: rath>=3.4
15
- Requires-Dist: rekuest-next>=0.11.1
15
+ Requires-Dist: rekuest-next>=0.13
16
16
  Requires-Dist: rich-click>=1.8.8
17
17
  Requires-Dist: semver>=3.0.4
18
18
  Requires-Dist: watchfiles>=1.0.5
19
19
  Provides-Extra: all
20
20
  Requires-Dist: fluss-next>=0.2.0; extra == 'all'
21
- Requires-Dist: kabinet>=0.2.0; extra == 'all'
22
- Requires-Dist: mikro-next>=0.6; extra == 'all'
21
+ Requires-Dist: kabinet>=0.6.0; extra == 'all'
22
+ Requires-Dist: mikro-next>=0.7.2; extra == 'all'
23
23
  Requires-Dist: reaktion-next>=0.2.0; extra == 'all'
24
24
  Requires-Dist: rekuest-next>=0.7; extra == 'all'
25
25
  Requires-Dist: rich-click>=1.6.1; extra == 'all'
@@ -41,13 +41,13 @@ Requires-Dist: kraph>=0.2.0; extra == 'extended'
41
41
  Provides-Extra: fluss
42
42
  Requires-Dist: fluss-next>=0.2.0; extra == 'fluss'
43
43
  Provides-Extra: kabinet
44
- Requires-Dist: kabinet>=0.4.0; extra == 'kabinet'
44
+ Requires-Dist: kabinet>=0.6.0; extra == 'kabinet'
45
45
  Provides-Extra: kraph
46
46
  Requires-Dist: kraph>=0.2.0; extra == 'kraph'
47
47
  Provides-Extra: lovekit
48
48
  Requires-Dist: lovekit>=0.2.0; extra == 'lovekit'
49
49
  Provides-Extra: mikro
50
- Requires-Dist: mikro-next>=0.6.0; extra == 'mikro'
50
+ Requires-Dist: mikro-next>=0.7.2; extra == 'mikro'
51
51
  Provides-Extra: reaktion
52
52
  Requires-Dist: reaktion-next>=0.2.0; extra == 'reaktion'
53
53
  Provides-Extra: unlok
@@ -1,5 +1,5 @@
1
1
  arkitekt_next/__init__.py,sha256=mIXB8TLD16DjXjEjVqTsn-CmN-1rUctmxDkpH6D7y6A,3198
2
- arkitekt_next/builders.py,sha256=1E9iM398QPRP8HEVEuzcU24WW2GNOQMZ0n6G9FiIJCc,7276
2
+ arkitekt_next/builders.py,sha256=tbzXg79mwZZ4hnx3NUtv4h63sNpzq7mm3MXj4xed3Qo,7449
3
3
  arkitekt_next/constants.py,sha256=N_tP85BDHPiOG663wwaEyMWYiUGtL2T_h4wBVPgsSUU,87
4
4
  arkitekt_next/init_registry.py,sha256=ePt5fYZ11ra30jXdOlhMQUDMyqquodXbMR8f8y8ngwg,3470
5
5
  arkitekt_next/inspect.py,sha256=iJKyN_9jlrsoEEgl_kMriEZ46uKDNV-vz6PwzqDRE3g,587
@@ -10,7 +10,7 @@ arkitekt_next/tqdm.py,sha256=KLGeviRa8iEx89OENMXOuoz8hRDKxDktwG3L8oPlR7I,3415
10
10
  arkitekt_next/utils.py,sha256=a1tZp8KEjdBJg-Dler60xeNmxcsMSiMYQpof2DqUEwI,2446
11
11
  arkitekt_next/app/__init__.py,sha256=ZekdO9ekv7UFF94yJljHwg6yMnH1PUiwtWNuh1eWX_I,40
12
12
  arkitekt_next/app/app.py,sha256=zj8RWXtB9d_C7mfeFxQSOO_flC9hDddmmCRwbIzHeSE,1945
13
- arkitekt_next/app/fakts.py,sha256=YLYcRutJ2TzkJghqp4tCM7RwrHHDGh9BwiRqwxILRqw,3549
13
+ arkitekt_next/app/fakts.py,sha256=mHbPq6XhKR3t9hCtWlTsw8lnUgAG5uYMGMoYjjklqCY,3742
14
14
  arkitekt_next/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  arkitekt_next/cli/constants.py,sha256=ONXKA8LRxXQkOQ56ZElVMZSTiaIH1LE_ikmUUKem98g,1410
16
16
  arkitekt_next/cli/errors.py,sha256=zLTjaCbun6qM2nTldjyZd-DvykqKn5A3Gn80uYdx7Vc,93
@@ -93,8 +93,8 @@ arkitekt_next/qt/assets/light/green pulse.gif,sha256=cUd2F3Qlvjb7SnsU-LjGgeLTa8K
93
93
  arkitekt_next/qt/assets/light/orange pulse.gif,sha256=0gDvrRed0mzZZPHB4tP6vptx7myUCAa_hEVGdjRhNy8,94769
94
94
  arkitekt_next/qt/assets/light/pink pulse.gif,sha256=rxd6ZTHSIG9JZuuHhi3jiSB_JYFBZpy7OWUeZETlhQ4,107513
95
95
  arkitekt_next/qt/assets/light/red pulse.gif,sha256=U7WLbZvSl5e-Ob5RmawtlC0Rh9VVHxkjDbGjj7NYVUo,108749
96
- arkitekt_next-0.17.0.dist-info/METADATA,sha256=z2of9kJD3ExzZVT2DTJ3pPUnnUPvLi0F-KjLltEWcjY,5744
97
- arkitekt_next-0.17.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
98
- arkitekt_next-0.17.0.dist-info/entry_points.txt,sha256=IY-mUEDBU6QncqnYw-Ufw5bvNNXjqSlLf1uexZZCJhc,61
99
- arkitekt_next-0.17.0.dist-info/licenses/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
100
- arkitekt_next-0.17.0.dist-info/RECORD,,
96
+ arkitekt_next-0.18.0.dist-info/METADATA,sha256=J25MqIFyZqDtSilbqX4Uj0FXS_77euDTs0eNFsnc210,5746
97
+ arkitekt_next-0.18.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
98
+ arkitekt_next-0.18.0.dist-info/entry_points.txt,sha256=IY-mUEDBU6QncqnYw-Ufw5bvNNXjqSlLf1uexZZCJhc,61
99
+ arkitekt_next-0.18.0.dist-info/licenses/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
100
+ arkitekt_next-0.18.0.dist-info/RECORD,,