Skip to main content

AuthlyX Python SDK (v2) for AuthlyX API integration.

Reason this release was yanked:

Old SDK version. Please upgrade to authlyx-api 2.2

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-0.1.1.tar.gz (10.6 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-0.1.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for authlyx_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 56813ce70e01675143cd80f18dc914b6f6ca1c5a7d04a1f18985518b538ac677
MD5 021c235c17a28352d13327912108e27c
BLAKE2b-256 142e381d1349038709d1b718e70657796c875cb3f82dbd01ed06f1a700837565

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for authlyx_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60ced528b0417c65dd6f2d569cf466ef560bda4e60351720de07878656120f1e
MD5 b8f421697a89488a3a079d41e9e7bc27
BLAKE2b-256 76b0f32b4f2cc2a035b8c912b68e81c4ad81d9068a77c756c70fb158c51a5561

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