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.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for py_machineid-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2d754b3238f29a4d16db9742a4428d61d10230de198383b1f1de0652700f927 |
|
MD5 | f5c6e0f4925bc8995cc32db816e475ea |
|
BLAKE2b-256 | b1d7c1fb8ecf9b6e97921805228c91032931df2e6f21a7bb5aa957845c7d1683 |