mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 13:26:30 +00:00
make python app load a bit eariler, making startup a bit faster
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from msgpack import unpackb
|
||||
|
||||
cdef class Credentials:
|
||||
|
||||
def __init__(self, str email, str password, str folder):
|
||||
self.email = email
|
||||
self.password = password
|
||||
self.folder = folder
|
||||
|
||||
@staticmethod
|
||||
cdef from_msgpack(bytes data):
|
||||
unpacked = unpackb(data, strict_map_key=False)
|
||||
return Credentials(
|
||||
unpacked.get("Email"),
|
||||
unpacked.get("Password"),
|
||||
unpacked.get("Folder"))
|
||||
|
||||
Reference in New Issue
Block a user