AeoClient.close
Close a synchronous client that your application opened outside a context manager. Call this after the last request.
Signature
def close(self) -> NoneParameters
This method takes no arguments.
Return value
Returns None after closing the underlying HTTP client.
Errors
- HTTP client or transport errors during shutdown propagate to the caller.
Python example
import os
from aeo_sdk import AeoClient
client = AeoClient(os.environ["AEO_API_KEY"], base_url=os.environ["AEO_API_BASE_URL"])
try:
account = client.v2_get_account()
print(account.status)
finally:
client.close()See Python client setup for the environment variables, response properties and retry settings.