pactown 0.1.4__py3-none-any.whl → 0.1.47__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.
- pactown/__init__.py +178 -4
- pactown/cli.py +539 -37
- pactown/config.py +12 -11
- pactown/deploy/__init__.py +17 -3
- pactown/deploy/base.py +35 -33
- pactown/deploy/compose.py +59 -58
- pactown/deploy/docker.py +40 -41
- pactown/deploy/kubernetes.py +43 -42
- pactown/deploy/podman.py +55 -56
- pactown/deploy/quadlet.py +1021 -0
- pactown/deploy/quadlet_api.py +533 -0
- pactown/deploy/quadlet_shell.py +557 -0
- pactown/events.py +1066 -0
- pactown/fast_start.py +514 -0
- pactown/generator.py +31 -30
- pactown/llm.py +450 -0
- pactown/markpact_blocks.py +50 -0
- pactown/network.py +59 -38
- pactown/orchestrator.py +90 -93
- pactown/parallel.py +40 -40
- pactown/platform.py +146 -0
- pactown/registry/__init__.py +1 -1
- pactown/registry/client.py +45 -46
- pactown/registry/models.py +25 -25
- pactown/registry/server.py +24 -24
- pactown/resolver.py +30 -30
- pactown/runner_api.py +458 -0
- pactown/sandbox_manager.py +480 -79
- pactown/security.py +682 -0
- pactown/service_runner.py +1201 -0
- pactown/user_isolation.py +458 -0
- {pactown-0.1.4.dist-info → pactown-0.1.47.dist-info}/METADATA +65 -9
- pactown-0.1.47.dist-info/RECORD +36 -0
- pactown-0.1.47.dist-info/entry_points.txt +5 -0
- pactown-0.1.4.dist-info/RECORD +0 -24
- pactown-0.1.4.dist-info/entry_points.txt +0 -3
- {pactown-0.1.4.dist-info → pactown-0.1.47.dist-info}/WHEEL +0 -0
- {pactown-0.1.4.dist-info → pactown-0.1.47.dist-info}/licenses/LICENSE +0 -0
pactown/__init__.py
CHANGED
|
@@ -1,23 +1,197 @@
|
|
|
1
1
|
"""Pactown – Decentralized Service Ecosystem Orchestrator using markpact"""
|
|
2
2
|
|
|
3
|
-
__version__ = "0.1.
|
|
3
|
+
__version__ = "0.1.47"
|
|
4
4
|
|
|
5
|
-
from .config import EcosystemConfig, ServiceConfig
|
|
5
|
+
from .config import DependencyConfig, EcosystemConfig, ServiceConfig
|
|
6
|
+
from .network import PortAllocator, ServiceEndpoint, ServiceRegistry, find_free_port
|
|
6
7
|
from .orchestrator import Orchestrator
|
|
7
8
|
from .resolver import DependencyResolver
|
|
8
9
|
from .sandbox_manager import SandboxManager
|
|
9
|
-
from .
|
|
10
|
+
from .service_runner import (
|
|
11
|
+
ServiceRunner,
|
|
12
|
+
RunResult,
|
|
13
|
+
EndpointTestResult,
|
|
14
|
+
ValidationResult,
|
|
15
|
+
ErrorCategory,
|
|
16
|
+
DiagnosticInfo,
|
|
17
|
+
AutoFixSuggestion,
|
|
18
|
+
)
|
|
19
|
+
from .security import (
|
|
20
|
+
SecurityPolicy,
|
|
21
|
+
UserProfile,
|
|
22
|
+
UserTier,
|
|
23
|
+
AnomalyType,
|
|
24
|
+
AnomalyEvent,
|
|
25
|
+
AnomalyLogger,
|
|
26
|
+
RateLimiter,
|
|
27
|
+
ResourceMonitor,
|
|
28
|
+
SecurityCheckResult,
|
|
29
|
+
get_security_policy,
|
|
30
|
+
set_security_policy,
|
|
31
|
+
)
|
|
32
|
+
from .fast_start import (
|
|
33
|
+
FastServiceStarter,
|
|
34
|
+
DependencyCache,
|
|
35
|
+
SandboxPool,
|
|
36
|
+
ParallelServiceRunner,
|
|
37
|
+
FastStartResult,
|
|
38
|
+
get_fast_starter,
|
|
39
|
+
)
|
|
40
|
+
from .user_isolation import (
|
|
41
|
+
UserIsolationManager,
|
|
42
|
+
IsolatedUser,
|
|
43
|
+
get_isolation_manager,
|
|
44
|
+
)
|
|
45
|
+
from .platform import (
|
|
46
|
+
DomainConfig,
|
|
47
|
+
ProjectHostParts,
|
|
48
|
+
SubdomainSeparator,
|
|
49
|
+
api_base_url,
|
|
50
|
+
build_origin,
|
|
51
|
+
build_project_host,
|
|
52
|
+
build_project_subdomain,
|
|
53
|
+
build_service_subdomain,
|
|
54
|
+
coerce_subdomain_separator,
|
|
55
|
+
is_local_domain,
|
|
56
|
+
normalize_domain,
|
|
57
|
+
normalize_host,
|
|
58
|
+
parse_project_host,
|
|
59
|
+
parse_project_subdomain,
|
|
60
|
+
to_dns_label,
|
|
61
|
+
web_base_url,
|
|
62
|
+
)
|
|
63
|
+
from .events import (
|
|
64
|
+
# Core event types
|
|
65
|
+
Event,
|
|
66
|
+
EventType,
|
|
67
|
+
EventStore,
|
|
68
|
+
get_event_store,
|
|
69
|
+
set_event_store,
|
|
70
|
+
# Aggregates
|
|
71
|
+
Aggregate,
|
|
72
|
+
ServiceAggregate,
|
|
73
|
+
# Commands (Write side)
|
|
74
|
+
ServiceCommands,
|
|
75
|
+
ProjectCommands,
|
|
76
|
+
SecurityCommands,
|
|
77
|
+
get_service_commands,
|
|
78
|
+
get_project_commands,
|
|
79
|
+
get_security_commands,
|
|
80
|
+
# Queries (Read side)
|
|
81
|
+
ServiceQueries,
|
|
82
|
+
ProjectQueries,
|
|
83
|
+
SecurityQueries,
|
|
84
|
+
get_service_queries,
|
|
85
|
+
get_project_queries,
|
|
86
|
+
get_security_queries,
|
|
87
|
+
# Projections
|
|
88
|
+
Projection,
|
|
89
|
+
ServiceStatusProjection,
|
|
90
|
+
)
|
|
91
|
+
from .llm import (
|
|
92
|
+
PactownLLM,
|
|
93
|
+
PactownLLMError,
|
|
94
|
+
LLMNotAvailableError,
|
|
95
|
+
get_llm,
|
|
96
|
+
is_lolm_available,
|
|
97
|
+
generate as llm_generate,
|
|
98
|
+
get_llm_status,
|
|
99
|
+
set_provider_priority as set_llm_priority,
|
|
100
|
+
reset_provider as reset_llm_provider,
|
|
101
|
+
)
|
|
10
102
|
|
|
11
103
|
__all__ = [
|
|
104
|
+
# High-level API
|
|
105
|
+
"ServiceRunner",
|
|
106
|
+
"RunResult",
|
|
107
|
+
"EndpointTestResult",
|
|
108
|
+
"ValidationResult",
|
|
109
|
+
"ErrorCategory",
|
|
110
|
+
"DiagnosticInfo",
|
|
111
|
+
"AutoFixSuggestion",
|
|
112
|
+
# Security
|
|
113
|
+
"SecurityPolicy",
|
|
114
|
+
"UserProfile",
|
|
115
|
+
"UserTier",
|
|
116
|
+
"AnomalyType",
|
|
117
|
+
"AnomalyEvent",
|
|
118
|
+
"AnomalyLogger",
|
|
119
|
+
"RateLimiter",
|
|
120
|
+
"ResourceMonitor",
|
|
121
|
+
"SecurityCheckResult",
|
|
122
|
+
"get_security_policy",
|
|
123
|
+
"set_security_policy",
|
|
124
|
+
# Fast Start
|
|
125
|
+
"FastServiceStarter",
|
|
126
|
+
"DependencyCache",
|
|
127
|
+
"SandboxPool",
|
|
128
|
+
"ParallelServiceRunner",
|
|
129
|
+
"FastStartResult",
|
|
130
|
+
"get_fast_starter",
|
|
131
|
+
# User Isolation
|
|
132
|
+
"UserIsolationManager",
|
|
133
|
+
"IsolatedUser",
|
|
134
|
+
"get_isolation_manager",
|
|
135
|
+
# Platform
|
|
136
|
+
"DomainConfig",
|
|
137
|
+
"ProjectHostParts",
|
|
138
|
+
"SubdomainSeparator",
|
|
139
|
+
"api_base_url",
|
|
140
|
+
"build_origin",
|
|
141
|
+
"build_project_host",
|
|
142
|
+
"build_project_subdomain",
|
|
143
|
+
"build_service_subdomain",
|
|
144
|
+
"coerce_subdomain_separator",
|
|
145
|
+
"is_local_domain",
|
|
146
|
+
"normalize_domain",
|
|
147
|
+
"normalize_host",
|
|
148
|
+
"parse_project_host",
|
|
149
|
+
"parse_project_subdomain",
|
|
150
|
+
"to_dns_label",
|
|
151
|
+
"web_base_url",
|
|
152
|
+
# Orchestration
|
|
12
153
|
"EcosystemConfig",
|
|
13
|
-
"ServiceConfig",
|
|
154
|
+
"ServiceConfig",
|
|
14
155
|
"DependencyConfig",
|
|
15
156
|
"Orchestrator",
|
|
16
157
|
"DependencyResolver",
|
|
17
158
|
"SandboxManager",
|
|
159
|
+
# Network
|
|
18
160
|
"ServiceRegistry",
|
|
19
161
|
"PortAllocator",
|
|
20
162
|
"ServiceEndpoint",
|
|
21
163
|
"find_free_port",
|
|
164
|
+
# CQRS/Event Sourcing
|
|
165
|
+
"Event",
|
|
166
|
+
"EventType",
|
|
167
|
+
"EventStore",
|
|
168
|
+
"get_event_store",
|
|
169
|
+
"set_event_store",
|
|
170
|
+
"Aggregate",
|
|
171
|
+
"ServiceAggregate",
|
|
172
|
+
"ServiceCommands",
|
|
173
|
+
"ProjectCommands",
|
|
174
|
+
"SecurityCommands",
|
|
175
|
+
"get_service_commands",
|
|
176
|
+
"get_project_commands",
|
|
177
|
+
"get_security_commands",
|
|
178
|
+
"ServiceQueries",
|
|
179
|
+
"ProjectQueries",
|
|
180
|
+
"SecurityQueries",
|
|
181
|
+
"get_service_queries",
|
|
182
|
+
"get_project_queries",
|
|
183
|
+
"get_security_queries",
|
|
184
|
+
"Projection",
|
|
185
|
+
"ServiceStatusProjection",
|
|
186
|
+
# LLM
|
|
187
|
+
"PactownLLM",
|
|
188
|
+
"PactownLLMError",
|
|
189
|
+
"LLMNotAvailableError",
|
|
190
|
+
"get_llm",
|
|
191
|
+
"is_lolm_available",
|
|
192
|
+
"llm_generate",
|
|
193
|
+
"get_llm_status",
|
|
194
|
+
"set_llm_priority",
|
|
195
|
+
"reset_llm_provider",
|
|
22
196
|
"__version__",
|
|
23
197
|
]
|