[UPD] Added api to create Library
This commit is contained in:
@@ -26,6 +26,13 @@ class LibraryController:
|
||||
def __del__(self):
|
||||
self.session.close()
|
||||
|
||||
def __enter__(self):
|
||||
return self
|
||||
|
||||
def __exit__(self, *exc):
|
||||
del(self)
|
||||
return False
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
return self._library
|
||||
|
||||
Reference in New Issue
Block a user