Metadata-Version: 2.4
Name: authv4
Version: 4.0.2
Summary: Authris license client SDK
Author: Authris
License: MIT
Project-URL: Homepage, https://github.com/V12KLT/authris-sdk
Project-URL: Documentation, https://github.com/V12KLT/authris-sdk/blob/main/sdk/INTEGRATION.md
Project-URL: Repository, https://github.com/V12KLT/authris-sdk
Keywords: licensing,drm,auth,hwid
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Provides-Extra: files
Requires-Dist: cryptography; extra == "files"

# authv4 (Python)

Authris license client for Python 3.9+. Standard library only —
no dependencies unless you download encrypted files.

```sh
pip install authv4
# with encrypted file downloads:
pip install "authv4[files]"
```

```python
import time
from authv4 import AuthError, Client

app = Client(project_id="PASTE_PROJECT_ID", base_url="https://your-server")

try:
    app.init()
    app.license(key="XXXX-XXXX-XXXX-XXXX")
    print("licensed, remaining:", app.remaining)
    while True:
        time.sleep(60)
        print("heartbeat, remaining:", app.heartbeat())
except AuthError as exc:
    print("auth failed:", exc)
```

Full guide: [sdk/INTEGRATION.md](../INTEGRATION.md).
