LibreAuth

Python SDK

Python 3.8+ · LibreAuth native client · Protocol v2 available (Enterprise)

Python Python 3.8+
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

libreauth_v2.py · authority.py · session_gate.py · ops_bridge after check · hardening · Boot/OnInit/MarkLicensed/HeartbeatOrDie · cryptography + PyNaCl · /api/v2/

  1. Credentials: name + ownerid (10 characters)
  2. API URL: https://libreauth.nutexe.dev/api/1.3/
  3. Source: python/libreauth.py
  4. Ed25519 key: from init → Response Signing
  5. Test: Live API · Init docs

Install / Dependencies

Terminal
pip install requests pynacl
# 1.x: libreauth.py · v2: libreauth_v2.py → /api/v2/

Code Example

Python
from libreauth_v2 import LibreAuthV2
import session_gate as gate

gate.Boot(19079)
app = LibreAuthV2("AppName", "OWNER_ID_10", "https://host/api/v2/")
app.client_build = 19079
gate.OnInit(app.init())
app.license(key, hwid)
gate.MarkLicensed()
gate.HeartbeatOrDie(app)

Quick Test

Test
python -c "from libreauth import LibreAuth; a=LibreAuth('App','OWNER','1.0','https://libreauth.nutexe.dev/api/1.3/'); a.init(); print('ok')"

Protocol v2 (Enterprise)

INFO
Requires Enterprise plan. Endpoint https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.

Source: python/libreauth_v2.py

Python · v2
from libreauth_v2 import LibreAuthV2
import session_gate as gate

gate.Boot(19079)
app = LibreAuthV2("AppName", "OWNER_ID_10", "https://host/api/v2/")
app.client_build = 19079
gate.OnInit(app.init())
app.license(key, hwid)
gate.MarkLicensed()
gate.HeartbeatOrDie(app)