Metadata-Version: 2.4
Name: authlyx-api
Version: 0.1.0
Summary: AuthlyX Python SDK (v2) for AuthlyX API integration.
Author: AuthlyX
License-Expression: MIT
Project-URL: Homepage, https://authly.cc
Keywords: authlyx,authentication,license,sdk
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31.0
Dynamic: license-file

# AuthlyX Python SDK (PyPI)

This folder is a publish-ready PyPI package version of the AuthlyX Python SDK.

Install:

```bash
pip install authlyx-api
```

Quick start:

```py
from authlyx_api import AuthlyX

AuthlyXApp = AuthlyX(
    ownerId="12345678",
    appName="HI",
    version="1.3",
    secret="your-secret"
)

AuthlyXApp.Init()
if not AuthlyXApp.response["success"]:
    raise Exception(AuthlyXApp.response["message"])

AuthlyXApp.Login("12", "1")
print(AuthlyXApp.userData["SubscriptionLevel"])
```

Optional parameters:

```py
from authlyx_api import AuthlyX

AuthlyXApp = AuthlyX(
    ownerId="12345678",
    appName="HI",
    version="1.3",
    secret="your-secret",
    debug=False,
    api="https://example.com/api/v2"
)
```

Unified login:

```py
# Username + password
AuthlyXApp.Login("12", "1")

# License key
AuthlyXApp.Login("XXXXX-XXXXX-XXXXX-XXXXX-XXXXX")

# Device login
AuthlyXApp.Login("YOUR_DEVICE_ID", deviceType="motherboard")
```

Build locally:

```bash
python -m pip install --upgrade build twine
python -m build
```

Publish:

```bash
twine upload dist/*
```

