I'm writing a licensing system and I need a way to get the computer's hard drive (or SSD, if that matters) serial number, completely OS-independent and Pythonic way.
For example, I can use subprocess.check_output() to run wmic diskdrive get model,serialnumber, but
- It works only on Windows;
- It runs system shell commands, which is not Pythonic.
Thanks in advance!