arkitekt-next 0.7.13__py3-none-any.whl → 0.7.15__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/builders.py +1 -97
- arkitekt_next/qt/__init__.py +4 -0
- arkitekt_next/qt/builder.py +111 -0
- {arkitekt_next-0.7.13.dist-info → arkitekt_next-0.7.15.dist-info}/METADATA +2 -2
- {arkitekt_next-0.7.13.dist-info → arkitekt_next-0.7.15.dist-info}/RECORD +8 -7
- {arkitekt_next-0.7.13.dist-info → arkitekt_next-0.7.15.dist-info}/LICENSE +0 -0
- {arkitekt_next-0.7.13.dist-info → arkitekt_next-0.7.15.dist-info}/WHEEL +0 -0
- {arkitekt_next-0.7.13.dist-info → arkitekt_next-0.7.15.dist-info}/entry_points.txt +0 -0
arkitekt_next/builders.py
CHANGED
|
@@ -7,14 +7,12 @@ from arkitekt_next.apps.service.fakts_next import (
|
|
|
7
7
|
build_arkitekt_next_redeem_fakts_next,
|
|
8
8
|
)
|
|
9
9
|
from arkitekt_next.apps.service.herre import build_arkitekt_next_herre
|
|
10
|
-
from arkitekt_next.apps.service.fakts_qt import build_arkitekt_next_qt_fakts
|
|
11
|
-
from arkitekt_next.apps.service.herre_qt import build_arkitekt_next_qt_herre
|
|
12
10
|
from .utils import create_arkitekt_next_folder
|
|
13
11
|
from .model import Manifest
|
|
14
12
|
from .apps.types import App
|
|
15
13
|
from .service_registry import ServiceBuilderRegistry, check_and_import_services
|
|
16
14
|
from arkitekt_next.constants import DEFAULT_ARKITEKT_URL
|
|
17
|
-
|
|
15
|
+
|
|
18
16
|
|
|
19
17
|
|
|
20
18
|
def easy(
|
|
@@ -153,97 +151,3 @@ def easy(
|
|
|
153
151
|
return app
|
|
154
152
|
|
|
155
153
|
|
|
156
|
-
def publicqt(
|
|
157
|
-
identifier: str,
|
|
158
|
-
version: str = "latest",
|
|
159
|
-
logo: Optional[str] = None,
|
|
160
|
-
scopes: Optional[List[str]] = None,
|
|
161
|
-
url: str = "http://localhost:11000",
|
|
162
|
-
headless: bool = False,
|
|
163
|
-
log_level: str = "ERROR",
|
|
164
|
-
token: Optional[str] = None,
|
|
165
|
-
no_cache: bool = False,
|
|
166
|
-
instance_id: str = "main",
|
|
167
|
-
redeem_token: Optional[str] = None,
|
|
168
|
-
app_kind: str = "desktop",
|
|
169
|
-
registry: Optional[ServiceBuilderRegistry] = None,
|
|
170
|
-
parent: Optional[QtWidgets.QWidget] = None,
|
|
171
|
-
beacon_widget: Optional[QtWidgets.QWidget] = None,
|
|
172
|
-
login_widget: Optional[QtWidgets.QWidget] = None,
|
|
173
|
-
settings: Optional[QtCore.QSettings] = None,
|
|
174
|
-
**kwargs,
|
|
175
|
-
) -> App:
|
|
176
|
-
"""Public QtApp creation
|
|
177
|
-
|
|
178
|
-
A simple way to create an Arkitekt app with a public grant (allowing users to sign
|
|
179
|
-
in with the application ) utlizing a retrieve grant (necessating a previous configuration
|
|
180
|
-
of the application on the server side)
|
|
181
|
-
|
|
182
|
-
Args:
|
|
183
|
-
identifier (str): The apps identifier
|
|
184
|
-
version (str, optional): The apps verion. Defaults to "latest".
|
|
185
|
-
parent (QtWidget, optional): The QtParent (for the login and server select widget). Defaults to None.
|
|
186
|
-
|
|
187
|
-
Returns:
|
|
188
|
-
Arkitekt: The Arkitekt app
|
|
189
|
-
"""
|
|
190
|
-
|
|
191
|
-
registry = registry or check_and_import_services()
|
|
192
|
-
|
|
193
|
-
manifest = Manifest(
|
|
194
|
-
version=version,
|
|
195
|
-
identifier=identifier,
|
|
196
|
-
scopes=scopes if scopes else ["openid"],
|
|
197
|
-
logo=logo,
|
|
198
|
-
requirements=registry.get_requirements(),
|
|
199
|
-
)
|
|
200
|
-
|
|
201
|
-
if redeem_token:
|
|
202
|
-
fakts = build_arkitekt_next_redeem_fakts_next(
|
|
203
|
-
manifest=manifest,
|
|
204
|
-
redeem_token=redeem_token,
|
|
205
|
-
url=url,
|
|
206
|
-
no_cache=no_cache,
|
|
207
|
-
headless=headless,
|
|
208
|
-
)
|
|
209
|
-
else:
|
|
210
|
-
fakts = build_arkitekt_next_qt_fakts(
|
|
211
|
-
manifest=manifest,
|
|
212
|
-
url=url,
|
|
213
|
-
no_cache=no_cache,
|
|
214
|
-
client_kind=app_kind,
|
|
215
|
-
beacon_widget=beacon_widget,
|
|
216
|
-
settings=settings,
|
|
217
|
-
)
|
|
218
|
-
|
|
219
|
-
herre = build_arkitekt_next_qt_herre(
|
|
220
|
-
manifest=manifest,
|
|
221
|
-
fakts=fakts,
|
|
222
|
-
login_widget=login_widget,
|
|
223
|
-
parent=parent,
|
|
224
|
-
settings=settings,
|
|
225
|
-
)
|
|
226
|
-
|
|
227
|
-
params = kwargs
|
|
228
|
-
|
|
229
|
-
url = os.getenv("FAKTS_URL", url)
|
|
230
|
-
token = os.getenv("FAKTS_TOKEN", token)
|
|
231
|
-
|
|
232
|
-
create_arkitekt_next_folder(with_cache=True)
|
|
233
|
-
|
|
234
|
-
try:
|
|
235
|
-
from rich.logging import RichHandler
|
|
236
|
-
|
|
237
|
-
logging.basicConfig(level=log_level, handlers=[RichHandler()])
|
|
238
|
-
except ImportError:
|
|
239
|
-
logging.basicConfig(level=log_level)
|
|
240
|
-
|
|
241
|
-
app = App(
|
|
242
|
-
fakts=fakts,
|
|
243
|
-
herre=herre,
|
|
244
|
-
manifest=manifest,
|
|
245
|
-
services=registry.build_service_map(fakts=fakts, herre=herre, params=params),
|
|
246
|
-
)
|
|
247
|
-
|
|
248
|
-
app.enter()
|
|
249
|
-
return app
|
arkitekt_next/qt/__init__.py
CHANGED
|
@@ -7,3 +7,7 @@ The main component is the MagicBar, which is a widget that can be added
|
|
|
7
7
|
to any Qt application. It will then allow the user to configure and connect
|
|
8
8
|
to ArkitektNext, and configure settings.
|
|
9
9
|
"""
|
|
10
|
+
from .magic_bar import MagicBar
|
|
11
|
+
from .builder import build_arkitekt_next_qt_app
|
|
12
|
+
|
|
13
|
+
__all__ = ["MagicBar", "build_arkitekt_next_qt_app"]
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
|
|
2
|
+
from arkitekt_next.apps.service.fakts_next import (
|
|
3
|
+
build_arkitekt_next_redeem_fakts_next,
|
|
4
|
+
)
|
|
5
|
+
from arkitekt_next.apps.service.fakts_qt import build_arkitekt_next_qt_fakts
|
|
6
|
+
from arkitekt_next.apps.service.herre_qt import build_arkitekt_next_qt_herre
|
|
7
|
+
from arkitekt_next.utils import create_arkitekt_next_folder
|
|
8
|
+
from arkitekt_next.model import Manifest
|
|
9
|
+
from arkitekt_next.apps.types import App
|
|
10
|
+
from arkitekt_next.service_registry import ServiceBuilderRegistry, check_and_import_services
|
|
11
|
+
from arkitekt_next.constants import DEFAULT_ARKITEKT_URL
|
|
12
|
+
from qtpy import QtWidgets, QtCore
|
|
13
|
+
from typing import List, Optional
|
|
14
|
+
import os
|
|
15
|
+
import logging
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def publicqt(
|
|
19
|
+
identifier: str,
|
|
20
|
+
version: str = "latest",
|
|
21
|
+
logo: Optional[str] = None,
|
|
22
|
+
scopes: Optional[List[str]] = None,
|
|
23
|
+
url: str = "http://localhost:11000",
|
|
24
|
+
headless: bool = False,
|
|
25
|
+
log_level: str = "ERROR",
|
|
26
|
+
token: Optional[str] = None,
|
|
27
|
+
no_cache: bool = False,
|
|
28
|
+
instance_id: str = "main",
|
|
29
|
+
redeem_token: Optional[str] = None,
|
|
30
|
+
app_kind: str = "desktop",
|
|
31
|
+
registry: Optional[ServiceBuilderRegistry] = None,
|
|
32
|
+
parent: Optional[QtWidgets.QWidget] = None,
|
|
33
|
+
beacon_widget: Optional[QtWidgets.QWidget] = None,
|
|
34
|
+
login_widget: Optional[QtWidgets.QWidget] = None,
|
|
35
|
+
settings: Optional[QtCore.QSettings] = None,
|
|
36
|
+
**kwargs,
|
|
37
|
+
) -> App:
|
|
38
|
+
"""Public QtApp creation
|
|
39
|
+
|
|
40
|
+
A simple way to create an Arkitekt app with a public grant (allowing users to sign
|
|
41
|
+
in with the application ) utlizing a retrieve grant (necessating a previous configuration
|
|
42
|
+
of the application on the server side)
|
|
43
|
+
|
|
44
|
+
Args:
|
|
45
|
+
identifier (str): The apps identifier
|
|
46
|
+
version (str, optional): The apps verion. Defaults to "latest".
|
|
47
|
+
parent (QtWidget, optional): The QtParent (for the login and server select widget). Defaults to None.
|
|
48
|
+
|
|
49
|
+
Returns:
|
|
50
|
+
Arkitekt: The Arkitekt app
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
registry = registry or check_and_import_services()
|
|
54
|
+
|
|
55
|
+
manifest = Manifest(
|
|
56
|
+
version=version,
|
|
57
|
+
identifier=identifier,
|
|
58
|
+
scopes=scopes if scopes else ["openid"],
|
|
59
|
+
logo=logo,
|
|
60
|
+
requirements=registry.get_requirements(),
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
if redeem_token:
|
|
64
|
+
fakts = build_arkitekt_next_redeem_fakts_next(
|
|
65
|
+
manifest=manifest,
|
|
66
|
+
redeem_token=redeem_token,
|
|
67
|
+
url=url,
|
|
68
|
+
no_cache=no_cache,
|
|
69
|
+
headless=headless,
|
|
70
|
+
)
|
|
71
|
+
else:
|
|
72
|
+
fakts = build_arkitekt_next_qt_fakts(
|
|
73
|
+
manifest=manifest,
|
|
74
|
+
url=url,
|
|
75
|
+
no_cache=no_cache,
|
|
76
|
+
client_kind=app_kind,
|
|
77
|
+
beacon_widget=beacon_widget,
|
|
78
|
+
settings=settings,
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
herre = build_arkitekt_next_qt_herre(
|
|
82
|
+
manifest=manifest,
|
|
83
|
+
fakts=fakts,
|
|
84
|
+
login_widget=login_widget,
|
|
85
|
+
parent=parent,
|
|
86
|
+
settings=settings,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
params = kwargs
|
|
90
|
+
|
|
91
|
+
url = os.getenv("FAKTS_URL", url)
|
|
92
|
+
token = os.getenv("FAKTS_TOKEN", token)
|
|
93
|
+
|
|
94
|
+
create_arkitekt_next_folder(with_cache=True)
|
|
95
|
+
|
|
96
|
+
try:
|
|
97
|
+
from rich.logging import RichHandler
|
|
98
|
+
|
|
99
|
+
logging.basicConfig(level=log_level, handlers=[RichHandler()])
|
|
100
|
+
except ImportError:
|
|
101
|
+
logging.basicConfig(level=log_level)
|
|
102
|
+
|
|
103
|
+
app = App(
|
|
104
|
+
fakts=fakts,
|
|
105
|
+
herre=herre,
|
|
106
|
+
manifest=manifest,
|
|
107
|
+
services=registry.build_service_map(fakts=fakts, herre=herre, params=params),
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
app.enter()
|
|
111
|
+
return app
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: arkitekt-next
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.15
|
|
4
4
|
Summary: client for the arkitekt_next platform
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: jhnnsrs
|
|
@@ -19,7 +19,7 @@ Requires-Dist: dokker (>=0.1.21)
|
|
|
19
19
|
Requires-Dist: fakts (>=0.5.0)
|
|
20
20
|
Requires-Dist: fluss-next (>=0.1.63) ; extra == "all"
|
|
21
21
|
Requires-Dist: herre (>=0.4.3)
|
|
22
|
-
Requires-Dist: kabinet (>=0.1.2) ; extra == "all"
|
|
22
|
+
Requires-Dist: kabinet (>=0.1.2) ; (python_version >= "3.9" and python_version < "4.0") and (extra == "all")
|
|
23
23
|
Requires-Dist: koil (>=0.3.6)
|
|
24
24
|
Requires-Dist: mikro-next (>=0.1.9) ; (python_version >= "3.10" and python_version < "4.0") and (extra == "all")
|
|
25
25
|
Requires-Dist: reaktion-next (>=0.1.53) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all")
|
|
@@ -16,7 +16,7 @@ arkitekt_next/apps/service/mikro_next.py,sha256=j612M2wo4EdaKp13qx_8eqQsB6wc5nE_
|
|
|
16
16
|
arkitekt_next/apps/service/rekuest_next.py,sha256=RiNN5rzDbq15AgyVpv-3tjkSO6TeO2xsuEvGTYmB2UQ,1816
|
|
17
17
|
arkitekt_next/apps/service/unlok_next.py,sha256=u3cjFr1i6kHjH881oj_NBmY1CgnM0uqdDbicq-SilPM,1124
|
|
18
18
|
arkitekt_next/apps/types.py,sha256=uozRXDDGJBL9hYCYGZF_XmtZ4ZvoLZeEEfJeL10Ve3U,1136
|
|
19
|
-
arkitekt_next/builders.py,sha256=
|
|
19
|
+
arkitekt_next/builders.py,sha256=7rHNSdloNTgf3vvzcl4n67-F-vxOECTO1aZ7Xm9c_S0,5776
|
|
20
20
|
arkitekt_next/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
21
|
arkitekt_next/cli/commands/call/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
arkitekt_next/cli/commands/call/local.py,sha256=YDummInGSb6lGKGiTlMSuXbE-Sz6dbfng6CsZaChCew,3338
|
|
@@ -96,7 +96,7 @@ arkitekt_next/cli/vars.py,sha256=ev7cKDSPoik8hU9A_ohNpjRZX4FT1GYJaBoGLnxCKjU,982
|
|
|
96
96
|
arkitekt_next/cli/versions/v1.yaml,sha256=rv2-F6FQbTZi_H6pSE_csdICdtKBObDdoo_asOFi43Y,12
|
|
97
97
|
arkitekt_next/constants.py,sha256=ziQ_WxvGPZtVQtRwKutlBNBfUVtpQu51abOaGaQ2OtU,107
|
|
98
98
|
arkitekt_next/model.py,sha256=6KYwSqWhI9CFhZIgip5ZddWleNBENGCAW2-ajtcOZSg,4476
|
|
99
|
-
arkitekt_next/qt/__init__.py,sha256=
|
|
99
|
+
arkitekt_next/qt/__init__.py,sha256=SVnuFY6eUXuG-mrm928RuYeMiunxlc73UsXDGV5DAuY,458
|
|
100
100
|
arkitekt_next/qt/assets/dark/gear.png,sha256=nYl1JZhcpwd7s5FgG2g-1RpkK7TH_QQRqJMmK6r0BpU,6296
|
|
101
101
|
arkitekt_next/qt/assets/dark/green pulse.gif,sha256=cUd2F3Qlvjb7SnsU-LjGgeLTa8KoPgu3C-LNrixIQds,105386
|
|
102
102
|
arkitekt_next/qt/assets/dark/orange pulse.gif,sha256=0gDvrRed0mzZZPHB4tP6vptx7myUCAa_hEVGdjRhNy8,94769
|
|
@@ -107,13 +107,14 @@ arkitekt_next/qt/assets/light/green pulse.gif,sha256=cUd2F3Qlvjb7SnsU-LjGgeLTa8K
|
|
|
107
107
|
arkitekt_next/qt/assets/light/orange pulse.gif,sha256=0gDvrRed0mzZZPHB4tP6vptx7myUCAa_hEVGdjRhNy8,94769
|
|
108
108
|
arkitekt_next/qt/assets/light/pink pulse.gif,sha256=rxd6ZTHSIG9JZuuHhi3jiSB_JYFBZpy7OWUeZETlhQ4,107513
|
|
109
109
|
arkitekt_next/qt/assets/light/red pulse.gif,sha256=U7WLbZvSl5e-Ob5RmawtlC0Rh9VVHxkjDbGjj7NYVUo,108749
|
|
110
|
+
arkitekt_next/qt/builder.py,sha256=CWdFT9YERyMKGqPXdAdMFUbVt-HdJLN7Y4LqdK7xdGM,3371
|
|
110
111
|
arkitekt_next/qt/magic_bar.py,sha256=xo4_ReVYtpCwnRFTMBYvBEcVvY3JnNFbqYYY_-ez6vM,18242
|
|
111
112
|
arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
|
|
112
113
|
arkitekt_next/service_registry.py,sha256=Aq5bgu4UHRl1P6E2JOQ2gMCwFI8pQfASWte0BvtKE3g,3365
|
|
113
114
|
arkitekt_next/tqdm.py,sha256=DlrxPluHao7TvW-Cqgt0UokRS-fM2_ZNiWiddqvCqCc,1488
|
|
114
115
|
arkitekt_next/utils.py,sha256=WA3AtqQFcz2h-yOadAsQkkr0qKJmKcGMi2aclxaVI_o,1278
|
|
115
|
-
arkitekt_next-0.7.
|
|
116
|
-
arkitekt_next-0.7.
|
|
117
|
-
arkitekt_next-0.7.
|
|
118
|
-
arkitekt_next-0.7.
|
|
119
|
-
arkitekt_next-0.7.
|
|
116
|
+
arkitekt_next-0.7.15.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
|
|
117
|
+
arkitekt_next-0.7.15.dist-info/METADATA,sha256=bxie1U-nA3SQgtDmYbjHM86D3yKB2ePyR4Wsm-nVE0s,5408
|
|
118
|
+
arkitekt_next-0.7.15.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
119
|
+
arkitekt_next-0.7.15.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
|
|
120
|
+
arkitekt_next-0.7.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|