Official SDKs
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 Packagepip install luterasView on PyPI
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)
from luteras import LuterasClient
client = LuterasClient(
api_key="YOUR_LUTERAS_API_KEY"
)
license = client.licenses.create()
print(license["license_key"])
from luteras import LuterasClient
client = LuterasClient(
api_key="YOUR_LUTERAS_API_KEY"
)
result = client.licenses.verify(
"YOUR_LICENSE_KEY"
)
print(result)
{
"valid": true,
"status": "active",
"api_limit": 5000,
"api_usage": 12,
"expires_at": null,
"overage_calls": 0,
"overage_cost": 0.0
}
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)