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.3.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for py_machineid-0.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4958529b265476722416b1cda99b25e38072520da8a23cc8accc5418dea8cf58 |
|
MD5 | 63cf9dfc5fc0d9e8756ab7fdca9ad9bd |
|
BLAKE2b-256 | 8e9c1daf79d555d7f0fb4fae28f4416c4b1792d561d3ed3d9b575a090105b62f |