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.1.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.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: authlyx_api-2.1.1.tar.gz
  • Upload date:
  • Size: 11.1 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.1.1.tar.gz
Algorithm Hash digest
SHA256 f250e2cdf79cbaba90e408732f224988fd5fe82962a6d043d5079472f75f9613
MD5 1d9d8355b89d764ec649768b1948256f
BLAKE2b-256 2685c1f23c33373f695166613835a66e4a6a71a2e8bc18c1ab9210606fbc7cba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: authlyx_api-2.1.1-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.12.10

File hashes

Hashes for authlyx_api-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e45571ce1ef4fbc20673c4dd04f5bc6bda83d49f028d533283795fe5a728344
MD5 f52fa8e8c2f1060d54b832ec4f34b28d
BLAKE2b-256 5bf7ebfbd32c869faa4908dcb6ea1c3527c98743e38419cb1b2e7d17ca561a7d

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