Source code for luna_lambda_tools.public.clients.lunavl
"""
Module contains luna-api client adapted for usage in lambda
"""
from luna3.lunavl.httpclient import LunaHttpClient
[docs]
class Api(LunaHttpClient):
"""Luna Api client"""
@classmethod
def fromCommonClient(cls, client: LunaHttpClient) -> "Api":
"""Convert common client to lambda client"""
target = cls.__new__(cls)
target.__dict__.update(client.__dict__)
return target