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(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.3.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for py_machineid-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 220236c1f55eb2285014474ad1dd7e05eaa897d40d2b2b544866c166add383f1 |
|
MD5 | 0970b7f96c48f77aef7bfd0710da8707 |
|
BLAKE2b-256 | 550958091b8f1d58a7324019f03f44fc189ebf851ec206a792c5030bc14a05c8 |