arkitekt-next 0.16.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.

Files changed (58) hide show
  1. arkitekt_next/app/fakts.py +32 -1
  2. arkitekt_next/builders.py +3 -0
  3. arkitekt_next/cli/commands/call/local.py +1 -1
  4. arkitekt_next/cli/commands/call/main.py +14 -7
  5. arkitekt_next/cli/templates/filter.py +7 -7
  6. arkitekt_next/cli/templates/simple.py +4 -1
  7. arkitekt_next/py.typed +0 -0
  8. {arkitekt_next-0.16.0.dist-info → arkitekt_next-0.18.0.dist-info}/METADATA +8 -8
  9. {arkitekt_next-0.16.0.dist-info → arkitekt_next-0.18.0.dist-info}/RECORD +12 -57
  10. arkitekt_next/__blok__.py +0 -58
  11. arkitekt_next/bloks/__init__.py +0 -1
  12. arkitekt_next/bloks/admin.py +0 -43
  13. arkitekt_next/bloks/alpaka.py +0 -139
  14. arkitekt_next/bloks/arkitekt.py +0 -55
  15. arkitekt_next/bloks/base.py +0 -217
  16. arkitekt_next/bloks/channel.py +0 -27
  17. arkitekt_next/bloks/config.py +0 -43
  18. arkitekt_next/bloks/elektro.py +0 -42
  19. arkitekt_next/bloks/fluss.py +0 -33
  20. arkitekt_next/bloks/gateway.py +0 -224
  21. arkitekt_next/bloks/internal_docker.py +0 -90
  22. arkitekt_next/bloks/kabinet.py +0 -46
  23. arkitekt_next/bloks/kraph.py +0 -45
  24. arkitekt_next/bloks/livekit.py +0 -85
  25. arkitekt_next/bloks/lok.py +0 -415
  26. arkitekt_next/bloks/lovekit.py +0 -202
  27. arkitekt_next/bloks/mikro.py +0 -42
  28. arkitekt_next/bloks/minio.py +0 -178
  29. arkitekt_next/bloks/mount.py +0 -34
  30. arkitekt_next/bloks/namegen.py +0 -34
  31. arkitekt_next/bloks/ollama.py +0 -90
  32. arkitekt_next/bloks/orkestrator.py +0 -122
  33. arkitekt_next/bloks/postgres.py +0 -134
  34. arkitekt_next/bloks/redis.py +0 -79
  35. arkitekt_next/bloks/rekuest.py +0 -30
  36. arkitekt_next/bloks/secret.py +0 -32
  37. arkitekt_next/bloks/self_signed.py +0 -91
  38. arkitekt_next/bloks/services/__init__.py +0 -27
  39. arkitekt_next/bloks/services/admin.py +0 -21
  40. arkitekt_next/bloks/services/certer.py +0 -14
  41. arkitekt_next/bloks/services/channel.py +0 -12
  42. arkitekt_next/bloks/services/config.py +0 -13
  43. arkitekt_next/bloks/services/db.py +0 -23
  44. arkitekt_next/bloks/services/gateway.py +0 -39
  45. arkitekt_next/bloks/services/livekit.py +0 -20
  46. arkitekt_next/bloks/services/lok.py +0 -24
  47. arkitekt_next/bloks/services/mount.py +0 -9
  48. arkitekt_next/bloks/services/name.py +0 -11
  49. arkitekt_next/bloks/services/ollama.py +0 -21
  50. arkitekt_next/bloks/services/redis.py +0 -19
  51. arkitekt_next/bloks/services/s3.py +0 -21
  52. arkitekt_next/bloks/services/secret.py +0 -16
  53. arkitekt_next/bloks/services/socket.py +0 -13
  54. arkitekt_next/bloks/socket.py +0 -40
  55. arkitekt_next/bloks/tailscale.py +0 -90
  56. {arkitekt_next-0.16.0.dist-info → arkitekt_next-0.18.0.dist-info}/WHEEL +0 -0
  57. {arkitekt_next-0.16.0.dist-info → arkitekt_next-0.18.0.dist-info}/entry_points.txt +0 -0
  58. {arkitekt_next-0.16.0.dist-info → arkitekt_next-0.18.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,13 +0,0 @@
1
- from blok import blok, InitContext, ExecutionContext, Option
2
- from blok.tree import YamlFile, Repo
3
- from dataclasses import dataclass
4
- from typing import Dict, Any, Protocol
5
-
6
- from blok import blok, InitContext, service
7
-
8
-
9
- @service("live.arkitekt.docker_socket")
10
- class DockerSocketService(Protocol):
11
- def register_socket(self, name: str) -> str:
12
- self.registered_configs[name] = name
13
- return self.docker_socket
@@ -1,40 +0,0 @@
1
- from pydantic import BaseModel
2
- from typing import Dict, Any
3
- from blok import blok, InitContext, Option, ExecutionContext
4
- from blok.tree import YamlFile
5
-
6
-
7
- class AdminCredentials(BaseModel):
8
- password: str
9
- username: str
10
- email: str
11
-
12
-
13
- @blok(
14
- "live.arkitekt.docker_socket", description="Hosting the docker socket of the host"
15
- )
16
- class DockerSocketBlok:
17
- def __init__(self) -> None:
18
- self.docker_socket = "/var/run/docker.sock"
19
- self.registered_configs = {}
20
-
21
- def preflight(self, init: InitContext):
22
- for key, value in init.kwargs.items():
23
- setattr(self, key, value)
24
-
25
- def register_socket(self, name: str) -> str:
26
- self.registered_configs[name] = name
27
- return self.docker_socket
28
-
29
- def build(self, ex: ExecutionContext):
30
- pass
31
-
32
- def get_options(self):
33
- config_path = Option(
34
- subcommand="docker_socket",
35
- help="Which docker_socket to use for configs",
36
- default=self.docker_socket,
37
- show_default=True,
38
- )
39
-
40
- return [config_path]
@@ -1,90 +0,0 @@
1
- from pydantic import BaseModel
2
- from typing import Dict, Any
3
- from arkitekt_next.bloks.services.mount import MountService
4
- from blok import blok, InitContext, Option, ExecutionContext
5
- from arkitekt_next.bloks.services.gateway import GatewayService
6
- from blok.bloks.services.dns import DnsService
7
- from blok.tree import YamlFile
8
-
9
-
10
- @blok("live.arkitekt.tailscale", description="Tailscale is a zero config VPN")
11
- class TailscaleBlok:
12
- def __init__(self, name: str = "arkitekt") -> None:
13
- self.name = name
14
- self.disable = False
15
-
16
- def preflight(
17
- self,
18
- gateway: GatewayService,
19
- mount_service: MountService,
20
- dns: DnsService,
21
- net_name: str,
22
- auth_key: str,
23
- host_name: str,
24
- disable: bool = False,
25
- ):
26
- self.disable = disable
27
- if self.disable:
28
- return
29
- assert auth_key, "You need to provide an auth_key"
30
-
31
- self.caddy_service = gateway.get_internal_host()
32
- self.caddy_port = gateway.get_http_port()
33
- self.mount = mount_service.register_mount("tailscale_state", {})
34
- self.tailnet_name = net_name
35
- self.auth_key = auth_key
36
- self.dns_service = dns.get_dns_result()
37
- self.host_name = host_name
38
-
39
- def build(self, ex: ExecutionContext):
40
- if self.disable:
41
- return
42
-
43
- if not self.tailnet_name:
44
- # Trying to automatically find the hostname
45
- for i in self.dns_service.hostnames:
46
- if i.endswith(".ts.net"):
47
- self.tailnet_name = i.split(".")[1]
48
- break
49
-
50
- service = {
51
- "image": "jhnnsrs/tailproxy:latest",
52
- "volumes": [
53
- f"{self.mount}:/var/lib/tailscale" # Persist the tailscale state directory
54
- ],
55
- "environment": [
56
- "TS_STATE_DIR=/var/lib/tailscale",
57
- f"TS_AUTH_KEY={self.auth_key}",
58
- f"TS_HOSTNAME={self.host_name}",
59
- f"TS_TAILNET={self.tailnet_name}",
60
- f"CADDY_TARGET={self.caddy_service}:{self.caddy_port}",
61
- ],
62
- }
63
-
64
- ex.docker_compose.set_nested("services", "tailscale_proxy", service)
65
-
66
- def get_options(self):
67
- return [
68
- Option(
69
- subcommand="net_name",
70
- help="The name of your tailnet",
71
- type=str,
72
- ),
73
- Option(
74
- subcommand="auth_key",
75
- help="The auth_key of your tailnet",
76
- type=str,
77
- ),
78
- Option(
79
- subcommand="host_name",
80
- help="The hostname of your tailnet",
81
- default=self.name,
82
- type=str,
83
- ),
84
- Option(
85
- subcommand="disable",
86
- help="Should we disable the creation of the tailscale service?",
87
- default=self.disable,
88
- type=str,
89
- ),
90
- ]