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.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for py_machineid-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df041aade6f9a5ae222c27e98ca2aa295963b5298d11f888f27ef9b353561123 |
|
MD5 | c33c1dac7fdb14d62d41712b2299dd27 |
|
BLAKE2b-256 | 261c5027ef84c01cbcf1e1e22e9e515e2bcaa39fb71b59ebf30b96b9d2c5837d |