Replies: 4 comments 8 replies
-
Oh I forgot to say, with this we also can switch from file to folder whenever needed cause both are modules in python and not change for the user. From
To
|
Beta Was this translation helpful? Give feedback.
-
Question: Should we have the functions and classes imported in We allow this from spylib import Multipass or we enforce this: from spylib.multipass import Multipass My preference would be in the latter just to organize the code per feature explicitly. |
Beta Was this translation helpful? Give feedback.
-
yea it's true that |
Beta Was this translation helpful? Give feedback.
-
Isn't the idea to have one class responsible for calling the admin api to handle rate limit, errors, etc? I don't think splitting it out gains us anything but does make using webhooks a little more annoying |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current file/module organization lacks coherence at this time.
It's not clear why
session_token.py
belongs in "utils" for example.I think we have a natural organization for the files that would match the documentation menu to highlight the Shopify features handled by SPyLib:
This way we have a natural organization for future Shopify features that SPyLib handles and it makes the imports a lot more logical:
Also we should reorganize the webhooks into functions to avoid making the
Token
class bloated. We can simply have:Beta Was this translation helpful? Give feedback.
All reactions