metal-guard

v1.1.0 safe
3.6
Low Risk

GPU safety layer for MLX on Apple Silicon — prevents kernel panics from Metal driver bugs, includes community-curated KNOWN_PANIC_MODELS registry

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 23 test file(s) found

  • Test runner config found: pyproject.toml
  • 23 test file(s) detected (e.g. test_child_death_detector_w6.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (37677 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 234 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • t urllib.request with urllib.request.urlopen(f"{daemon_url}/api/tags", timeout=2.0) as r:
  • dy).encode("utf-8") req = urllib.request.Request( f"{daemon_url}/api/generate", data=
  • ut_sec) try: with urllib.request.urlopen(req, timeout=effective_timeout) as r: #
  • ad).encode("utf-8") req = urllib.request.Request( url, data=data, method="POST", head
  • , ) try: with urllib.request.urlopen(req, timeout=timeout) as resp: body = re
  • ponse_text(): with patch("urllib.request.urlopen", return_value=_FakeResp({"response": " hi "})):
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • lse) fd.write(base64.b64decode(b64)) fd.close() temp_paths.
  • raw = base64.b64decode(b64, validate=True) except (ValueError,
  • uffers. Performs: mx.eval(sync) -> mx.clear_cache(). MUST only be called after
  • SH: mx.eval sync") mx.eval(mx.zeros(1)) self.breadcrumb("FLUSH: mx.clear_cache(
  • alth check START") mx.eval(mx.zeros(1)) # ~1ms — exercises command queue round-trip
  • .eval sync START") mx.eval(mx.zeros(1)) metal_guard.breadcrumb("GENERATE: mx.ev
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • ve try: result = subprocess.run( ["pmset", "-g", "powerstate", "IODisplayWrangle
  • v.env_mitigation} subprocess.run(..., env=env) """ active = is_display_active(force=f
  • cess result = subprocess.run( ["sysctl", "-n", "hw.memsize"],
  • bprocess result = subprocess.run( ["sysctl", "-n", "machdep.cpu.brand_string"
  • l}" try: result = subprocess.run( ["launchctl", "bootout", target], c
  • """ try: result = subprocess.run( ["vm_stat"], capture_output=True, t
✓ Credential Harvesting

No credential harvesting patterns detected

✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Only one version has ever been released — brand new package
  • Author "Harper Systems" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with metal-guard
Build a simple Python application using the metal-guard package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!