Skip to main content

AuthlyX Python SDK (v2) for AuthlyX API integration.

Project description

AuthlyX Python SDK (PyPI)

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

The package name is:

pip install authlyx-api

Quick Start

from authlyx_api import AuthlyX

AuthlyXApp = AuthlyX(
    ownerId="12345678",
    appName="MYAPP",
    version="1.0.0",
    secret="your-secret",
    debug=True,
    api="https://authly.cc/api/v2",
)

AuthlyXApp.Init()

Optional Parameters

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

Available options

  • debug

    • Default: True
    • Set False to disable SDK logs
  • api

    • Default: https://authly.cc/api/v2
    • Use this for your custom domain

Available Methods

  • Init()
  • Login(identifier, password=None, deviceType=None)
  • Register(username, password, licenseKey, email="")
  • ChangePassword(oldPassword, newPassword)
  • ExtendTime(username, licenseKey)
  • GetVariable(key)
  • SetVariable(key, value)
  • Log(message)
  • GetChats(channelName, limit=100, cursor=None)
  • SendChat(message, channelName=None)
  • ValidateSession()

Authentication Example

# Username + password
AuthlyXApp.Login("username", password="password")

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

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

Variable Example

AuthlyXApp.SetVariable("theme", "dark")

value = AuthlyXApp.GetVariable("theme")
print(value)

Logging

By default, SDK logging is enabled.

Logs are written to:

C:\ProgramData\AuthlyX\{AppName}\YYYY_MM_DD.log

Sensitive values such as passwords, secrets, session IDs, request IDs, nonces, license keys, and hashes are masked automatically.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

authlyx_api-2.2.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authlyx_api-2.2.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file authlyx_api-2.2.0.tar.gz.

File metadata

  • Download URL: authlyx_api-2.2.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for authlyx_api-2.2.0.tar.gz
Algorithm Hash digest
SHA256 fc4c19e95f8602e0116e13c7638f7d7f89e9ab3bea121dbd29ffdf2e2bcd8d40
MD5 748039be84de4f0f3055a9dcea90899e
BLAKE2b-256 2704bc0929d41f8ca6065f6e853092b976831d7bbf9d6a544a6fa847e3bc51b2

See more details on using hashes here.

File details

Details for the file authlyx_api-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: authlyx_api-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for authlyx_api-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab6a610d377c1fbae1c6ca8e2ab087166df98cb9e3030a8ca388418c557d73af
MD5 bf32f7715990b9c62bed38119c5a0b37
BLAKE2b-256 d45e3947f76c46a4bde54ed610dd770943e55fc1428c56e857a636e1f60d9bd7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page