Move all 2nd layer import to 1st layer to form pub APIs #6722
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed in #6636, if we are going to take more aggressive change to make aiida module import more "numpy-like" which means only the first level import regard as the public APIs.
We were talking frequently about backward-compatibility but if the public APIs are not clear, it is a bit meaningless to say backward compatibility and bind our feet to make changes confidently.
It is a long list and we need to take a look at what should not be exposed and what should add to the list.
I'll draft an AEP for this as well.
For the plugin APIs for community to implement the plugins. If we treat it as dependency injection pattern, then we should clear mark all the abstract methods or clear using python protocol to say which methods are expected and any changes on those contract should be regarded as breaking changes.
pinning @giovannipizzi since we discuss this yesterday and @sphuber @agoscinski redirect from #6636, what do you think?