feat(cli):improve anilist interfaces api

This commit is contained in:
Benex254
2024-06-29 22:00:48 +03:00
parent 7d82a356b1
commit 520bfcbb52
16 changed files with 503 additions and 246 deletions

View File

@@ -0,0 +1,13 @@
class QueryDict(dict):
"""dot.notation access to dictionary attributes"""
def __getattr__(self, attr):
try:
return self.__getitem__(attr)
except KeyError:
raise AttributeError(
"%r object has no attribute %r" % (self.__class__.__name__, attr)
)
def __setattr__(self, attr, value):
self.__setitem__(attr, value)