LUTERAS TECH

Official SDKs

🐍 Official Python SDK

The official LUTERAS Python SDK is now live on PyPI. It allows developers to create and verify software licenses directly from Python applications.

Version 1.0.0 Python 3.9+ MIT License PyPI Package
pip install luteras
View on PyPI

Quick Start

from luteras import LuterasClient

client = LuterasClient(
    api_key="YOUR_LUTERAS_API_KEY"
)

license = client.licenses.create()

result = client.licenses.verify(
    license["license_key"]
)

print(result)

Create a License

from luteras import LuterasClient

client = LuterasClient(
    api_key="YOUR_LUTERAS_API_KEY"
)

license = client.licenses.create()

print(license["license_key"])

Verify a License

from luteras import LuterasClient

client = LuterasClient(
    api_key="YOUR_LUTERAS_API_KEY"
)

result = client.licenses.verify(
    "YOUR_LICENSE_KEY"
)

print(result)

Sample Response

{
    "valid": true,
    "status": "active",
    "api_limit": 5000,
    "api_usage": 12,
    "expires_at": null,
    "overage_calls": 0,
    "overage_cost": 0.0
}

Error Handling

from luteras import LuterasClient
from luteras.exceptions import LuterasAPIError, LuterasNetworkError

client = LuterasClient(
    api_key="YOUR_LUTERAS_API_KEY"
)

try:
    result = client.licenses.verify("YOUR_LICENSE_KEY")
    print(result)

except LuterasAPIError as error:
    print("API Error:", error)

except LuterasNetworkError as error:
    print("Network Error:", error)

Developer Resources