Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

AuthlyX Python package

The authlyx-api package on PyPI. Official Python SDK for AuthlyX V3 (3.0.0 beta).

Full documentation: https://docs.authlyx.dev

Requirements

  • Windows
  • Python 3.11 or newer

Run the example

This repo is the package itself. For a full console example, see AuthlyX-PY-Example. To try the package from this folder:

pip install .

You can find your app key under your app's credentials in the dashboard.

Add it to your own project

pip install --pre authlyx-api
import asyncio
from authlyx_api import AuthlyX

async def main():
    app = AuthlyX("YOUR_APP_KEY", "1.0.0")
    connected = await app.initialize()
    print("Connected" if connected.ok else connected.message)

asyncio.run(main())

Every method can be awaited. You can also pass completed= with a callback instead.

Signing in

await app.login("YOUR_USERNAME", "YOUR_PASSWORD")
await app.login("YOUR_LICENSE_KEY")
await app.deviceLogin()

Device login signs in the current Windows user without a form. The device has to be approved in your app first. See Device login.

After signing in, the account details are in userData:

username = app.userData["Username"]
plan = app.userData["Plan"]
expiry = app.userData["ExpiryDate"]

Every method has its own page with examples under SDK methods.

Starting up and updates

initialize() returns one of these codes:

Code Success Meaning
APP_INITIALIZED Yes Connected. Continue to sign-in.
OFFLINE_MODE Yes No internet, but this PC has saved offline access.
NETWORK_... No No internet and nothing saved. Offer to try again.
UPDATE_REQUIRED No This version is older than the one set in your dashboard.
VERSION_MISMATCH No This version is newer than the dashboard version and is not allowed.

On Windows the SDK shows update messages for you: an Update required or Version not supported box when this version is refused, and an Update available box once after sign-in when a newer release exists. Each one shows the release notes and offers to open the download page. Set versions and download links under your app's Updates settings in the dashboard.

To show your own screen instead, turn the box off:

app = AuthlyX("YOUR_APP_KEY", "1.0.0", update_prompt=False)

The failed result's update data then has version, notes and url. More in Updates and Allowed Versions.

Offline access

Once someone is signed in, saving offline access stores a signed permit on that PC:

saved = await app.saveOfflineAccess()
available = await app.hasOfflineAccess()

If they open your app later without internet, initialize() succeeds with the code OFFLINE_MODE, and they sign in with the same username and password or license key, and the SDK checks it against the saved permit. Each permit belongs to one app and one account, and signing out removes it. More in Offline access.

Errors

A failed call gives you a code and a message you can show to the user. initialize() returns a result even without internet. Other calls raise AuthlyXError for network problems and setup errors, so wrap them in try. All codes are listed in Errors.

Coming from 2.4

V3 is a new SDK, not a drop-in update. Apps use an app key instead of the old owner ID, app name and secret, and the method names changed. Read Move from V2 to V3 before you switch.

License

MIT. See LICENSE.

Metadata

Release files for authlyx-api 3.0.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for authlyx-api 3.0.0b2
File Size Uploaded Provenance Actions
authlyx_api-3.0.0b2.tar.gz 19.3 kB With provenance Details for authlyx_api-3.0.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for authlyx-api 3.0.0b2
File Interpreter ABI Platform Actions
authlyx_api-3.0.0b2-py3-none-any.whl Python 3 none any Details for authlyx_api-3.0.0b2-py3-none-any.whl

Total release size: 37.3 kB

Release files / authlyx_api-3.0.0b2.tar.gz

Download URL authlyx_api-3.0.0b2.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
98467af050372d630012a5aa063b54a47f5ee4cba513bdf79741264a4a0dbe88
BLAKE2b-256 checksum
How to use checksums
4c8e64ef435a83ec79743c8d97591173c2043dda8ee612a633ea0b7d2e8c1f7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / authlyx_api-3.0.0b2-py3-none-any.whl

Download URL authlyx_api-3.0.0b2-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
203818fe94fdb90788ed220d590b45d1a2553b5548aca9a753d4f62673d59cda
BLAKE2b-256 checksum
How to use checksums
5d74b9934d159c0b6c7674772e1884d984f265ab8f47bba85e31fff02a3fe63d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for authlyx-api 3.0.0b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for authlyx_api-3.0.0b2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page