Skip to main content

Alure Python SDK for licensing and updates

Project description

SDK Python

SDK ufficiale per licensing + update.

Funzionalita principali:

  • Attivazione licenza online
  • Validazione offline tramite receipt
  • Check update e download asset
  • Storage locale configurabile
  • UI opzionale (Tkinter)

Installazione (dev)

pip install -e .

Installazione (PyPI)

pip install alure-sdk

Pubblicazione su PyPI

Prerequisiti:

  • Accesso a PyPI (account: tarantola23).
  • Token API PyPI salvato in ambiente (TWINE_USERNAME=__token__, TWINE_PASSWORD=<token>).

Build e upload:

python -m pip install --upgrade build twine
python -m build
python -m twine upload dist/*

Uso rapido

from alure_sdk import AlureClient

client = AlureClient(base_url="http://localhost:3000/api/v1")

# Activate license
activation = client.activate("ALR-XXXXXX-YYYYYY-ZZZZZZ", device_id="device-123")
print("Activation:", activation.activation_id)

# Verify online
result = client.verify_online()
print("Verify online:", result)

# Verify offline (use server public key for signature check)
offline = client.verify_offline(verify_signature=False)
print("Verify offline:", offline.valid, offline.reason)

# Check update
latest = client.check_update(project_id="demo", channel="stable")
print("Latest version:", latest.get("latest_version"))

# Download asset (token protected)
asset_id = latest.get("asset", {}).get("asset_id")
if asset_id:
    file_path = client.download_asset(asset_id)
    print("Downloaded:", file_path)

Receipt signature (opzionale)

Per la verifica offline con firma, passa la chiave pubblica Ed25519:

client = AlureClient(public_key_pem="-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----")
offline = client.verify_offline()

UI attivazione (Tkinter)

from alure_sdk import AlureClient
from alure_sdk.ui import activate_with_ui

client = AlureClient()
activate_with_ui(client)

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

alure_sdk-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

alure_sdk-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file alure_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: alure_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for alure_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 efc8bb9731e7f9f3abfc5d294a1b51e9bdcb94d25ef64b877e18e2b6bab33fe3
MD5 368bd661ff27b0cb7ed3d6cc6659695b
BLAKE2b-256 5a24cbdf4ac59e4d7e4ffef1943261fd03fbcbd244e030d6244ec8534ba9d042

See more details on using hashes here.

File details

Details for the file alure_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: alure_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for alure_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1799f25ffa3c1462c4050d3e25180dd8225f7584d453637546179358631dc563
MD5 f9ccfcd0dfdde9a13c4987d158629dd1
BLAKE2b-256 e6b624b13aba6ba796a7eea4c1056111bef24a6108ec48a93127eb05e2e41b33

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