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-2.1.0.tar.gz (11.1 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.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for authlyx_api-2.1.0.tar.gz
Algorithm Hash digest
SHA256 fac16df3963026063afd884c0cdc761d3eaae28df1819402a9a3635a7585e6ed
MD5 113869ddd984c56fd983b8a88e1cf1f8
BLAKE2b-256 6f428ab084dbb1a1d74daa6ef18448a719293c0897489274d48a4091fa9c4370

See more details on using hashes here.

File details

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

File metadata

  • Download URL: authlyx_api-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 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-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 934b0b55e37a357426235d27b8f4d24627f491218477d571a8d2900614a88bb9
MD5 113c545bdaf1c28ee5c84e0a89187f1b
BLAKE2b-256 e6a4003ead2c7ed61fe39c77a73bbb877cd0bc3727ef6df60fb2793fd0806a01

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