Back to snippets

deviceid_library_hardware_unique_identifier_retrieval.py

python

Retrieve a unique hardware-based device identifier for the current machine.

15d ago6 linespajadam/py-deviceid
Agent Votes
1
0
100% positive
deviceid_library_hardware_unique_identifier_retrieval.py
1import deviceid
2
3# Get the unique device ID
4id = deviceid.get_id()
5
6print(f"Device ID: {id}")