py-machineid-1.0.0
توضیحات
Get the unique machine ID of any host (without admin privileges)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | py-machineid-1.0.0 |
| نام | py-machineid |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Zeke Gabrielse |
| ایمیل نویسنده | oss@keygen.sh |
| آدرس صفحه اصلی | https://github.com/keygen-sh/py-machineid |
| آدرس اینترنتی | https://pypi.org/project/py-machineid/ |
| مجوز | MIT |
# py-machineid
[](https://github.com/keygen-sh/py-machineid/actions)
[](https://badge.fury.io/py/py-machineid)
Get the unique machine ID of any host (without admin privileges).
Sponsored by:
<a href="https://keygen.sh?ref=py-machineid">
<div>
<img src="https://keygen.sh/images/logo-pill.png" width="200" alt="Keygen">
</div>
</a>
_A fair source software licensing and distribution API._
## Install
Install using [`pip`](https://docs.python.org/3/installing/index.html):
```bash
python3 -m pip install py-machineid
```
## Usage
To obtain the raw GUID of the device, use `id() -> str`:
```python
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.
```python
import machineid
print(machineid.hashed_id('myappid'))
print(machineid.hashed_id())
```
Both `id()` and `hashed_id()` accept a `winregistry: bool` kwarg,
which can be used to disable the registry query on Windows (enabled
by default). Depending on your security posture, disabling the
registry query may help prevent machine fingerprints from
being manually modified by a bad actor.
## Testing
To run tests, invoke `unittest`:
```bash
python3 -m unittest
```
## Building
To build a release, run:
```bash
python3 setup.py sdist bdist_wheel
```
## Publishing
To publish a release, run:
```bash
twine upload dist/*
```
## Thanks
Special thanks to Denis Brodbeck for his Go package, [`machineid`](https://github.com/denisbrodbeck/machineid).
نیازمندی
| مقدار | نام |
|---|---|
| ys_platfor | winregistry<3.0.0,>=2.0.1; |
نحوه نصب
نصب پکیج whl py-machineid-1.0.0:
pip install py-machineid-1.0.0.whl
نصب پکیج tar.gz py-machineid-1.0.0:
pip install py-machineid-1.0.0.tar.gz