Python
lsClient.get_account_details()Purpose: Retrieves account information associated with the current user, including solver limits and credit or expiration details.
Note: LightSolver Lab is currently in early access. Approved customers effectively have unlimited credit (solve time) during this phase.
| Parameters |
This method takes no parameters. Simply call get_account_details().
|
| Returns |
Return type: dictusername: str Account email associated with the current user. dlpu_spin_limit: int Maximum allowed problem size (number of spins / variables) for relevant solvers under this account. expiration_date: str Human-readable expiration date for credits or license. dlpu_credit_seconds: int | str Remaining credit time in seconds. In early-access accounts, this may be represented as a non-numeric or unlimited value. |
| Errors |
|
requests.exceptions.ConnectionError (or other exceptions) Raised if the service is unreachable or a backend error occurs. |
Example
Python
info = lsClient.get_account_details()
print(info["username"]) # string
print(info["dlpu_spin_limit"]) # int
print(info["expiration_date"]) # string, e.g., "Mon Jan 1 12:34:56 2025"
print(info["dlpu_credit_seconds"]) # number or "Unlimited"