py-pi-bake

v0.6.6 safe
3.4
Low Risk

Generate flashable, headless Raspberry Pi images (no setup-alpine, no rpi-imager-pre-fill required)

📦 Package Quality Overall: Low (4.4/10)

✦ High Test Suite 9.0

Test suite present — 13 test file(s) found

  • 13 test file(s) detected (e.g. test_alpine_ext4.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (9371 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 111 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 3.0

Found 2 network call pattern(s)

  • ".tmp") try: with urllib.request.urlopen(url) as r, open(tmp, "wb") as f: total =
  • sha256" try: with urllib.request.urlopen(sidecar_url, timeout=15) as r: expected
⚠ Code Obfuscation score 4.0

Found 2 obfuscation pattern(s)

  • ith(b"-----") ) der = base64.b64decode(b64_body) assert len(der) == 48 # OID 1.3.101.112 (i
  • sh-ed25519" prefix blob = base64.b64decode(fields[1]) assert blob[:4] == b"\x00\x00\x00\x0b" as
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • T32, -v for volume label. subprocess.run( ["mformat", "-i", str(path), "-F", "-v", "PI-BAKE",
  • g), str(src), target] r = subprocess.run(cmd, capture_output=True, text=True) if r.returncode !=
  • host_ed25519_key.pub" subprocess.run( [ "ssh-keygen", "-q", "-t", "ed
  • h.name, BOOT_PART_MB) p = subprocess.Popen( ["sfdisk", str(path)], stdin=subprocess.PIP
  • tage.mkdir(exist_ok=True) subprocess.run( ["tar", "-xzf", str(apk_file), "-C", str(stage),
  • ssh_host_ed25519_key" subprocess.run( ["ssh-keygen", "-t", "ed25519", "-N", "",
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • stname}\n", mode=0o644) # /etc/hosts — Alpine ships a default; we replace with a # 127.0.0.1
  • "sed -i '/^127\\.0\\.1\\.1/d' /etc/hosts\n" f"echo $'127.0.1.1\\t{node.hostname}' >> /et
  • 7.0.1.1\\t{node.hostname}' >> /etc/hosts\n" "\n" "# Timezone. Direct file wr
  • me}\n", mode=0o644) # /etc/hosts — Pi OS ships a default. Append 127.0.1.1 # line so
  • otfs at bake time. Just edit `/etc/passwd` / `/home/<user>/.ssh/authorized_keys` / `/etc/hostname` /
  • ".encode(), mode=0o644) # /etc/hosts: rewrite the 127.0.1.1 line hosts_path = root / "etc/ho
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: hotmail.com>

✓ 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

  • Author name is missing or very short
  • Author "" 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 py-pi-bake
Build a simple Python application using the py-pi-bake package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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