Replies: 1 comment 1 reply
-
Does this hold true when using the microgrid sandbox API or edge apps using the cloud APIs directly? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the SDK is including a lot of code from different areas of the very complex Frequenz ecosystem. This is starting to be an issue, as any user of the SDK basically needs to pull the dependencies for ALL the ecosystem, even when they are not needed or used.
A classical example is cloud apps, which only use cloud APIs and run in the cloud, needing to pull all the microgrid API dependencies.
I think in the future the SDK should just be a declaration of dependencies that are tested together and are known to work well. Many dependencies can be even optional, so if you are writing a cloud app, you could do
pip install frequenz-sdk[cloud]
and that won't pull anymicrogrid
related dependencies to your code, just cloud APIs. We can even have more granular optional dependencies, likepip install frequenz-sdk[electricity-trading]
, which will only pull electricity trading code, orpip install frequenz-sdk[microgrid]
if you only want to work with the microgrid.There will still be stuff that the SDK might need to do, common setup that we need even if you only want to work only with one API, like setting up the Configuration system (
ConfigManager
), or handling logging properly, etc.Beta Was this translation helpful? Give feedback.
All reactions