@magpiecloud/mags 1.8.14 → 1.8.16

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.
Files changed (44) hide show
  1. package/README.md +95 -378
  2. package/bin/mags.js +0 -0
  3. package/index.js +2 -0
  4. package/package.json +19 -4
  5. package/API.md +0 -388
  6. package/Mags-API.postman_collection.json +0 -374
  7. package/QUICKSTART.md +0 -295
  8. package/deploy-page.sh +0 -171
  9. package/mags +0 -0
  10. package/mags.sh +0 -270
  11. package/nodejs/README.md +0 -197
  12. package/nodejs/bin/mags.js +0 -1146
  13. package/nodejs/index.js +0 -596
  14. package/nodejs/package.json +0 -42
  15. package/python/INTEGRATION.md +0 -800
  16. package/python/README.md +0 -161
  17. package/python/dist/magpie_mags-1.3.6-py3-none-any.whl +0 -0
  18. package/python/dist/magpie_mags-1.3.6.tar.gz +0 -0
  19. package/python/examples/demo.py +0 -181
  20. package/python/pyproject.toml +0 -39
  21. package/python/src/magpie_mags.egg-info/PKG-INFO +0 -186
  22. package/python/src/magpie_mags.egg-info/SOURCES.txt +0 -9
  23. package/python/src/magpie_mags.egg-info/dependency_links.txt +0 -1
  24. package/python/src/magpie_mags.egg-info/requires.txt +0 -1
  25. package/python/src/magpie_mags.egg-info/top_level.txt +0 -1
  26. package/python/src/mags/__init__.py +0 -6
  27. package/python/src/mags/client.py +0 -523
  28. package/python/test_sdk.py +0 -78
  29. package/skill.md +0 -153
  30. package/website/api.html +0 -1095
  31. package/website/claude-skill.html +0 -481
  32. package/website/cookbook/hn-marketing.html +0 -410
  33. package/website/cookbook/hn-marketing.sh +0 -42
  34. package/website/cookbook.html +0 -282
  35. package/website/docs.html +0 -677
  36. package/website/env.js +0 -4
  37. package/website/index.html +0 -801
  38. package/website/llms.txt +0 -334
  39. package/website/login.html +0 -108
  40. package/website/mags.md +0 -210
  41. package/website/script.js +0 -453
  42. package/website/styles.css +0 -1075
  43. package/website/tokens.html +0 -169
  44. package/website/usage.html +0 -185
@@ -1,523 +0,0 @@
1
- """Mags client for interacting with the Magpie VM infrastructure API."""
2
-
3
- from __future__ import annotations
4
-
5
- import os
6
- import time
7
- from pathlib import Path
8
- from typing import Any, Dict, List, Optional
9
-
10
- import requests
11
-
12
-
13
- class MagsError(Exception):
14
- """Raised when the Mags API returns an error."""
15
-
16
- def __init__(self, message: str, status_code: int | None = None):
17
- super().__init__(message)
18
- self.status_code = status_code
19
-
20
-
21
- class Mags:
22
- """Client for the Mags API.
23
-
24
- Args:
25
- api_token: API token. Falls back to ``MAGS_API_TOKEN`` or ``MAGS_TOKEN`` env vars.
26
- api_url: API base URL. Falls back to ``MAGS_API_URL`` env var or
27
- ``https://api.magpiecloud.com``.
28
- timeout: Default request timeout in seconds.
29
- """
30
-
31
- def __init__(
32
- self,
33
- api_token: str | None = None,
34
- api_url: str | None = None,
35
- timeout: int = 30,
36
- ):
37
- self.api_url = (
38
- api_url
39
- or os.environ.get("MAGS_API_URL")
40
- or "https://api.magpiecloud.com"
41
- ).rstrip("/")
42
-
43
- self.api_token = (
44
- api_token
45
- or os.environ.get("MAGS_API_TOKEN")
46
- or os.environ.get("MAGS_TOKEN")
47
- )
48
- if not self.api_token:
49
- raise MagsError(
50
- "API token required. Set MAGS_API_TOKEN env var or pass api_token."
51
- )
52
-
53
- self.timeout = timeout
54
- self._session = requests.Session()
55
- self._session.headers.update(
56
- {
57
- "Authorization": f"Bearer {self.api_token}",
58
- "Content-Type": "application/json",
59
- }
60
- )
61
-
62
- # ── helpers ──────────────────────────────────────────────────────
63
-
64
- def _request(
65
- self,
66
- method: str,
67
- path: str,
68
- json: Any = None,
69
- params: dict | None = None,
70
- timeout: int | None = None,
71
- ) -> Any:
72
- url = f"{self.api_url}/api/v1{path}"
73
- resp = self._session.request(
74
- method,
75
- url,
76
- json=json,
77
- params=params,
78
- timeout=timeout or self.timeout,
79
- )
80
- if resp.status_code >= 400:
81
- try:
82
- body = resp.json()
83
- msg = body.get("error") or body.get("message") or resp.text
84
- except Exception:
85
- msg = resp.text
86
- raise MagsError(msg, status_code=resp.status_code)
87
- if not resp.content:
88
- return {}
89
- return resp.json()
90
-
91
- # ── jobs ─────────────────────────────────────────────────────────
92
-
93
- def run(
94
- self,
95
- script: str,
96
- *,
97
- name: str | None = None,
98
- workspace_id: str | None = None,
99
- base_workspace_id: str | None = None,
100
- persistent: bool = False,
101
- no_sleep: bool = False,
102
- ephemeral: bool = False,
103
- startup_command: str | None = None,
104
- environment: Dict[str, str] | None = None,
105
- file_ids: List[str] | None = None,
106
- disk_gb: int | None = None,
107
- no_sync: bool = False,
108
- ) -> dict:
109
- """Submit a job for execution.
110
-
111
- Args:
112
- script: Shell script to execute inside the VM.
113
- name: Optional job name.
114
- workspace_id: Persistent workspace name (synced to S3).
115
- base_workspace_id: Read-only base workspace to mount.
116
- persistent: Keep VM alive after script finishes.
117
- no_sleep: Never auto-sleep this VM (requires persistent=True).
118
- The VM stays running 24/7 and auto-recovers if its host goes down.
119
- ephemeral: No S3 sync (faster, truly ephemeral).
120
- startup_command: Command to run when VM wakes from sleep.
121
- environment: Key-value env vars injected into the VM.
122
- file_ids: File IDs to download into VM before script runs.
123
- disk_gb: Custom disk size in GB (default 2GB).
124
- no_sync: Skip S3 sync, use local disk only.
125
-
126
- Returns ``{"request_id": ..., "status": "accepted"}``.
127
- """
128
- if ephemeral and workspace_id:
129
- raise MagsError("Cannot use ephemeral with workspace_id")
130
- if ephemeral and persistent:
131
- raise MagsError("Cannot use ephemeral with persistent")
132
- if no_sleep and not persistent:
133
- raise MagsError("no_sleep requires persistent=True")
134
-
135
- payload = {
136
- "script": script,
137
- "type": "inline",
138
- "persistent": persistent,
139
- }
140
- if no_sleep:
141
- payload["no_sleep"] = True
142
- if no_sync:
143
- payload["no_sync"] = True
144
- if name:
145
- payload["name"] = name
146
- if not ephemeral and workspace_id:
147
- payload["workspace_id"] = workspace_id
148
- if base_workspace_id:
149
- payload["base_workspace_id"] = base_workspace_id
150
- if startup_command:
151
- payload["startup_command"] = startup_command
152
- if environment:
153
- payload["environment"] = environment
154
- if file_ids:
155
- payload["file_ids"] = file_ids
156
- if disk_gb:
157
- payload["disk_gb"] = disk_gb
158
-
159
- return self._request("POST", "/mags-jobs", json=payload)
160
-
161
- def run_and_wait(
162
- self,
163
- script: str,
164
- *,
165
- timeout: float = 60.0,
166
- poll_interval: float = 1.0,
167
- **run_kwargs: Any,
168
- ) -> dict:
169
- """Submit a job and block until it completes or times out.
170
-
171
- Returns a dict with ``request_id``, ``status``, ``exit_code``,
172
- ``duration_ms``, and ``logs``.
173
- """
174
- result = self.run(script, **run_kwargs)
175
- request_id = result["request_id"]
176
-
177
- deadline = time.monotonic() + timeout
178
- while time.monotonic() < deadline:
179
- status = self.status(request_id)
180
- if status["status"] in ("completed", "error"):
181
- logs_resp = self.logs(request_id)
182
- return {
183
- "request_id": request_id,
184
- "status": status["status"],
185
- "exit_code": status.get("exit_code", 0),
186
- "duration_ms": status.get("script_duration_ms", 0),
187
- "logs": logs_resp.get("logs", []),
188
- }
189
- time.sleep(poll_interval)
190
-
191
- raise MagsError(f"Job {request_id} timed out after {timeout}s")
192
-
193
- def status(self, request_id: str) -> dict:
194
- """Get the status of a job."""
195
- return self._request("GET", f"/mags-jobs/{request_id}/status")
196
-
197
- def logs(self, request_id: str) -> dict:
198
- """Get logs for a job. Returns ``{"logs": [...]}`."""
199
- return self._request("GET", f"/mags-jobs/{request_id}/logs")
200
-
201
- def list_jobs(self, *, page: int = 1, page_size: int = 20) -> dict:
202
- """List recent jobs. Returns ``{"jobs": [...], "total": N, ...}``."""
203
- return self._request(
204
- "GET", "/mags-jobs", params={"page": page, "page_size": page_size}
205
- )
206
-
207
- def update_job(
208
- self,
209
- request_id: str,
210
- *,
211
- startup_command: str | None = None,
212
- no_sleep: bool | None = None,
213
- ) -> dict:
214
- """Update a job's settings.
215
-
216
- Args:
217
- request_id: The job/workspace ID to update.
218
- startup_command: Command to run when VM wakes from sleep.
219
- no_sleep: If True, VM never auto-sleeps. If False, re-enables auto-sleep.
220
- """
221
- payload: dict = {}
222
- if startup_command is not None:
223
- payload["startup_command"] = startup_command
224
- if no_sleep is not None:
225
- payload["no_sleep"] = no_sleep
226
- return self._request("PATCH", f"/mags-jobs/{request_id}", json=payload)
227
-
228
- def enable_access(self, request_id: str, *, port: int = 8080) -> dict:
229
- """Enable external access (URL or SSH) for a persistent job's VM.
230
-
231
- Use ``port=22`` for SSH access, or ``port=8080`` (default) for HTTP/URL access.
232
- """
233
- return self._request(
234
- "POST", f"/mags-jobs/{request_id}/access", json={"port": port}
235
- )
236
-
237
- def stop(self, name_or_id: str) -> dict:
238
- """Stop a running job.
239
-
240
- Accepts a job ID, job name, or workspace ID.
241
- """
242
- request_id = self._resolve_job_id(name_or_id)
243
- return self._request("POST", f"/mags-jobs/{request_id}/stop")
244
-
245
- def resize(
246
- self,
247
- workspace: str,
248
- disk_gb: int,
249
- *,
250
- timeout: float = 30.0,
251
- poll_interval: float = 1.0,
252
- ) -> dict:
253
- """Resize a workspace's disk. Stops the existing VM, then creates a new one.
254
-
255
- Workspace files are preserved in S3.
256
- Returns ``{"request_id": ..., "status": "running"}``.
257
- """
258
- existing = self.find_job(workspace)
259
- if existing and existing.get("status") == "running":
260
- self._request("POST", f"/mags-jobs/{existing['request_id']}/sync")
261
- self._request("POST", f"/mags-jobs/{existing['request_id']}/stop")
262
- time.sleep(1)
263
- elif existing and existing.get("status") == "sleeping":
264
- self._request("POST", f"/mags-jobs/{existing['request_id']}/stop")
265
- time.sleep(1)
266
-
267
- return self.new(workspace, persistent=True, disk_gb=disk_gb,
268
- timeout=timeout, poll_interval=poll_interval)
269
-
270
- def new(
271
- self,
272
- name: str,
273
- *,
274
- persistent: bool = False,
275
- base_workspace_id: str | None = None,
276
- disk_gb: int | None = None,
277
- timeout: float = 30.0,
278
- poll_interval: float = 1.0,
279
- ) -> dict:
280
- """Create a new VM sandbox and wait until it's running.
281
-
282
- By default, data lives on local disk only (no S3 sync).
283
- Pass ``persistent=True`` to enable S3 data persistence.
284
-
285
- Equivalent to ``mags new <name>`` or ``mags new <name> -p``.
286
-
287
- Returns ``{"request_id": ..., "status": "running"}``.
288
- """
289
- result = self.run(
290
- "sleep infinity",
291
- workspace_id=name,
292
- persistent=True,
293
- no_sync=not persistent,
294
- base_workspace_id=base_workspace_id,
295
- disk_gb=disk_gb,
296
- )
297
- request_id = result["request_id"]
298
-
299
- deadline = time.monotonic() + timeout
300
- while time.monotonic() < deadline:
301
- st = self.status(request_id)
302
- if st["status"] == "running" and st.get("vm_id"):
303
- return {"request_id": request_id, "status": "running"}
304
- if st["status"] in ("completed", "error"):
305
- raise MagsError(f"Job {request_id} ended unexpectedly: {st['status']}")
306
- time.sleep(poll_interval)
307
-
308
- raise MagsError(f"Job {request_id} did not start within {timeout}s")
309
-
310
- def find_job(self, name_or_id: str) -> dict | None:
311
- """Find a running or sleeping job by name, workspace ID, or job ID.
312
-
313
- Uses the same resolution priority as the CLI:
314
- running/sleeping exact name → workspace ID → any status exact name.
315
- Returns the job dict or ``None``.
316
- """
317
- jobs = self.list_jobs(page_size=50).get("jobs", [])
318
-
319
- # Priority 1: exact name match, running/sleeping
320
- for j in jobs:
321
- if j.get("name") == name_or_id and j.get("status") in ("running", "sleeping"):
322
- return j
323
-
324
- # Priority 2: workspace_id match, running/sleeping
325
- for j in jobs:
326
- if j.get("workspace_id") == name_or_id and j.get("status") in ("running", "sleeping"):
327
- return j
328
-
329
- # Priority 3: exact name match, any status
330
- for j in jobs:
331
- if j.get("name") == name_or_id:
332
- return j
333
-
334
- # Priority 4: workspace_id match, any status
335
- for j in jobs:
336
- if j.get("workspace_id") == name_or_id:
337
- return j
338
-
339
- return None
340
-
341
- def url(self, name_or_id: str, *, port: int = 8080) -> dict:
342
- """Enable public URL access for a job's VM.
343
-
344
- Accepts a job ID, job name, or workspace ID.
345
- Returns dict with ``url`` and access details.
346
- """
347
- request_id = self._resolve_job_id(name_or_id)
348
- st = self.status(request_id)
349
- resp = self.enable_access(request_id, port=port)
350
- subdomain = st.get("subdomain") or resp.get("subdomain")
351
- if subdomain:
352
- resp["url"] = f"https://{subdomain}.apps.magpiecloud.com"
353
- return resp
354
-
355
- def exec(self, name_or_id: str, command: str, *, timeout: int = 30) -> dict:
356
- """Execute a command on an existing running/sleeping sandbox.
357
-
358
- Equivalent to ``mags exec <workspace> '<command>'``.
359
-
360
- Returns ``{"exit_code": int, "output": str, "stderr": str}``.
361
- """
362
- job = self.find_job(name_or_id)
363
- if not job:
364
- raise MagsError(f"No running or sleeping VM found for '{name_or_id}'")
365
- if job["status"] not in ("running", "sleeping"):
366
- raise MagsError(
367
- f"VM for '{name_or_id}' is {job['status']}, needs to be running or sleeping"
368
- )
369
-
370
- request_id = job.get("request_id") or job.get("id")
371
- resp = self._request(
372
- "POST",
373
- f"/mags-jobs/{request_id}/exec",
374
- json={"command": command, "timeout": timeout},
375
- timeout=timeout + 10, # HTTP timeout > command timeout
376
- )
377
- return {
378
- "exit_code": resp.get("exit_code", -1),
379
- "output": resp.get("stdout", ""),
380
- "stderr": resp.get("stderr", ""),
381
- }
382
-
383
- def usage(self, *, window_days: int = 30) -> dict:
384
- """Get aggregated usage summary."""
385
- return self._request(
386
- "GET", "/mags-jobs/usage", params={"window_days": window_days}
387
- )
388
-
389
- # ── internal helpers ─────────────────────────────────────────────
390
-
391
- def _resolve_job_id(self, name_or_id: str) -> str:
392
- """Resolve a job name, workspace ID, or UUID to a request_id."""
393
- # If it looks like a UUID, use directly
394
- if len(name_or_id) >= 32 and "-" in name_or_id:
395
- return name_or_id
396
- job = self.find_job(name_or_id)
397
- if not job:
398
- raise MagsError(f"No job found for '{name_or_id}'")
399
- return job.get("request_id") or job.get("id")
400
-
401
- # ── file uploads ─────────────────────────────────────────────────
402
-
403
- def upload_file(self, file_path: str) -> str:
404
- """Upload a single file. Returns the file ID."""
405
- p = Path(file_path)
406
- if not p.exists():
407
- raise MagsError(f"File not found: {file_path}")
408
-
409
- url = f"{self.api_url}/api/v1/mags-files"
410
- # Use a fresh request without the JSON content-type
411
- resp = requests.post(
412
- url,
413
- files={"file": (p.name, p.read_bytes(), "application/octet-stream")},
414
- headers={"Authorization": f"Bearer {self.api_token}"},
415
- timeout=self.timeout,
416
- )
417
- if resp.status_code >= 400:
418
- raise MagsError(resp.text, status_code=resp.status_code)
419
- data = resp.json()
420
- file_id = data.get("file_id")
421
- if not file_id:
422
- raise MagsError(f"Upload failed for {p.name}: {data}")
423
- return file_id
424
-
425
- def upload_files(self, file_paths: List[str]) -> List[str]:
426
- """Upload multiple files. Returns a list of file IDs."""
427
- return [self.upload_file(fp) for fp in file_paths]
428
-
429
- # ── workspaces ────────────────────────────────────────────────────
430
-
431
- def list_workspaces(self) -> dict:
432
- """List all workspaces. Returns ``{"workspaces": [...], "total": N}``."""
433
- return self._request("GET", "/mags-workspaces")
434
-
435
- def delete_workspace(self, workspace_id: str) -> dict:
436
- """Delete a workspace and all its stored data.
437
-
438
- This permanently removes the workspace filesystem from S3.
439
- Active jobs using the workspace must be stopped first.
440
- """
441
- return self._request("DELETE", f"/mags-workspaces/{workspace_id}")
442
-
443
- def sync(self, request_id: str) -> dict:
444
- """Sync a running job's workspace to S3 without stopping the VM.
445
-
446
- Use this to persist workspace changes immediately, e.g. after
447
- setting up a base image.
448
- """
449
- return self._request("POST", f"/mags-jobs/{request_id}/sync")
450
-
451
- # ── cron jobs ────────────────────────────────────────────────────
452
-
453
- def cron_create(
454
- self,
455
- *,
456
- name: str,
457
- cron_expression: str,
458
- script: str,
459
- workspace_id: str | None = None,
460
- environment: Dict[str, str] | None = None,
461
- persistent: bool = False,
462
- ) -> dict:
463
- """Create a scheduled cron job."""
464
- payload = {
465
- "name": name,
466
- "cron_expression": cron_expression,
467
- "script": script,
468
- "persistent": persistent,
469
- }
470
- if workspace_id:
471
- payload["workspace_id"] = workspace_id
472
- if environment:
473
- payload["environment"] = environment
474
- return self._request("POST", "/mags-cron", json=payload)
475
-
476
- def cron_list(self) -> dict:
477
- """List all cron jobs."""
478
- return self._request("GET", "/mags-cron")
479
-
480
- def cron_get(self, cron_id: str) -> dict:
481
- """Get a cron job by ID."""
482
- return self._request("GET", f"/mags-cron/{cron_id}")
483
-
484
- def cron_update(self, cron_id: str, **updates: Any) -> dict:
485
- """Update a cron job. Pass fields as keyword arguments."""
486
- return self._request("PATCH", f"/mags-cron/{cron_id}", json=updates)
487
-
488
- def cron_delete(self, cron_id: str) -> dict:
489
- """Delete a cron job."""
490
- return self._request("DELETE", f"/mags-cron/{cron_id}")
491
-
492
- # ── URL aliases ──────────────────────────────────────────────────
493
-
494
- def url_alias_create(
495
- self,
496
- subdomain: str,
497
- workspace_id: str,
498
- domain: str = "apps.magpiecloud.com",
499
- ) -> dict:
500
- """Create a stable URL alias for a workspace.
501
-
502
- The alias maps ``subdomain.<domain>`` to the active job in the workspace.
503
- Use ``domain="app.lfg.run"`` for the LFG domain.
504
-
505
- Returns ``{"id": ..., "subdomain": ..., "url": ...}``.
506
- """
507
- return self._request(
508
- "POST",
509
- "/mags-url-aliases",
510
- json={
511
- "subdomain": subdomain,
512
- "workspace_id": workspace_id,
513
- "domain": domain,
514
- },
515
- )
516
-
517
- def url_alias_list(self) -> dict:
518
- """List all URL aliases. Returns ``{"aliases": [...], "total": N}``."""
519
- return self._request("GET", "/mags-url-aliases")
520
-
521
- def url_alias_delete(self, subdomain: str) -> dict:
522
- """Delete a URL alias by subdomain."""
523
- return self._request("DELETE", f"/mags-url-aliases/{subdomain}")
@@ -1,78 +0,0 @@
1
- """Test the Mags Python SDK: new, exec, url."""
2
-
3
- import os
4
- import sys
5
- import time
6
-
7
- os.environ["MAGS_API_TOKEN"] = "da214df72c164bda47970491fd839247a864c2599305ce90b38512d43ed034ea"
8
-
9
- # Use local src/ instead of installed package
10
- sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
11
-
12
- from mags import Mags
13
-
14
- m = Mags()
15
- WS = "sdk-test-" + str(int(time.time()))
16
-
17
- print(f"=== Test 1: Create new VM ({WS}) ===")
18
- result = m.new(WS)
19
- print(f" request_id: {result['request_id']}")
20
- print(f" status: {result['status']}")
21
- assert result["status"] == "running"
22
- print(" PASS\n")
23
-
24
- print("=== Test 2: find_job ===")
25
- job = m.find_job(WS)
26
- print(f" found: workspace={job.get('workspace_id')} status={job.get('status')}")
27
- assert job is not None
28
- assert job["status"] == "running"
29
- print(" PASS\n")
30
-
31
- print("=== Test 3: exec - simple command ===")
32
- try:
33
- result = m.exec(WS, "echo HELLO_FROM_SDK && uname -a", timeout=15)
34
- print(f" exit_code: {result['exit_code']}")
35
- print(f" output: {result['output'].strip()}")
36
- if result["stderr"]:
37
- print(f" stderr: {result['stderr'].strip()}")
38
- assert "HELLO_FROM_SDK" in result["output"]
39
- print(" PASS\n")
40
- except Exception as e:
41
- print(f" FAIL: {e}\n")
42
-
43
- print("=== Test 4: exec - create HTML file ===")
44
- html = "<html><body><h1>Mags SDK Test</h1><p>Served from a microVM!</p></body></html>"
45
- try:
46
- result = m.exec(WS, f"echo '{html}' > /root/index.html", timeout=15)
47
- print(f" exit_code: {result['exit_code']}")
48
- result = m.exec(WS, "cat /root/index.html", timeout=15)
49
- print(f" content: {result['output'].strip()[:80]}...")
50
- print(" PASS\n")
51
- except Exception as e:
52
- print(f" FAIL: {e}\n")
53
-
54
- print("=== Test 5: exec - start python HTTP server ===")
55
- try:
56
- result = m.exec(WS, "nohup python3 -m http.server 8080 --directory /root > /tmp/srv.log 2>&1 & echo PID=$!", timeout=15)
57
- print(f" output: {result['output'].strip()}")
58
- time.sleep(1)
59
- # Verify it's running
60
- result = m.exec(WS, "curl -s http://localhost:8080/index.html | head -1", timeout=15)
61
- print(f" curl: {result['output'].strip()[:80]}")
62
- print(" PASS\n")
63
- except Exception as e:
64
- print(f" FAIL: {e}\n")
65
-
66
- print("=== Test 6: url - enable public URL ===")
67
- try:
68
- info = m.url(WS, port=8080)
69
- print(f" success: {info.get('success')}")
70
- print(f" url: {info.get('url', 'N/A')}")
71
- if info.get("url"):
72
- print(f"\n >>> Visit: {info['url']} <<<")
73
- print(" PASS\n")
74
- except Exception as e:
75
- print(f" FAIL: {e}\n")
76
-
77
- print("=== All tests complete ===")
78
- print(f"Workspace: {WS}")