Get the unique machine ID of any host (without admin privileges)
Project description
py-machineid
Get the unique machine ID of any host (without admin privileges).
Sponsored by:
A software licensing and distribution API built for developers.
Install
Install using pip
:
python3 -m pip install py-machineid
Usage
To obtain the raw GUID of the device, use id() -> str
:
import machineid
print(machineid.id())
To obtain an anonymized (hashed) version of the GUID, see below. The
hashed_id(str) -> str
function takes an optional application ID,
which will ensure a unique ID per-app for the same device.
import machineid
print(machine.hashed_id('myappid'))
print(machine.hashed_id())
Thanks
Special thanks to Denis Brodbeck for his Go package, machineid
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-machineid-0.2.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for py_machineid-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fb1cec9deed358fac5be7bf45ae9accaf50982a9366b89203464bd65f1b4297 |
|
MD5 | f540ca5e3d0c6622b83b775d925607ce |
|
BLAKE2b-256 | 36d1858633a5d560a96b30a5de329659614537635ba8decd59bae2f6e91b092b |