Metadata-Version: 2.4
Name: aver-auth
Version: 0.1.0
Summary: Python SDK for Aver-Auth license verification
License-Expression: MIT
Project-URL: Homepage, https://github.com/avertools/auth
Project-URL: Repository, https://github.com/avertools/auth
Project-URL: Issues, https://github.com/avertools/auth/issues
Keywords: license,auth,authentication,license-key,hwid,aver-auth
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# aver-auth

Python SDK for [Aver-Auth](https://github.com/avertools/auth) license key verification.

## Install

```bash
pip install aver-auth
```

## Usage

```python
from aver_auth import AverAuth

auth = AverAuth(
    api_key="your-api-key",
    product="Your Product Name",
)

# Verify and bind a license key
result = auth.verify(license_key="AAAA-BBBB-CCCC", hwid="machine-uuid")

if result.valid:
    print("Key is valid")
else:
    print(f"Failed: {result.message}")

# Reset HWID (free key from a machine)
reset = auth.reset_hwid(license_key="AAAA-BBBB-CCCC")

if reset.success:
    print(f"HWID cleared. Resets remaining: {reset.resets_remaining}")
```

## Options

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `api_key` | `str` | required | Your API key |
| `product` | `str` | required | Product name to verify against |
| `base_url` | `str` | `https://backend.trapstar.lol/api` | API base URL |
| `timeout` | `int` | `10` | Request timeout in seconds |

## License

MIT
