{"id":24358,"library":"pymboot-rs","title":"pymboot-rs","description":"Python bindings for McuBoot implementation in Rust, providing high-performance communication with NXP MCU bootloader. Current version is 0.2.0, requires Python >=3.9. Release cadence is irregular as it's a new project.","status":"active","version":"0.2.0","language":"python","source_language":"en","source_url":"https://github.com/nicoulaj/pymboot-rs","tags":["nxp","mcuboot","bootloader","rust","embedded"],"install":[{"cmd":"pip install pymboot-rs","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"McuBoot","correct":"from pymboot_rs import McuBoot"},{"note":"","wrong":"","symbol":"BootMode","correct":"from pymboot_rs import BootMode"}],"quickstart":{"code":"from pymboot_rs import McuBoot, BootMode\nimport os\n\n# Connect to device (e.g., USB HID)\ndevice = McuBoot(port='hid', baudrate=115200)\n\n# Ping the device\nprint(device.ping())\n\n# Read a flash region\nimport sys\ndata = device.read_memory(address=0x0, length=256)\nsys.stdout.buffer.write(data)\n","lang":"python","description":"Connect to an NXP MCU bootloader via USB HID, ping, and read flash."},"warnings":[{"fix":"Install using pip install pymboot-rs, but import as from pymboot_rs import ...","message":"The library uses underscores in import (pymboot_rs) but the PyPI package name uses hyphens (pymboot-rs). Installation via pip with hyphens vs import with underscores is a common confusion.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin dependency to a specific minor version, e.g., pymboot-rs>=0.2,<0.3","message":"The Rust backend is still evolving; APIs may change without major version bump in early releases (0.x).","severity":"deprecated","affected_versions":"<1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use from pymboot_rs import McuBoot (underscores).","cause":"Trying to import with hyphens instead of underscores.","error":"ImportError: No module named 'pymboot-rs'"},{"fix":"Set up udev rules for NXP HID devices or run with sudo.","cause":"Device not found or permissions issue. Often on Linux if udev rules not set.","error":"pymboot_rs._McuBoot: Failed to open device"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}