arkitekt-next 0.7.34__py3-none-any.whl → 0.7.36__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.
@@ -4,7 +4,7 @@ from pydantic import BaseModel
4
4
  from typing import Dict, Any
5
5
 
6
6
  from blok import blok, InitContext
7
-
7
+ from blok.bloks.services.dns import DnsService
8
8
 
9
9
  DEFAULT_PUBLIC_URLS = ["127.0.0.1"]
10
10
  DEFAULT_PUBLIC_HOSTS = ["localhost"]
@@ -36,14 +36,14 @@ class GatewayBlok:
36
36
  self.public_ips = DEFAULT_PUBLIC_URLS
37
37
  self.public_hosts = DEFAULT_PUBLIC_HOSTS
38
38
 
39
- def get_dependencies(self):
40
- return []
41
-
42
- def preflight(self, init: InitContext):
39
+ def preflight(self, init: InitContext, dns: DnsService):
43
40
  for key, value in init.kwargs.items():
44
41
  setattr(self, key, value)
45
42
 
46
- def build(self, context: ExecutionContext):
43
+ self.public_ips = dns.get_dns_result().ip_addresses
44
+ self.public_hosts = dns.get_dns_result().hostnames
45
+
46
+ def build(self, context: ExecutionContext,):
47
47
  caddyfile = """
48
48
  {
49
49
  auto_https off
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arkitekt-next
3
- Version: 0.7.34
3
+ Version: 0.7.36
4
4
  Summary: client for the arkitekt_next platform
5
5
  License: MIT
6
6
  Author: jhnnsrs
@@ -15,6 +15,9 @@ Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Provides-Extra: all
17
17
  Provides-Extra: cli
18
+ Provides-Extra: server
19
+ Requires-Dist: blok (>=0.0.8) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all" or extra == "server")
20
+ Requires-Dist: cryptography (>=40.0.8) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "server")
18
21
  Requires-Dist: dokker (>=0.1.21)
19
22
  Requires-Dist: fakts (>=0.5.0)
20
23
  Requires-Dist: fluss-next (>=0.1.69) ; extra == "all"
@@ -22,6 +25,7 @@ Requires-Dist: herre (>=0.4.3)
22
25
  Requires-Dist: kabinet (>=0.1.7) ; (python_version >= "3.9" and python_version < "4.0") and (extra == "all")
23
26
  Requires-Dist: koil (>=0.3.6)
24
27
  Requires-Dist: mikro-next (>=0.1.24) ; (python_version >= "3.10" and python_version < "4.0") and (extra == "all")
28
+ Requires-Dist: netifaces (>=0.11.0) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all" or extra == "server")
25
29
  Requires-Dist: reaktion-next (>=0.1.59) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "all")
26
30
  Requires-Dist: rekuest-next (>=0.2.13) ; (python_version >= "3.8" and python_version < "4.0") and (extra == "cli" or extra == "all")
27
31
  Requires-Dist: rich-click (>=1.6.1) ; extra == "cli" or extra == "all"
@@ -18,7 +18,7 @@ arkitekt_next/bloks/arkitekt.py,sha256=-ZITnWpkzpniUZQ7ZPjCH_RVqyCNPBtYnXWNTHd4e
18
18
  arkitekt_next/bloks/config.py,sha256=SqJg9kB0AQ62b_WpIKgJ8Jpcqpc-AKN7gdEj87O-UGY,1268
19
19
  arkitekt_next/bloks/fluss.py,sha256=0It4jxafGH-ehzXvd1eC9Tq9ZP4Kjra24eaHBCIaHJM,2820
20
20
  arkitekt_next/bloks/funcs.py,sha256=6QImH3eOSd6KXd8XfaulexAzy16A_J8GJi58Q18MQms,2641
21
- arkitekt_next/bloks/gateway.py,sha256=sRLpAnOSbX_kAhuTMpCVcHqAG2dTPIfY44D67twRShM,4888
21
+ arkitekt_next/bloks/gateway.py,sha256=pym9pw8ycGgTzeskirkUZ19akvCitLabgQlU1r-wZdM,5021
22
22
  arkitekt_next/bloks/internal_docker.py,sha256=HWGgt4Jjr1ftEFwkYiw7m02eTiNAK5vaRYVtn0Jskd8,2255
23
23
  arkitekt_next/bloks/kabinet.py,sha256=ELGAkBQWarS5A-leTE2tXLgwrcXQBPz_FgLbMkYdJcU,3002
24
24
  arkitekt_next/bloks/livekit.py,sha256=Es0CJcQJJjyYD4OBa3_6K8bHmQRsikrECgnPflFCO4E,2694
@@ -140,8 +140,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
140
140
  arkitekt_next/service_registry.py,sha256=pczUuP_Nve7OYwB7-oDBLIw6bkjZPnzL3xFca5TF1io,3405
141
141
  arkitekt_next/tqdm.py,sha256=DlrxPluHao7TvW-Cqgt0UokRS-fM2_ZNiWiddqvCqCc,1488
142
142
  arkitekt_next/utils.py,sha256=gmKWy9M51vimohmmaoIpAJ0CaB22TFP0w3JszRrwiak,2379
143
- arkitekt_next-0.7.34.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
144
- arkitekt_next-0.7.34.dist-info/METADATA,sha256=0xivnTyQo0HlIzGPODez_28BQHB3n3B38SixBPT46TY,5500
145
- arkitekt_next-0.7.34.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
146
- arkitekt_next-0.7.34.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
147
- arkitekt_next-0.7.34.dist-info/RECORD,,
143
+ arkitekt_next-0.7.36.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
144
+ arkitekt_next-0.7.36.dist-info/METADATA,sha256=AdGBXeVCXQPdWaVn5OPOJ_y-1RFMYVtuDcr2JceNMZ0,5901
145
+ arkitekt_next-0.7.36.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
146
+ arkitekt_next-0.7.36.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
147
+ arkitekt_next-0.7.36.dist-info/RECORD,,