dominus-sdk-python-dev 2.2.0__py3-none-any.whl → 2.3.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.
@@ -4,12 +4,20 @@ Dominus Orchestrator Endpoints
4
4
  Single backend URL for all services. The SDK now targets dominus-orchestrator
5
5
  which consolidates all service functionality.
6
6
 
7
+ Configuration:
8
+ Set DOMINUS_BASE_URL environment variable to override the default URL.
9
+ Example: export DOMINUS_BASE_URL=http://localhost:5000
10
+
7
11
  Usage:
8
- from dominus.config.endpoints import BASE_URL
12
+ from dominus.config.endpoints import BASE_URL, get_base_url
9
13
  """
14
+ import os
15
+
16
+ # Default Dominus Orchestrator Production URL
17
+ _DEFAULT_BASE_URL = "https://dominus-orchestrator-production-775398158805.us-east4.run.app"
10
18
 
11
- # Dominus Orchestrator Production URL
12
- BASE_URL = "https://dominus-orchestrator-production-775398158805.us-east4.run.app"
19
+ # Base URL (can be overridden via DOMINUS_BASE_URL environment variable)
20
+ BASE_URL = os.environ.get("DOMINUS_BASE_URL", _DEFAULT_BASE_URL)
13
21
 
14
22
  # Legacy aliases (all point to orchestrator now) - DEPRECATED
15
23
  SOVEREIGN_URL = BASE_URL
@@ -19,8 +27,13 @@ WARDEN_URL = BASE_URL
19
27
 
20
28
 
21
29
  def get_base_url() -> str:
22
- """Get the dominus-orchestrator base URL."""
23
- return BASE_URL
30
+ """
31
+ Get the dominus-orchestrator base URL.
32
+
33
+ Returns the value of DOMINUS_BASE_URL environment variable if set,
34
+ otherwise returns the default production URL.
35
+ """
36
+ return os.environ.get("DOMINUS_BASE_URL", _DEFAULT_BASE_URL)
24
37
 
25
38
 
26
39
  # DEPRECATED - use get_base_url()
dominus/namespaces/ddl.py CHANGED
@@ -308,6 +308,22 @@ class DdlNamespace:
308
308
  )
309
309
  return result if isinstance(result, list) else []
310
310
 
311
+ async def apply_migration(self, schema: str, migration_id: str) -> Dict[str, Any]:
312
+ """
313
+ Apply a specific migration to a schema.
314
+
315
+ Args:
316
+ schema: Schema name (e.g., "tenant_acme")
317
+ migration_id: Migration version ID to apply
318
+
319
+ Returns:
320
+ Dict with application result
321
+ """
322
+ return await self._client._request(
323
+ endpoint=f"/api/smith/migrations/apply/{schema}",
324
+ body={"migration_id": migration_id}
325
+ )
326
+
311
327
  async def get_current_version(self, schema: str) -> Dict[str, Any]:
312
328
  """Get current migration version for a schema."""
313
329
  return await self._client._request(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dominus-sdk-python-dev
3
- Version: 2.2.0
3
+ Version: 2.3.0
4
4
  Summary: Python SDK for the Dominus Orchestrator Platform
5
5
  Author-email: CareBridge Systems <dev@carebridge.io>
6
6
  License: Proprietary
@@ -2,7 +2,7 @@ dominus/__init__.py,sha256=-VkTYvkoJS7ltZr6A3qOfqqU1ueKkYv3dhznfGnJ3oY,2990
2
2
  dominus/errors.py,sha256=Sfpg_4zlraE6fprdSu7RDNmSDv0Eg5OZRcPhNUQhNGs,5761
3
3
  dominus/start.py,sha256=mzBglBZ38jPPuHtLGJ7IIB5r_bnMR4_a5i4fZbyudQ8,32823
4
4
  dominus/config/__init__.py,sha256=nvLLNh4dM_MCqcfF3XFS2NnVn44q0RYHEfAPP-2G5To,434
5
- dominus/config/endpoints.py,sha256=CY7joW2T0Ec0HWhS6BhmGWZk7pRcaZiYAcoS_rhop4s,1067
5
+ dominus/config/endpoints.py,sha256=fsV5c7vaicpJlF735o46FP4Xlu2Ap4rSvnNa4F0TOYg,1574
6
6
  dominus/helpers/__init__.py,sha256=cyoBvw1QJugtGt0gYitIz1yxOaMmBa-wMXqbh-fi4PU,61
7
7
  dominus/helpers/auth.py,sha256=IVZLelikaGIAZvyc-q7EoPd8fBNVlGffGXQkTP4x5Fk,633
8
8
  dominus/helpers/cache.py,sha256=U09xylQipotRUNdB3zsQRcjmeYgKzu639P-ucNgks5M,5721
@@ -15,7 +15,7 @@ dominus/namespaces/admin.py,sha256=qkGoteAJ6cqdNub4zL1mtyxAQtsM3-nUplRSgw2fMZY,1
15
15
  dominus/namespaces/auth.py,sha256=Nqy4EOA1qMINvVuvf2-RnKPwN6TyLiD3vmz1G4J7TQg,55462
16
16
  dominus/namespaces/courier.py,sha256=WAhHpswhO8S_eEzn5zgBGhDqhgGxfDR_gs4i1rnotNw,6810
17
17
  dominus/namespaces/db.py,sha256=T_ZYVv1dOHdjGSDxrYVF27NttDA3LdG1iR3Rd8sqBWM,8461
18
- dominus/namespaces/ddl.py,sha256=wsJycGfvvk3gVpgOXRFPTQxmWsVcVrPwloMzA_32BkM,25336
18
+ dominus/namespaces/ddl.py,sha256=NTpd3V3595qcBheUZfFq4tQiAZsyYH9O8GR9OZ_czK8,25844
19
19
  dominus/namespaces/fastapi.py,sha256=AZOjUIJ5tznJVLkpctNa606XRTv5IEkjvrINEHgkeuE,8745
20
20
  dominus/namespaces/files.py,sha256=rA1jKn88AHyfxXZHejY5o6931q3ikM03NmGGo2wwQ44,13174
21
21
  dominus/namespaces/health.py,sha256=xdRjwOpnG769H2kbhysATdYzQzbEmpNyt17dMMYj340,1474
@@ -28,7 +28,7 @@ dominus/namespaces/secure.py,sha256=9idGY5R6k7b-JM1SAF_1Gt-YV5OempyxFBflgLJieLo,
28
28
  dominus/services/__init__.py,sha256=LQl5sx6DHhX1xCN3MRoUgffxqwm3Mfm525hijyFods8,43
29
29
  dominus/services/_deprecated_architect.py,sha256=EAMhUK8C_4DLgYyKGVqcXrroEoAenWeuKWnPMowGMQk,14985
30
30
  dominus/services/_deprecated_sovereign.py,sha256=is9SQVCcmcGUEFKULqitHlk67pfpfkQE-ApU-gVjIEE,3511
31
- dominus_sdk_python_dev-2.2.0.dist-info/METADATA,sha256=BnxJPwrWwcyJT4WOJuvi78Bzor0820ZC8xqreu23V5g,16520
32
- dominus_sdk_python_dev-2.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
- dominus_sdk_python_dev-2.2.0.dist-info/top_level.txt,sha256=515zxMIbX0DpheRbjvNqKIt_AFqdFjX41jtyp_SqLf4,8
34
- dominus_sdk_python_dev-2.2.0.dist-info/RECORD,,
31
+ dominus_sdk_python_dev-2.3.0.dist-info/METADATA,sha256=zb7sLkwxGc2bPKH7WE3j_yYPJAxmQqRXcAQw9js_svU,16520
32
+ dominus_sdk_python_dev-2.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
+ dominus_sdk_python_dev-2.3.0.dist-info/top_level.txt,sha256=515zxMIbX0DpheRbjvNqKIt_AFqdFjX41jtyp_SqLf4,8
34
+ dominus_sdk_python_dev-2.3.0.dist-info/RECORD,,