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:
An open, source-available software licensing and distribution API.
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(machineid.hashed_id('myappid'))
print(machineid.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.4.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for py_machineid-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1db59a0db26fffdfb872162943df31541615cd112d4b7797ea8479060c96411 |
|
MD5 | 50e296932436ff7604bd5790e12e6ea4 |
|
BLAKE2b-256 | 865e434b175622d1da24b2c1834408b268d61b3b20915dc2cfa2cfdfef2cf50a |