{"id":2205,"library":"py-deviceid","title":"py-deviceid","description":"A simple Python library (current version 0.1.1, released March 2025) designed to retrieve or generate a unique device ID for a system. It adheres to the DevDeviceId specification, offering a consistent identifier across various platforms. The project's release cadence appears to be infrequent.","status":"active","version":"0.1.1","language":"en","source_language":"en","source_url":"https://github.com/microsoft/py-deviceid","tags":["device-id","system-identification","hardware-id","cross-platform"],"install":[{"cmd":"pip install py-deviceid","lang":"bash","label":"Install latest version"}],"dependencies":[],"imports":[{"note":"The PyPI package name is 'py-deviceid', but the top-level module to import is 'deviceid'.","wrong":"from py_deviceid import get_device_id","symbol":"get_device_id","correct":"from deviceid import get_device_id"}],"quickstart":{"code":"from deviceid import get_device_id\n\ndevice_id = get_device_id()\nprint(f\"Device ID: {device_id}\")","lang":"python","description":"This quickstart demonstrates how to retrieve the unique device ID for the current system using the `get_device_id` function."},"warnings":[{"fix":"Understand the 'DevDeviceId' specification or consider alternative methods if a different type of device identifier is required.","message":"The library provides a device ID based on the DevDeviceId specification. This may differ from other device identifiers (e.g., MAC addresses, hardware serials, or UUIDs generated by Python's `uuid` module) and might not align with user expectations if a different 'device ID' definition is assumed.","severity":"gotcha","affected_versions":"0.1.0 and later"},{"fix":"Review the GitHub repository for recent activity and consider pinning the package version to avoid unexpected changes if future updates occur.","message":"As of version 0.1.1, the library's development appears to be in an early stage with infrequent updates since its last release in March 2025. This could imply limited platform coverage, or potential for future API changes in later major versions, though none are explicitly documented as breaking in the current version.","severity":"gotcha","affected_versions":"0.1.0 and later"}],"env_vars":null,"last_verified":"2026-04-09T00:00:00.000Z","next_check":"2026-07-08T00:00:00.000Z"}