arkitekt-next 0.7.13__tar.gz → 0.7.15__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.13 → arkitekt_next-0.7.15}/PKG-INFO +2 -2
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/builders.py +1 -97
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/__init__.py +4 -0
- arkitekt_next-0.7.15/arkitekt_next/qt/builder.py +111 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/pyproject.toml +2 -2
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/LICENSE +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/README.md +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/easy.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/next.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/qt.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/fakts.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/fakts_next.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/fakts_qt.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/fluss_next.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/grant_registry.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/herre.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/herre_qt.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/kabinet.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/mikro_next.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/rekuest_next.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/service/unlok_next.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/apps/types.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/call/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/call/local.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/call/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/call/remote.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/gen/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/gen/compile.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/gen/init.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/gen/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/gen/watch.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/init/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/init/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/inspect/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/inspect/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/inspect/templates.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/inspect/variables.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/build.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/init.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/publish.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/stage.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/utils.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/validate.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/wizard.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/manifest/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/manifest/inspect.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/manifest/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/manifest/scopes.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/manifest/version.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/manifest/wizard.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/run/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/run/dev.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/run/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/run/prod.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/run/utils.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/__init__.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/down.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/init.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/inspect.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/open.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/remove.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/stop.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/up.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/server/utils.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/configs/base.yaml +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/constants.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/errors.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/inspect.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/io.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/main.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/options.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/fluss.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/gucker.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/kabinet.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/kluster.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/konviktion.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/kuay.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/mikro.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/mikro_next.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/napari.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/omero_ark.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/port.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/rekuest.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/unlok.schema.graphql +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/templates/filter.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/templates/simple.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/texts.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/types.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/ui.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/utils.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/validators.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/vars.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/versions/v1.yaml +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/constants.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/model.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/dark/gear.png +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/dark/green pulse.gif +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/dark/orange pulse.gif +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/dark/pink pulse.gif +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/dark/red pulse.gif +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/light/gear.png +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/light/green pulse.gif +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/light/orange pulse.gif +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/light/pink pulse.gif +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/assets/light/red pulse.gif +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/magic_bar.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/qt/utils.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/service_registry.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/tqdm.py +0 -0
- {arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/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.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")
|
|
@@ -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
|
|
@@ -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
|
[tool.poetry]
|
|
2
2
|
name = "arkitekt-next"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.15"
|
|
4
4
|
description = "client for the arkitekt_next platform"
|
|
5
5
|
authors = ["jhnnsrs <jhnnsrs@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -12,7 +12,7 @@ python = "^3.8"
|
|
|
12
12
|
herre = ">=0.4.3"
|
|
13
13
|
fakts = ">=0.5.0"
|
|
14
14
|
mikro-next = { version = ">=0.1.9", python = "^3.10", optional = true }
|
|
15
|
-
kabinet = { version = ">=0.1.2", optional = true }
|
|
15
|
+
kabinet = { version = ">=0.1.2", optional = true, python = "^3.9" }
|
|
16
16
|
fluss-next = { version = ">=0.1.63", optional = true }
|
|
17
17
|
reaktion-next= { version = ">=0.1.53", python = "^3.8", optional = true }
|
|
18
18
|
rekuest-next= { version = ">=0.2.4", python = "^3.8", optional = true }
|
|
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.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/inspect/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/inspect/templates.py
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/inspect/variables.py
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/__init__.py
RENAMED
|
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.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/kabinet/validate.py
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/manifest/__init__.py
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/commands/manifest/inspect.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/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.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/dockerfiles/vanilla.dockerfile
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/fluss.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/gucker.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/kabinet.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/kluster.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/konviktion.schema.graphql
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/mikro.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/mikro_next.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/napari.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/omero_ark.schema.graphql
RENAMED
|
File without changes
|
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/rekuest.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/arkitekt_next/cli/schemas/rekuest_next.schema.graphql
RENAMED
|
File without changes
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/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
|
{arkitekt_next-0.7.13 → arkitekt_next-0.7.15}/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
|