{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/8"},{"label":"Hardware","url":"https://skillfed.io/packages/category/system-hardware"}],"enrichment":{"capability":"Detects the chip and board type of single-board computers and other platforms by reading system files and Python's sys.platform, primarily for use with Adafruit libraries.","skillfed_tags":["hardware-detection","single-board-computer","embedded-systems"],"use_cases":["Detect Raspberry Pi model in a GPIO control library to apply model-specific pin mappings or timing adjustments.","Identify Beaglebone Black in a hardware abstraction layer to load the correct device drivers.","Adapt CircuitPython code to run on different single-board computers by detecting the platform at startup.","Build cross-platform embedded applications that behave differently on Raspberry Pi, Orange Pi, or generic Linux PCs.","Validate that a deployment is running on the expected hardware before initializing peripherals."],"what_it_does":"Adafruit-PlatformDetect is a library that identifies what single-board computer or platform your code is running on by examining system files and Python's built-in platform info. It separates detection into two layers: chip identification (the processor itself) and board identification (the specific device model), since board detection often depends on knowing the chip first. The library gathers platform information from Linux system files like /proc/cpuinfo and /proc/device-tree/compatible, as well as board-specific sources like Beaglebone EEPROM IDs and distribution files.\n\nIt was originally written to support Adafruit_Blinka, a compatibility layer that lets CircuitPython code run on Linux single-board computers, but the detection logic is general enough to be useful in any project that needs to know what hardware it's running on. The library has no runtime dependencies and installs cleanly, making it lightweight for embedded and IoT use cases where you need to adapt behavior based on the detected platform.","worth_installing":"Yes. The package is actively maintained, has no dependencies, installs with low friction, carries a permissive MIT license, and solves a real problem for anyone writing code that needs to adapt to different single-board computers. It has been stable since 2018 and is in production use. Install it if your project needs to detect or adapt to the underlying hardware platform."},"id":"adafruit-platformdetect","links":{"html":"https://skillfed.io/packages/adafruit-platformdetect","md":"https://skillfed.io/packages/adafruit-platformdetect.md","pypi":"https://pypi.org/project/adafruit-platformdetect/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-24","license_spdx":null,"license_treatment":"permissive","name":"Adafruit-PlatformDetect","python_support":"unspecified","summary":"Platform detection for use by libraries like Adafruit-Blinka."},"popularity":{"monthly_downloads":158724,"position":10713,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.89.1"}
