Files
annotations/Azaion.Loader/credentials.pyx
T
Alex Bezdieniezhnykh 7750025631 separate load functionality from inference client to loader client. Call loader client from inference to get the model.
remove dummy dlls, remove resource loader from c#.

TODO: Load dlls separately by Loader UI and loader client

WIP
2025-06-06 20:04:03 +03:00

19 lines
446 B
Cython

from msgpack import unpackb
cdef class Credentials:
def __init__(self, str email, str password):
self.email = email
self.password = password
@staticmethod
cdef from_msgpack(bytes data):
unpacked = unpackb(data, strict_map_key=False)
return Credentials(
unpacked.get("Email"),
unpacked.get("Password"))
def __str__(self):
return f'{self.email}: {self.password}'